blob: 6ff91e7b88f881bb56b36e6c85a0c41bb49e9043 [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;
25 // padding-right: 8px;
26
27 &.shifted {
28 padding-left: 0;
29 }
Akron6b42c602020-09-08 17:00:13 +020030 }
Akron2167ff52018-08-29 18:04:06 +020031
Nils Diewalda944fab2015-04-08 21:02:04 +000032 header form {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020033 margin: 1.5rem 1rem;
Nils Diewald652e5f42015-05-10 18:11:45 +000034 padding-left: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020035 // padding-top: 33px;
36
37 &#searchform {
38 margin: 2.5rem 1rem 0 1rem;
39 }
40 }
41
42 .navbar {
43 *:not(:first-child) {
44 display: none;
45 }
46
47 &-group {
48 h3.nav-link {
49 height: 2rem;
50
51 a {
52 padding: .75rem !important;
53 }
54 }
55 }
56
57 .burger-icon {
58 position: relative;
59 display: block !important;
60 width: $standard-size-and-spacing;
61 height: $standard-size-and-spacing;
62 font-size: 1.8rem;
63 color: $nearly-white;
64
65 &::after {
66 position: absolute;
67 top: 2rem;
68 left: 2rem;
69 transform: translate(-50%, -50%);
70 -o-transform: translate(-50%, -50%);
71 -moz-transform: translate(-50%, -50%);
72 -webkit-transform: translate(-50%, -50%);
73 }
74 }
75
76 &.show .burger-icon {
77 position: absolute;
78 top: 0;
79 right: 0;
80 background-color: $middle-green;
81 }
82
83 &.show * {
84 display: block;
85 }
86
87 &-group {
88 margin-top: $standard-size-and-spacing;
89 width: 100%;
90 display: block;
91 position: absolute;
92 top: 0;
93 left: 0;
94 background-color: $middle-green;
95
96 fieldset.fieldset-login {
97 display: block !important;
98 margin-right: 0 !important;
99 padding: 1rem;
100
101 form.login {
102 align-items: normal !important;
103 flex-direction: column;
104 gap: 8px;
105
106 input[type=text],
107 input[type=password] {
108 @include input-field;
109 margin-right: 0 !important;
110 }
111
112 button.btn-login {
113 width: 100% !important;
114 align-self: center;
115 background-color: $dark-green !important;
116
117 &:hover {
118 background-color: $middle-green !important;
119 color: unset !important;
120 }
121 }
122 }
123
124 p {
125 padding: 1rem 0 0;
126
127 a {
128 display: inline;
129 }
130 }
131 }
132 }
133
134 @media (hover: none) and (pointer: coarse) {
135 .dropdown {
136 margin-right: 0 !important;
137
138 &-btn {
139 &.login {
140 visibility: hidden;
141 }
142 }
143
144 &-content {
145 display: block !important;
146 width: 100% !important;
147
148 form.login {
149 input[type=text],
150 input[type=password] {
151 width: 100%;
152 }
153 }
154
155 p {
156 a {
157 display: inline;
158 }
159 }
160 }
161 }
162 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000163 }
Nils Diewald652e5f42015-05-10 18:11:45 +0000164
Nils Diewalda944fab2015-04-08 21:02:04 +0000165 .vc {
166 font-size: 9pt;
Akron90654812018-08-29 18:57:23 +0200167 .builder {
168 .doc {
169 padding-left: 3em;
170 }
171 * .docGroup {
172 margin-left: 3em;
173 }
Akron451ed5e2018-11-12 10:52:33 +0100174 > .doc {
175 padding-left: .5em;
176 }
177 > .docGroup {
178 margin-left: .5em;
179 }
Akron90654812018-08-29 18:57:23 +0200180 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000181 }
Nils Diewald652e5f42015-05-10 18:11:45 +0000182
Nils Diewalda944fab2015-04-08 21:02:04 +0000183 h1 {
Akrond059ea22021-03-02 15:32:27 +0100184 margin-left: 0px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000185 width: 130px;
186 height: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +0000187 background: {
188 size: 100%;
189 position: 50% 0;
190 }
Akronbd36c712018-02-15 11:14:23 +0100191 z-index: 110;
Akronc3f063c2021-04-20 14:29:42 +0200192 position: absolute !important;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200193 top: 50%;
194 transform: translateY(-50%);
195 -o-transform: translateY(-50%);;
196 -moz-transform: translateY(-50%);
197 -webkit-transform: translateY(-50%);
Nils Diewalda944fab2015-04-08 21:02:04 +0000198 }
199
200 #searchbar {
201 padding-right: 30px;
Akrond059ea22021-03-02 15:32:27 +0100202 margin-top: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200203 input#q-field {
Nils Diewalda944fab2015-04-08 21:02:04 +0000204 font-size: 9pt;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200205 border-radius: 6px 0 0 6px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000206 }
207 button[type=submit] {
208 right: 0;
209 }
210 }
211
212 .level-1 {
213 padding-bottom: 2px;
214 }
215
216 .level-2 {
217 padding-bottom: 4px;
218 }
219
220 main {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200221 padding: 1rem;
Nils Diewalda944fab2015-04-08 21:02:04 +0000222 margin-left: $standard-margin;
223 margin-right: $standard-margin;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200224
225 &.shifted {
226 padding-left: 0;
227 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000228 }
229
Akronb917a7c2015-07-02 11:02:42 +0200230 header .button {
Akron67b51812017-05-01 14:10:55 +0200231 margin-right: $standard-margin;
232 &.top {
233 height: auto;
234 }
Akronb917a7c2015-07-02 11:02:42 +0200235 }
236
Nils Diewalda944fab2015-04-08 21:02:04 +0000237 #search ol {
238 > li:target, > li.active {
239 > div > div.snippet {
Akron67b51812017-05-01 14:10:55 +0200240 margin: 2px 2em 2px 4px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000241 }
242 }
Akron67b51812017-05-01 14:10:55 +0200243 > li div.meta {
244 display: none;
245 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000246 }
247
248 div.matchinfo {
249 font-size: 9pt;
250 }
251
252 div.matchtable tr > * {
253 padding: 1pt 3pt;
254 }
255
Akron8b592d42018-01-26 18:33:06 +0100256 div.matchtree { //, div.metatable {
Nils Diewalda944fab2015-04-08 21:02:04 +0000257 h6 {
258 display: block;
259 float: none;
260 }
Akron8b592d42018-01-26 18:33:06 +0100261 > div { // , > dl {
Nils Diewalda944fab2015-04-08 21:02:04 +0000262 margin-left: 2px;
263 }
264 }
Akrone6be0a82019-03-12 15:24:31 +0100265
Nils Diewalda944fab2015-04-08 21:02:04 +0000266 #logos {
267 margin-left: 0;
268 margin-right: 0;
269
270 > div {
271 border-top-width: 14px;
Akrone6be0a82019-03-12 15:24:31 +0100272 padding-right: 0;
273 .logo > * {
274 background: {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200275 size: 60%;
276 position: 0 0;
277 }
Akrone6be0a82019-03-12 15:24:31 +0100278 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200279 }
280 }
281
282 .logo > * {
283 > div.logoaddon {
284 right: -1.2rem;
285 top: 1.4rem;
Nils Diewalda944fab2015-04-08 21:02:04 +0000286 }
287 }
288
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000289 div.intro {
290 width: 100%;
Nils Diewalda944fab2015-04-08 21:02:04 +0000291 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000292
Akron1120a582017-10-17 12:29:16 +0200293 body.embedded aside > div {
294 top: 0;
295 transform: translateY(0);
296 }
297
Nils Diewald7148c6f2015-05-04 15:07:53 +0000298 aside {
299 &:not(:focus):not(.active) {
300 margin-left: -1 * $logo-left-distance;
301 &::after {
Akron05238fb2017-06-02 14:29:03 +0200302 font-size: 12pt;
Akron05238fb2017-06-02 14:29:03 +0200303 height: 11pt;
Akron2167ff52018-08-29 18:04:06 +0200304 text-align: right;
305 padding-right: 3pt;
306 padding-top: 2pt;
Nils Diewald7148c6f2015-05-04 15:07:53 +0000307 }
308 }
309 ul {
310 font-size: 9pt;
311 line-height: 1em;
312 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200313 // &.active ~ main div.intro,
314 // &.active ~ main.page {
315 // margin-left: $standard-margin !important;
316 // }
Akron4751da62017-06-07 22:37:10 +0200317
318 &.active {
319 position: relative;
320 display: block;
321 padding-top: 0;
322 width: 100%;
323 top: 0;
324 border-width: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200325
Akron4751da62017-06-07 22:37:10 +0200326 fieldset input {
327 font-size: 9pt;
328 }
329 &::after {
330 display: none;
331 }
Akronef6d5f12018-05-28 17:54:58 +0200332 p, hr {
Akron4751da62017-06-07 22:37:10 +0200333 display: none;
334 }
335 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200336
337 .nav.nav-doc:first-child {
338 margin-top: $standard-size-and-spacing !important;
339 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000340 }
341
Nils Diewalda944fab2015-04-08 21:02:04 +0000342 #tutorial {
343 border-radius: 0;
344 border-width: 0;
345 right: 0;
346 left: 0;
347 bottom: 0;
348 top: 0;
349 padding: 0;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000350 iframe {
351 border-radius: 0;
352 }
Akron1120a582017-10-17 12:29:16 +0200353 > ul.action.right {
354 height: 1.5em;
355 right: 20px;
356 border-bottom-left-radius: 5px;
357 border-bottom-right-radius: 5px;
358 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000359 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000360
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200361 // main.page {
362 // margin-right: 20px;
363 // }
Akroned280252021-03-15 15:02:41 +0100364
365 footer {
366 padding-left: 0 !important;
Akronc84ec1a2024-04-12 13:50:10 +0200367 nav {
368 margin-left: 1em;
369 height: auto;
370 flex-direction: column;
371 div {
372 margin-left: 0;
373 &:after {
374 content: "";
375 }
376 }
377 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200378 padding-top: 2rem;
379 flex-direction: column;
380 height: unset;
Akroned280252021-03-15 15:02:41 +0100381 }
Akron7e2b8de2018-02-13 18:59:37 +0100382}
383
Akronc84ec1a2024-04-12 13:50:10 +0200384@media all and (max-width: 32em) {
385 footer {
386 padding-top: 1em;
387 height: auto;
388 align-items: flex-start;
389 flex-direction: column;
390 div#logos {
391 margin: auto;
392 }
393 }
394}
Akron7e2b8de2018-02-13 18:59:37 +0100395
396@media print {
397 body, html, select, g > text {
398 color: black;
399 }
400 header, aside {
401 display: none;
402 }
Akronf7ec4442019-10-27 20:01:05 +0100403 main.page {
Akron7e2b8de2018-02-13 18:59:37 +0100404 margin: 1em;
405 }
Akron9490e3b2019-10-17 12:26:29 +0200406 a.embedded-link {
Akron7e2b8de2018-02-13 18:59:37 +0100407 color: black;
408 text-decoration: underline;
409 }
410 pre.query.tutorial {
411 background-color: white;
412 color: black;
413 margin-left: 1em;
414 margin-right: 1em;
415 }
416 blockquote.warning {
417 background-color: grey;
418 color: white;
419 border-left-color: black;
420 border-left-width: 1em;
421 }
Akronc84ec1a2024-04-12 13:50:10 +0200422}