blob: ce23ee54e45542b421a6835dd403be5597d8c73f [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
2@import "util";
3
Nils Diewald652e5f42015-05-10 18:11:45 +00004/**
5 * Media rules for different screen sizes.
6 * This will override some basic rules.
7 */
8
Nils Diewalda944fab2015-04-08 21:02:04 +00009$standard-margin: 4px;
10
Akron05238fb2017-06-02 14:29:03 +020011// (orientation: portrait),
12@media all and (max-width: 42.5em) {
Nils Diewald652e5f42015-05-10 18:11:45 +000013 body,
Akron2167ff52018-08-29 18:04:06 +020014 #search > ol,
15 #search div.snippet > span,
Nils Diewald652e5f42015-05-10 18:11:45 +000016 header,
17 header input,
Akron179c8ac2015-06-30 19:30:50 +020018 div#resultinfo,
Nils Diewald652e5f42015-05-10 18:11:45 +000019 #pagination > a {
Nils Diewalda944fab2015-04-08 21:02:04 +000020 font-size: 9pt;
21 }
Nils Diewald652e5f42015-05-10 18:11:45 +000022
Akron2167ff52018-08-29 18:04:06 +020023 header {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020024 padding-top: 3rem;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020025
26 &.shifted {
27 padding-left: 0;
28 }
Akron6b42c602020-09-08 17:00:13 +020029 }
Akron2167ff52018-08-29 18:04:06 +020030
Nils Diewalda944fab2015-04-08 21:02:04 +000031 header form {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020032 margin: 1.5rem 1rem;
Nils Diewald652e5f42015-05-10 18:11:45 +000033 padding-left: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020034
35 &#searchform {
36 margin: 2.5rem 1rem 0 1rem;
37 }
38 }
39
40 .navbar {
41 *:not(:first-child) {
42 display: none;
43 }
44
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +010045 a.logo > h1 {
46 margin-left: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020047 }
48
49 .burger-icon {
50 position: relative;
51 display: block !important;
52 width: $standard-size-and-spacing;
53 height: $standard-size-and-spacing;
54 font-size: 1.8rem;
55 color: $nearly-white;
56
57 &::after {
58 position: absolute;
59 top: 2rem;
60 left: 2rem;
61 transform: translate(-50%, -50%);
62 -o-transform: translate(-50%, -50%);
63 -moz-transform: translate(-50%, -50%);
64 -webkit-transform: translate(-50%, -50%);
65 }
66 }
67
68 &.show .burger-icon {
69 position: absolute;
70 top: 0;
71 right: 0;
72 background-color: $middle-green;
73 }
74
75 &.show * {
76 display: block;
77 }
78
79 &-group {
80 margin-top: $standard-size-and-spacing;
81 width: 100%;
82 display: block;
83 position: absolute;
84 top: 0;
85 left: 0;
86 background-color: $middle-green;
87
88 fieldset.fieldset-login {
89 display: block !important;
90 margin-right: 0 !important;
91 padding: 1rem;
92
93 form.login {
94 align-items: normal !important;
95 flex-direction: column;
96 gap: 8px;
97
98 input[type=text],
99 input[type=password] {
100 @include input-field;
101 margin-right: 0 !important;
102 }
103
104 button.btn-login {
105 width: 100% !important;
106 align-self: center;
107 background-color: $dark-green !important;
108
109 &:hover {
110 background-color: $middle-green !important;
111 color: unset !important;
112 }
113 }
114 }
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100115 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200116
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100117 h3.nav-link {
118 height: 2rem;
119
120 a {
121 padding: .75rem !important;
122 }
123 }
124
125 p {
126 padding: 1rem 0 0;
127
128 a {
129 display: inline;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200130 }
131 }
132 }
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100133
134 .dropdown {
135 margin-right: 0 !important;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200136
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100137 &-btn {
138 &.login {
139 display: none;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200140
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100141 & + .dropdown-content {
142 margin-top: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200143 }
144 }
145
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100146 &.profile {
147 & + .dropdown-content {
148 margin-top: 4rem;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200149 }
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100150 }
151 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200152
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100153 &-content {
154 display: block !important;
155 width: 100% !important;
156
157 form.login {
158 input[type=text],
159 input[type=password] {
160 width: 100%;
161 }
162 }
163
164 p {
165 a {
166 display: inline;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200167 }
168 }
169 }
170 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000171 }
Nils Diewald652e5f42015-05-10 18:11:45 +0000172
Nils Diewalda944fab2015-04-08 21:02:04 +0000173 .vc {
174 font-size: 9pt;
Akron90654812018-08-29 18:57:23 +0200175 .builder {
176 .doc {
177 padding-left: 3em;
178 }
179 * .docGroup {
180 margin-left: 3em;
181 }
Akron451ed5e2018-11-12 10:52:33 +0100182 > .doc {
183 padding-left: .5em;
184 }
185 > .docGroup {
186 margin-left: .5em;
187 }
Akron90654812018-08-29 18:57:23 +0200188 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000189 }
Nils Diewald652e5f42015-05-10 18:11:45 +0000190
Nils Diewalda944fab2015-04-08 21:02:04 +0000191 h1 {
Akrond059ea22021-03-02 15:32:27 +0100192 margin-left: 0px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000193 width: 130px;
194 height: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +0000195 background: {
196 size: 100%;
197 position: 50% 0;
198 }
Akronbd36c712018-02-15 11:14:23 +0100199 z-index: 110;
Akronc3f063c2021-04-20 14:29:42 +0200200 position: absolute !important;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200201 top: 50%;
202 transform: translateY(-50%);
203 -o-transform: translateY(-50%);;
204 -moz-transform: translateY(-50%);
205 -webkit-transform: translateY(-50%);
Nils Diewalda944fab2015-04-08 21:02:04 +0000206 }
207
208 #searchbar {
209 padding-right: 30px;
Akrond059ea22021-03-02 15:32:27 +0100210 margin-top: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200211 input#q-field {
Nils Diewalda944fab2015-04-08 21:02:04 +0000212 font-size: 9pt;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200213 border-radius: 6px 0 0 6px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000214 }
215 button[type=submit] {
216 right: 0;
217 }
218 }
219
220 .level-1 {
221 padding-bottom: 2px;
222 }
223
224 .level-2 {
225 padding-bottom: 4px;
226 }
227
228 main {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200229 padding: 1rem;
Nils Diewalda944fab2015-04-08 21:02:04 +0000230 margin-left: $standard-margin;
231 margin-right: $standard-margin;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200232
233 &.shifted {
234 padding-left: 0;
235 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000236 }
237
Akronb917a7c2015-07-02 11:02:42 +0200238 header .button {
Akron67b51812017-05-01 14:10:55 +0200239 margin-right: $standard-margin;
240 &.top {
241 height: auto;
242 }
Akronb917a7c2015-07-02 11:02:42 +0200243 }
244
Nils Diewalda944fab2015-04-08 21:02:04 +0000245 #search ol {
246 > li:target, > li.active {
247 > div > div.snippet {
Akron67b51812017-05-01 14:10:55 +0200248 margin: 2px 2em 2px 4px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000249 }
250 }
Akron67b51812017-05-01 14:10:55 +0200251 > li div.meta {
252 display: none;
253 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000254 }
255
256 div.matchinfo {
257 font-size: 9pt;
258 }
259
260 div.matchtable tr > * {
261 padding: 1pt 3pt;
262 }
263
Akron8b592d42018-01-26 18:33:06 +0100264 div.matchtree { //, div.metatable {
Nils Diewalda944fab2015-04-08 21:02:04 +0000265 h6 {
266 display: block;
267 float: none;
268 }
Akron8b592d42018-01-26 18:33:06 +0100269 > div { // , > dl {
Nils Diewalda944fab2015-04-08 21:02:04 +0000270 margin-left: 2px;
271 }
272 }
Akrone6be0a82019-03-12 15:24:31 +0100273
Nils Diewalda944fab2015-04-08 21:02:04 +0000274 #logos {
275 margin-left: 0;
276 margin-right: 0;
277
278 > div {
279 border-top-width: 14px;
Akrone6be0a82019-03-12 15:24:31 +0100280 padding-right: 0;
281 .logo > * {
282 background: {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200283 size: 60%;
284 position: 0 0;
285 }
Akrone6be0a82019-03-12 15:24:31 +0100286 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200287 }
288 }
289
290 .logo > * {
291 > div.logoaddon {
292 right: -1.2rem;
293 top: 1.4rem;
Nils Diewalda944fab2015-04-08 21:02:04 +0000294 }
295 }
296
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000297 div.intro {
298 width: 100%;
Nils Diewalda944fab2015-04-08 21:02:04 +0000299 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000300
Akron1120a582017-10-17 12:29:16 +0200301 body.embedded aside > div {
302 top: 0;
303 transform: translateY(0);
304 }
305
Nils Diewald7148c6f2015-05-04 15:07:53 +0000306 aside {
307 &:not(:focus):not(.active) {
308 margin-left: -1 * $logo-left-distance;
309 &::after {
Akron05238fb2017-06-02 14:29:03 +0200310 font-size: 12pt;
Akron05238fb2017-06-02 14:29:03 +0200311 height: 11pt;
Akron2167ff52018-08-29 18:04:06 +0200312 text-align: right;
313 padding-right: 3pt;
314 padding-top: 2pt;
Nils Diewald7148c6f2015-05-04 15:07:53 +0000315 }
316 }
317 ul {
318 font-size: 9pt;
319 line-height: 1em;
320 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200321 // &.active ~ main div.intro,
322 // &.active ~ main.page {
323 // margin-left: $standard-margin !important;
324 // }
Akron4751da62017-06-07 22:37:10 +0200325
326 &.active {
327 position: relative;
328 display: block;
329 padding-top: 0;
330 width: 100%;
331 top: 0;
332 border-width: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200333
Akron4751da62017-06-07 22:37:10 +0200334 fieldset input {
335 font-size: 9pt;
336 }
337 &::after {
338 display: none;
339 }
Akronef6d5f12018-05-28 17:54:58 +0200340 p, hr {
Akron4751da62017-06-07 22:37:10 +0200341 display: none;
342 }
343 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200344
345 .nav.nav-doc:first-child {
346 margin-top: $standard-size-and-spacing !important;
347 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000348 }
349
Nils Diewalda944fab2015-04-08 21:02:04 +0000350 #tutorial {
351 border-radius: 0;
352 border-width: 0;
353 right: 0;
354 left: 0;
355 bottom: 0;
356 top: 0;
357 padding: 0;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000358 iframe {
359 border-radius: 0;
360 }
Akron1120a582017-10-17 12:29:16 +0200361 > ul.action.right {
362 height: 1.5em;
363 right: 20px;
364 border-bottom-left-radius: 5px;
365 border-bottom-right-radius: 5px;
366 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000367 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000368
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200369 // main.page {
370 // margin-right: 20px;
371 // }
Akroned280252021-03-15 15:02:41 +0100372
373 footer {
374 padding-left: 0 !important;
Akronc84ec1a2024-04-12 13:50:10 +0200375 nav {
376 margin-left: 1em;
377 height: auto;
378 flex-direction: column;
379 div {
380 margin-left: 0;
381 &:after {
382 content: "";
383 }
384 }
385 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200386 padding-top: 2rem;
387 flex-direction: column;
388 height: unset;
Akroned280252021-03-15 15:02:41 +0100389 }
Akron7e2b8de2018-02-13 18:59:37 +0100390}
391
Akronc84ec1a2024-04-12 13:50:10 +0200392@media all and (max-width: 32em) {
393 footer {
394 padding-top: 1em;
395 height: auto;
396 align-items: flex-start;
397 flex-direction: column;
398 div#logos {
399 margin: auto;
400 }
401 }
402}
Akron7e2b8de2018-02-13 18:59:37 +0100403
404@media print {
405 body, html, select, g > text {
406 color: black;
407 }
408 header, aside {
409 display: none;
410 }
Akronf7ec4442019-10-27 20:01:05 +0100411 main.page {
Akron7e2b8de2018-02-13 18:59:37 +0100412 margin: 1em;
413 }
Akron9490e3b2019-10-17 12:26:29 +0200414 a.embedded-link {
Akron7e2b8de2018-02-13 18:59:37 +0100415 color: black;
416 text-decoration: underline;
417 }
418 pre.query.tutorial {
419 background-color: white;
420 color: black;
421 margin-left: 1em;
422 margin-right: 1em;
423 }
424 blockquote.warning {
425 background-color: grey;
426 color: white;
427 border-left-color: black;
428 border-left-width: 1em;
429 }
Akronc84ec1a2024-04-12 13:50:10 +0200430}