blob: ab99865d966efa1eb39bb10712e0a95f717b8e75 [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;
Uyen-Nhu Tranbc7f3a92026-09-01 01:36:41 +020055 scroll-margin-top: 10rem;
Akron9490e3b2019-10-17 12:26:29 +020056 }
Akronf7ec4442019-10-27 20:01:05 +010057
Marc Kupietz5eaefea2026-08-03 19:00:23 +020058 // 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 Tran243fe732024-04-10 01:17:24 +0200107 // &.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 // }
Akron27031aa2020-04-28 14:57:10 +0200121
122 p.hint {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200123 margin: 0 auto;
Akron27031aa2020-04-28 14:57:10 +0200124 text-align: center;
125 }
Nils Diewalda31a5152015-04-17 21:05:23 +0000126}
Uyen-Nhu Tranbc7f3a92026-09-01 01:36:41 +0200127
128body.embedded main h2#page-top {
129 scroll-margin-top: 0;
130}