blob: 25493b51fe34d1de4bc9584b3917a7be661acba6 [file] [log] [blame]
Akronbaba3b62021-11-22 17:24:48 +01001@use 'sass:math';
Akron7636edf2025-11-04 12:44:53 +01002@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
Akron7e5afce2020-08-25 15:50:19 +020021// @import "tagger"; // Tagger
22
Akron7636edf2025-11-04 12:44:53 +010023@use '../util';
24@use "../base/lengths";
Akron0f1b93b2020-03-17 11:37:19 +010025
Nils Diewalda31a5152015-04-17 21:05:23 +000026main {
Akron7636edf2025-11-04 12:44:53 +010027 padding: 0 lengths.$standard-size-and-spacing;
Akron7e5afce2020-08-25 15:50:19 +020028
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020029 // margin: {
30 // left: $standard-margin;
31 // right: math.div($standard-margin,2);
32 // }
33
34 &.shifted {
Akron7636edf2025-11-04 12:44:53 +010035 padding-left: calc(lengths.$standard-size-and-spacing + lengths.$logo-left-distance);
Nils Diewalda31a5152015-04-17 21:05:23 +000036 }
Akron7e5afce2020-08-25 15:50:19 +020037
Nils Diewalda31a5152015-04-17 21:05:23 +000038 &.embedded {
39 margin: {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020040 left: 14px;
Nils Diewalda31a5152015-04-17 21:05:23 +000041 right: 14px;
42 }
43 }
Akron7e5afce2020-08-25 15:50:19 +020044
Nils Diewalda31a5152015-04-17 21:05:23 +000045 p {
46 text-align: justify;
Akron7e5afce2020-08-25 15:50:19 +020047 hyphens: auto;
Akroneefb2c52024-10-03 10:58:11 +020048 font-size: 1rem;
49 line-height: 1.5rem;
Nils Diewalda31a5152015-04-17 21:05:23 +000050 }
Akron9490e3b2019-10-17 12:26:29 +020051
52 h2#page-top {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020053 margin-top: 0;
Akron9490e3b2019-10-17 12:26:29 +020054 padding-top: 1em;
55 }
Akronf7ec4442019-10-27 20:01:05 +010056
Marc Kupietz5eaefea2026-08-03 19:00:23 +020057 // Documentation prose (doc pages carry the "tutorial" class). Without a
58 // measure the content is as wide as the viewport, which on large screens
59 // yields very long, hard-to-read lines; justified text then stretches the
60 // word spacing unevenly. Cap the line length, left-align and give the flow
61 // a calm, consistent vertical rhythm.
62 &.tutorial {
63 p, ul, ol, dl, blockquote, table, pre, details,
64 h2, h3, h4, h5, h6 {
65 max-width: 44em;
66 }
67
68 p, li, dd {
69 text-align: left;
70 line-height: 1.6;
71 }
72
73 // Only set vertical (block) margins here; using the "margin" shorthand
74 // would reset horizontal margins set elsewhere -- e.g. the hanging indent
75 // of p.bibentry in the citation help (margin-left) would be lost.
76 p {
77 margin-block: 0 1em;
78 }
79
80 li {
81 margin-block: .25em;
82 }
83
84 // Tighter list indentation than the ~40px UA default, which is a lot of
85 // space especially on narrow screens.
86 ul, ol {
87 padding-left: 1.5em;
88 }
89
90 // MultiMarkdown renders a list item as "loose" (its text wrapped in a
91 // <p>) when the item carries block content, and "tight" (bare text)
92 // otherwise -- so within one list some labels would end up in a <p> and
93 // others not. Keep those consistent: give list-item paragraphs the list
94 // text's size, and drop the block margin on a leading label paragraph so
95 // a loose item does not look larger/more spaced than its tight siblings.
96 // Following paragraphs in the same item keep their spacing.
97 li p {
98 font-size: inherit;
99 }
100
101 li > p:first-child {
102 margin-block: 0;
103 }
104 }
105
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200106 // &.page {
107 // margin-left: $logo-left-distance + 15px;
108 // p,
109 // li,
110 // dd,
111 // dt {
112 // code {
113 // background-color: $ids-grey-2;
114 // color: $ids-grey-1;
115 // padding: 0 .5em;
116 // border-radius: $standard-border-radius;
117 // }
118 // }
119 // }
Akron27031aa2020-04-28 14:57:10 +0200120
121 p.hint {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200122 margin: 0 auto;
Akron27031aa2020-04-28 14:57:10 +0200123 text-align: center;
124 }
Nils Diewalda31a5152015-04-17 21:05:23 +0000125}