blob: 8201f8bdf29b3948deeffb126b37f9da9ced9d58 [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;
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +010051 display: none;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020052 width: $standard-size-and-spacing;
53 height: $standard-size-and-spacing;
54 font-size: 1.8rem;
55 color: $nearly-white;
56
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +010057 &.show {
58 display: block;
59 }
60
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020061 &::after {
62 position: absolute;
63 top: 2rem;
64 left: 2rem;
65 transform: translate(-50%, -50%);
66 -o-transform: translate(-50%, -50%);
67 -moz-transform: translate(-50%, -50%);
68 -webkit-transform: translate(-50%, -50%);
69 }
70 }
71
72 &.show .burger-icon {
73 position: absolute;
74 top: 0;
75 right: 0;
76 background-color: $middle-green;
77 }
78
79 &.show * {
80 display: block;
81 }
82
83 &-group {
84 margin-top: $standard-size-and-spacing;
85 width: 100%;
86 display: block;
87 position: absolute;
88 top: 0;
89 left: 0;
90 background-color: $middle-green;
91
92 fieldset.fieldset-login {
93 display: block !important;
94 margin-right: 0 !important;
95 padding: 1rem;
96
97 form.login {
98 align-items: normal !important;
99 flex-direction: column;
100 gap: 8px;
101
102 input[type=text],
103 input[type=password] {
104 @include input-field;
105 margin-right: 0 !important;
106 }
107
108 button.btn-login {
109 width: 100% !important;
110 align-self: center;
111 background-color: $dark-green !important;
112
113 &:hover {
114 background-color: $middle-green !important;
115 color: unset !important;
116 }
117 }
118 }
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100119 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200120
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100121 h3.nav-link {
122 height: 2rem;
123
124 a {
125 padding: .75rem !important;
126 }
127 }
128
129 p {
130 padding: 1rem 0 0;
131
132 a {
133 display: inline;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200134 }
135 }
136 }
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100137
138 .dropdown {
139 margin-right: 0 !important;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200140
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100141 &-btn {
142 &.login {
143 display: none;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200144
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100145 & + .dropdown-content {
146 margin-top: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200147 }
148 }
149
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100150 &.profile {
151 & + .dropdown-content {
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +0100152 margin-top: 3.9rem;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200153 }
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100154 }
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +0100155
156 h3.user-name {
157 max-width: unset;
158 overflow: unset;
159 }
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100160 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200161
Uyen-Nhu Trane1eba0c2024-12-10 17:06:39 +0100162 &-content {
163 display: block !important;
164 width: 100% !important;
165
166 form.login {
167 input[type=text],
168 input[type=password] {
169 width: 100%;
170 }
171 }
172
173 p {
174 a {
175 display: inline;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200176 }
177 }
178 }
179 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000180 }
Nils Diewald652e5f42015-05-10 18:11:45 +0000181
Nils Diewalda944fab2015-04-08 21:02:04 +0000182 .vc {
183 font-size: 9pt;
Akron90654812018-08-29 18:57:23 +0200184 .builder {
185 .doc {
186 padding-left: 3em;
187 }
188 * .docGroup {
189 margin-left: 3em;
190 }
Akron451ed5e2018-11-12 10:52:33 +0100191 > .doc {
192 padding-left: .5em;
193 }
194 > .docGroup {
195 margin-left: .5em;
196 }
Akron90654812018-08-29 18:57:23 +0200197 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000198 }
Nils Diewald652e5f42015-05-10 18:11:45 +0000199
Nils Diewalda944fab2015-04-08 21:02:04 +0000200 h1 {
Akrond059ea22021-03-02 15:32:27 +0100201 margin-left: 0px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000202 width: 130px;
203 height: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +0000204 background: {
205 size: 100%;
206 position: 50% 0;
207 }
Akronbd36c712018-02-15 11:14:23 +0100208 z-index: 110;
Akronc3f063c2021-04-20 14:29:42 +0200209 position: absolute !important;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200210 top: 50%;
211 transform: translateY(-50%);
212 -o-transform: translateY(-50%);;
213 -moz-transform: translateY(-50%);
214 -webkit-transform: translateY(-50%);
Nils Diewalda944fab2015-04-08 21:02:04 +0000215 }
216
217 #searchbar {
218 padding-right: 30px;
Akrond059ea22021-03-02 15:32:27 +0100219 margin-top: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200220 input#q-field {
Nils Diewalda944fab2015-04-08 21:02:04 +0000221 font-size: 9pt;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200222 border-radius: 6px 0 0 6px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000223 }
224 button[type=submit] {
225 right: 0;
226 }
227 }
228
229 .level-1 {
230 padding-bottom: 2px;
231 }
232
233 .level-2 {
234 padding-bottom: 4px;
235 }
236
237 main {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200238 padding: 1rem;
Nils Diewalda944fab2015-04-08 21:02:04 +0000239 margin-left: $standard-margin;
240 margin-right: $standard-margin;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200241
242 &.shifted {
243 padding-left: 0;
244 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000245 }
246
Akronb917a7c2015-07-02 11:02:42 +0200247 header .button {
Akron67b51812017-05-01 14:10:55 +0200248 margin-right: $standard-margin;
249 &.top {
250 height: auto;
251 }
Akronb917a7c2015-07-02 11:02:42 +0200252 }
253
Nils Diewalda944fab2015-04-08 21:02:04 +0000254 #search ol {
255 > li:target, > li.active {
256 > div > div.snippet {
Akron67b51812017-05-01 14:10:55 +0200257 margin: 2px 2em 2px 4px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000258 }
259 }
Akron67b51812017-05-01 14:10:55 +0200260 > li div.meta {
261 display: none;
262 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000263 }
264
265 div.matchinfo {
266 font-size: 9pt;
267 }
268
269 div.matchtable tr > * {
270 padding: 1pt 3pt;
271 }
272
Akron8b592d42018-01-26 18:33:06 +0100273 div.matchtree { //, div.metatable {
Nils Diewalda944fab2015-04-08 21:02:04 +0000274 h6 {
275 display: block;
276 float: none;
277 }
Akron8b592d42018-01-26 18:33:06 +0100278 > div { // , > dl {
Nils Diewalda944fab2015-04-08 21:02:04 +0000279 margin-left: 2px;
280 }
281 }
Akrone6be0a82019-03-12 15:24:31 +0100282
Nils Diewalda944fab2015-04-08 21:02:04 +0000283 #logos {
284 margin-left: 0;
285 margin-right: 0;
286
287 > div {
288 border-top-width: 14px;
Akrone6be0a82019-03-12 15:24:31 +0100289 padding-right: 0;
290 .logo > * {
291 background: {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200292 size: 60%;
293 position: 0 0;
294 }
Akrone6be0a82019-03-12 15:24:31 +0100295 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200296 }
297 }
298
299 .logo > * {
300 > div.logoaddon {
301 right: -1.2rem;
302 top: 1.4rem;
Nils Diewalda944fab2015-04-08 21:02:04 +0000303 }
304 }
305
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000306 div.intro {
307 width: 100%;
Nils Diewalda944fab2015-04-08 21:02:04 +0000308 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000309
Akron1120a582017-10-17 12:29:16 +0200310 body.embedded aside > div {
311 top: 0;
312 transform: translateY(0);
313 }
314
Nils Diewald7148c6f2015-05-04 15:07:53 +0000315 aside {
316 &:not(:focus):not(.active) {
317 margin-left: -1 * $logo-left-distance;
318 &::after {
Akron05238fb2017-06-02 14:29:03 +0200319 font-size: 12pt;
Akron05238fb2017-06-02 14:29:03 +0200320 height: 11pt;
Akron2167ff52018-08-29 18:04:06 +0200321 text-align: right;
322 padding-right: 3pt;
323 padding-top: 2pt;
Nils Diewald7148c6f2015-05-04 15:07:53 +0000324 }
325 }
326 ul {
327 font-size: 9pt;
328 line-height: 1em;
329 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200330 // &.active ~ main div.intro,
331 // &.active ~ main.page {
332 // margin-left: $standard-margin !important;
333 // }
Akron4751da62017-06-07 22:37:10 +0200334
335 &.active {
336 position: relative;
337 display: block;
338 padding-top: 0;
339 width: 100%;
340 top: 0;
341 border-width: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200342
Akron4751da62017-06-07 22:37:10 +0200343 fieldset input {
344 font-size: 9pt;
345 }
346 &::after {
347 display: none;
348 }
Akronef6d5f12018-05-28 17:54:58 +0200349 p, hr {
Akron4751da62017-06-07 22:37:10 +0200350 display: none;
351 }
352 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200353
354 .nav.nav-doc:first-child {
355 margin-top: $standard-size-and-spacing !important;
356 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000357 }
358
Nils Diewalda944fab2015-04-08 21:02:04 +0000359 #tutorial {
360 border-radius: 0;
361 border-width: 0;
362 right: 0;
363 left: 0;
364 bottom: 0;
365 top: 0;
366 padding: 0;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000367 iframe {
368 border-radius: 0;
369 }
Akron1120a582017-10-17 12:29:16 +0200370 > ul.action.right {
371 height: 1.5em;
372 right: 20px;
373 border-bottom-left-radius: 5px;
374 border-bottom-right-radius: 5px;
375 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000376 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000377
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200378 // main.page {
379 // margin-right: 20px;
380 // }
Akroned280252021-03-15 15:02:41 +0100381
382 footer {
383 padding-left: 0 !important;
Akronc84ec1a2024-04-12 13:50:10 +0200384 nav {
385 margin-left: 1em;
386 height: auto;
387 flex-direction: column;
388 div {
389 margin-left: 0;
390 &:after {
391 content: "";
392 }
393 }
394 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200395 padding-top: 2rem;
396 flex-direction: column;
397 height: unset;
Akroned280252021-03-15 15:02:41 +0100398 }
Akron7e2b8de2018-02-13 18:59:37 +0100399}
400
Akronc84ec1a2024-04-12 13:50:10 +0200401@media all and (max-width: 32em) {
402 footer {
403 padding-top: 1em;
404 height: auto;
405 align-items: flex-start;
406 flex-direction: column;
407 div#logos {
408 margin: auto;
409 }
410 }
411}
Akron7e2b8de2018-02-13 18:59:37 +0100412
413@media print {
414 body, html, select, g > text {
415 color: black;
416 }
417 header, aside {
418 display: none;
419 }
Akronf7ec4442019-10-27 20:01:05 +0100420 main.page {
Akron7e2b8de2018-02-13 18:59:37 +0100421 margin: 1em;
422 }
Akron9490e3b2019-10-17 12:26:29 +0200423 a.embedded-link {
Akron7e2b8de2018-02-13 18:59:37 +0100424 color: black;
425 text-decoration: underline;
426 }
427 pre.query.tutorial {
428 background-color: white;
429 color: black;
430 margin-left: 1em;
431 margin-right: 1em;
432 }
433 blockquote.warning {
434 background-color: grey;
435 color: white;
436 border-left-color: black;
437 border-left-width: 1em;
438 }
Akronc84ec1a2024-04-12 13:50:10 +0200439}