| Akron | baba3b6 | 2021-11-22 17:24:48 +0100 | [diff] [blame] | 1 | @use 'sass:math'; |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 2 | @use 'highlight'; // JSON highlighting |
| 3 | @use 'kwic'; // Kwic view information |
| 4 | @use 'logos'; // Logo images |
| 5 | @use 'matchinfo'; // Match table |
| 6 | @use 'pagination'; // Pagination |
| 7 | @use 'query'; // View query |
| 8 | @use 'resultinfo'; // Information on results |
| 9 | @use 'tutorial'; // Embedded and non-embedded tutorial |
| 10 | @use 'koralquery'; // KoralQuery |
| 11 | @use 'alertify'; // Styling alerts |
| 12 | @use 'intro'; // Intro page |
| 13 | @use 'panel'; // Base panel system |
| 14 | @use 'introjs'; // Guided Tour |
| 15 | @use 'introjs-ids'; // Guided Tour: IDS specific |
| 16 | @use 'oauth'; // OAuth Management styles |
| 17 | @use 'announcements'; // Styling for announcements |
| 18 | @use 'news'; // View for optional news |
| 19 | @use 'plugin'; // Rules for embedded plugins |
| 20 | @use 'marketplace'; // Plugin Marketplace styles |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 21 | // @import "tagger"; // Tagger |
| 22 | |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 23 | @use '../util'; |
| 24 | @use "../base/lengths"; |
| Akron | 0f1b93b | 2020-03-17 11:37:19 +0100 | [diff] [blame] | 25 | |
| Nils Diewald | a31a515 | 2015-04-17 21:05:23 +0000 | [diff] [blame] | 26 | main { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 27 | padding: 0 lengths.$standard-size-and-spacing; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 28 | |
| Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 29 | // margin: { |
| 30 | // left: $standard-margin; |
| 31 | // right: math.div($standard-margin,2); |
| 32 | // } |
| 33 | |
| 34 | &.shifted { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 35 | padding-left: calc(lengths.$standard-size-and-spacing + lengths.$logo-left-distance); |
| Nils Diewald | a31a515 | 2015-04-17 21:05:23 +0000 | [diff] [blame] | 36 | } |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 37 | |
| Nils Diewald | a31a515 | 2015-04-17 21:05:23 +0000 | [diff] [blame] | 38 | &.embedded { |
| 39 | margin: { |
| Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 40 | left: 14px; |
| Nils Diewald | a31a515 | 2015-04-17 21:05:23 +0000 | [diff] [blame] | 41 | right: 14px; |
| 42 | } |
| 43 | } |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 44 | |
| Nils Diewald | a31a515 | 2015-04-17 21:05:23 +0000 | [diff] [blame] | 45 | p { |
| 46 | text-align: justify; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 47 | hyphens: auto; |
| Akron | eefb2c5 | 2024-10-03 10:58:11 +0200 | [diff] [blame] | 48 | font-size: 1rem; |
| 49 | line-height: 1.5rem; |
| Nils Diewald | a31a515 | 2015-04-17 21:05:23 +0000 | [diff] [blame] | 50 | } |
| Akron | 9490e3b | 2019-10-17 12:26:29 +0200 | [diff] [blame] | 51 | |
| 52 | h2#page-top { |
| Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 53 | margin-top: 0; |
| Akron | 9490e3b | 2019-10-17 12:26:29 +0200 | [diff] [blame] | 54 | padding-top: 1em; |
| Uyen-Nhu Tran | bc7f3a9 | 2026-09-01 01:36:41 +0200 | [diff] [blame^] | 55 | scroll-margin-top: 10rem; |
| Akron | 9490e3b | 2019-10-17 12:26:29 +0200 | [diff] [blame] | 56 | } |
| Akron | f7ec444 | 2019-10-27 20:01:05 +0100 | [diff] [blame] | 57 | |
| Marc Kupietz | 5eaefea | 2026-08-03 19:00:23 +0200 | [diff] [blame] | 58 | // Documentation prose (doc pages carry the "tutorial" class). Without a |
| 59 | // measure the content is as wide as the viewport, which on large screens |
| 60 | // yields very long, hard-to-read lines; justified text then stretches the |
| 61 | // word spacing unevenly. Cap the line length, left-align and give the flow |
| 62 | // a calm, consistent vertical rhythm. |
| 63 | &.tutorial { |
| 64 | p, ul, ol, dl, blockquote, table, pre, details, |
| 65 | h2, h3, h4, h5, h6 { |
| 66 | max-width: 44em; |
| 67 | } |
| 68 | |
| 69 | p, li, dd { |
| 70 | text-align: left; |
| 71 | line-height: 1.6; |
| 72 | } |
| 73 | |
| 74 | // Only set vertical (block) margins here; using the "margin" shorthand |
| 75 | // would reset horizontal margins set elsewhere -- e.g. the hanging indent |
| 76 | // of p.bibentry in the citation help (margin-left) would be lost. |
| 77 | p { |
| 78 | margin-block: 0 1em; |
| 79 | } |
| 80 | |
| 81 | li { |
| 82 | margin-block: .25em; |
| 83 | } |
| 84 | |
| 85 | // Tighter list indentation than the ~40px UA default, which is a lot of |
| 86 | // space especially on narrow screens. |
| 87 | ul, ol { |
| 88 | padding-left: 1.5em; |
| 89 | } |
| 90 | |
| 91 | // MultiMarkdown renders a list item as "loose" (its text wrapped in a |
| 92 | // <p>) when the item carries block content, and "tight" (bare text) |
| 93 | // otherwise -- so within one list some labels would end up in a <p> and |
| 94 | // others not. Keep those consistent: give list-item paragraphs the list |
| 95 | // text's size, and drop the block margin on a leading label paragraph so |
| 96 | // a loose item does not look larger/more spaced than its tight siblings. |
| 97 | // Following paragraphs in the same item keep their spacing. |
| 98 | li p { |
| 99 | font-size: inherit; |
| 100 | } |
| 101 | |
| 102 | li > p:first-child { |
| 103 | margin-block: 0; |
| 104 | } |
| 105 | } |
| 106 | |
| Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 107 | // &.page { |
| 108 | // margin-left: $logo-left-distance + 15px; |
| 109 | // p, |
| 110 | // li, |
| 111 | // dd, |
| 112 | // dt { |
| 113 | // code { |
| 114 | // background-color: $ids-grey-2; |
| 115 | // color: $ids-grey-1; |
| 116 | // padding: 0 .5em; |
| 117 | // border-radius: $standard-border-radius; |
| 118 | // } |
| 119 | // } |
| 120 | // } |
| Akron | 27031aa | 2020-04-28 14:57:10 +0200 | [diff] [blame] | 121 | |
| 122 | p.hint { |
| Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 123 | margin: 0 auto; |
| Akron | 27031aa | 2020-04-28 14:57:10 +0200 | [diff] [blame] | 124 | text-align: center; |
| 125 | } |
| Nils Diewald | a31a515 | 2015-04-17 21:05:23 +0000 | [diff] [blame] | 126 | } |
| Uyen-Nhu Tran | bc7f3a9 | 2026-09-01 01:36:41 +0200 | [diff] [blame^] | 127 | |
| 128 | body.embedded main h2#page-top { |
| 129 | scroll-margin-top: 0; |
| 130 | } |