blob: c9a1e7e943a9dd4b674ffd72cf084fa97511e30c [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 Tran74103b52024-04-23 01:17:58 +020024 padding-top: 2rem;
Uyen-Nhu Tran8a996bd2024-04-25 16:31:56 +020025 // padding-right: 8px;
Akron6b42c602020-09-08 17:00:13 +020026 }
Akron2167ff52018-08-29 18:04:06 +020027
Nils Diewalda944fab2015-04-08 21:02:04 +000028 header form {
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020029 margin: 1.5rem 1rem;
Nils Diewald652e5f42015-05-10 18:11:45 +000030 padding-left: 0;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020031 // padding-top: 33px;
Uyen-Nhu Tran8a996bd2024-04-25 16:31:56 +020032
33 &#searchform {
34 margin: 2.5rem 1rem 0 1rem;
35 }
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020036 }
37
38 .navbar {
39 *:not(:first-child) {
40 display: none;
41 }
42
43 .burger-icon {
Uyen-Nhu Tran8a996bd2024-04-25 16:31:56 +020044 position: relative;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020045 display: block !important;
Uyen-Nhu Tran8a996bd2024-04-25 16:31:56 +020046 width: 4rem;
47 height: 4rem;
48 font-size: 1.8rem;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020049 color: $nearly-white;
Uyen-Nhu Tran8a996bd2024-04-25 16:31:56 +020050
51 &::after {
52 position: absolute;
53 top: 2rem;
54 left: 2rem;
55 transform: translate(-50%, -50%);
56 -o-transform: translate(-50%, -50%);
57 -moz-transform: translate(-50%, -50%);
58 -webkit-transform: translate(-50%, -50%);
59 }
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020060 }
61
62 &.show .burger-icon {
63 position: absolute;
64 top: 0;
65 right: 0;
66 background-color: $middle-green;
67 }
68
69 &.show * {
70 display: block;
71 }
72
73 &-group {
Uyen-Nhu Tran8a996bd2024-04-25 16:31:56 +020074 margin-top: 4rem;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020075 width: 100%;
76 display: block;
77 position: fixed;
78 top: 0;
79 left: 0;
80 background-color: $middle-green;
81
82 fieldset.fieldset-login {
Uyen-Nhu Tran8a996bd2024-04-25 16:31:56 +020083 display: block !important;
84 margin-right: 0 !important;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020085
86 form.login {
87 align-items: normal !important;
88 flex-direction: column;
89 gap: 6px;
90
91 input[type=text],
92 input[type=password] {
93 @include input-field;
94 margin-right: 0 !important;
95 }
96
97 button.btn-login {
98 width: 100% !important;
99 align-self: center;
Uyen-Nhu Tran8a996bd2024-04-25 16:31:56 +0200100 background-color: $dark-green !important;
101
102 &:hover {
103 background-color: $middle-green !important;
104 color: unset !important;
105 }
106 }
107 }
108
109 p {
110 padding: 0 1rem 1rem;
111
112 a {
113 display: inline;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +0200114 }
115 }
116 }
117 }
118
119 @media (hover: none) and (pointer: coarse) {
120 .dropdown {
121 margin-right: 0 !important;
122
123 &-content {
124 display: block !important;
Uyen-Nhu Tran8a996bd2024-04-25 16:31:56 +0200125 width: 100% !important;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +0200126 }
127 }
128 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000129 }
Nils Diewald652e5f42015-05-10 18:11:45 +0000130
Nils Diewalda944fab2015-04-08 21:02:04 +0000131 .vc {
132 font-size: 9pt;
Akron90654812018-08-29 18:57:23 +0200133 .builder {
134 .doc {
135 padding-left: 3em;
136 }
137 * .docGroup {
138 margin-left: 3em;
139 }
Akron451ed5e2018-11-12 10:52:33 +0100140 > .doc {
141 padding-left: .5em;
142 }
143 > .docGroup {
144 margin-left: .5em;
145 }
Akron90654812018-08-29 18:57:23 +0200146 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000147 }
Nils Diewald652e5f42015-05-10 18:11:45 +0000148
Nils Diewalda944fab2015-04-08 21:02:04 +0000149 h1 {
Akrond059ea22021-03-02 15:32:27 +0100150 margin-left: 0px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000151 width: 130px;
152 height: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +0000153 background: {
154 size: 100%;
155 position: 50% 0;
156 }
Akronbd36c712018-02-15 11:14:23 +0100157 z-index: 110;
Akronc3f063c2021-04-20 14:29:42 +0200158 position: absolute !important;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +0200159 top: 50%;
160 transform: translateY(-50%);
161 -o-transform: translateY(-50%);;
162 -moz-transform: translateY(-50%);
163 -webkit-transform: translateY(-50%);
Nils Diewalda944fab2015-04-08 21:02:04 +0000164 }
165
166 #searchbar {
167 padding-right: 30px;
Akrond059ea22021-03-02 15:32:27 +0100168 margin-top: 0;
Uyen-Nhu Trancac3cd92024-04-10 01:28:27 +0200169 input#q-field {
Nils Diewalda944fab2015-04-08 21:02:04 +0000170 font-size: 9pt;
Uyen-Nhu Trancac3cd92024-04-10 01:28:27 +0200171 border-radius: 6px 0 0 6px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000172 }
173 button[type=submit] {
174 right: 0;
175 }
176 }
177
178 .level-1 {
179 padding-bottom: 2px;
180 }
181
182 .level-2 {
183 padding-bottom: 4px;
184 }
185
186 main {
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +0200187 padding: 1rem;
Nils Diewalda944fab2015-04-08 21:02:04 +0000188 margin-left: $standard-margin;
189 margin-right: $standard-margin;
190 }
191
Akronb917a7c2015-07-02 11:02:42 +0200192 header .button {
Akron67b51812017-05-01 14:10:55 +0200193 margin-right: $standard-margin;
194 &.top {
195 height: auto;
196 }
Akronb917a7c2015-07-02 11:02:42 +0200197 }
198
Nils Diewalda944fab2015-04-08 21:02:04 +0000199 #search ol {
200 > li:target, > li.active {
201 > div > div.snippet {
Akron67b51812017-05-01 14:10:55 +0200202 margin: 2px 2em 2px 4px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000203 }
204 }
Akron67b51812017-05-01 14:10:55 +0200205 > li div.meta {
206 display: none;
207 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000208 }
209
210 div.matchinfo {
211 font-size: 9pt;
212 }
213
214 div.matchtable tr > * {
215 padding: 1pt 3pt;
216 }
217
Akron8b592d42018-01-26 18:33:06 +0100218 div.matchtree { //, div.metatable {
Nils Diewalda944fab2015-04-08 21:02:04 +0000219 h6 {
220 display: block;
221 float: none;
222 }
Akron8b592d42018-01-26 18:33:06 +0100223 > div { // , > dl {
Nils Diewalda944fab2015-04-08 21:02:04 +0000224 margin-left: 2px;
225 }
226 }
Akrone6be0a82019-03-12 15:24:31 +0100227
Nils Diewalda944fab2015-04-08 21:02:04 +0000228 #logos {
229 margin-left: 0;
230 margin-right: 0;
231
232 > div {
233 border-top-width: 14px;
Akrone6be0a82019-03-12 15:24:31 +0100234 padding-right: 0;
235 .logo > * {
236 background: {
237 size: 60%;
238 position: 0 0;
239 }
240 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000241 }
242 }
243
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000244 div.intro {
245 width: 100%;
Nils Diewalda944fab2015-04-08 21:02:04 +0000246 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000247
Akron1120a582017-10-17 12:29:16 +0200248 body.embedded aside > div {
249 top: 0;
250 transform: translateY(0);
251 }
252
Nils Diewald7148c6f2015-05-04 15:07:53 +0000253 aside {
254 &:not(:focus):not(.active) {
255 margin-left: -1 * $logo-left-distance;
256 &::after {
Akron05238fb2017-06-02 14:29:03 +0200257 font-size: 12pt;
Akron05238fb2017-06-02 14:29:03 +0200258 height: 11pt;
Akron2167ff52018-08-29 18:04:06 +0200259 text-align: right;
260 padding-right: 3pt;
261 padding-top: 2pt;
Nils Diewald7148c6f2015-05-04 15:07:53 +0000262 }
263 }
264 ul {
265 font-size: 9pt;
266 line-height: 1em;
267 }
Akron1120a582017-10-17 12:29:16 +0200268 &.active ~ main div.intro,
Akronf7ec4442019-10-27 20:01:05 +0100269 &.active ~ main.page {
Akron05238fb2017-06-02 14:29:03 +0200270 margin-left: $standard-margin !important;
271 }
Akron4751da62017-06-07 22:37:10 +0200272
273 &.active {
274 position: relative;
275 display: block;
276 padding-top: 0;
277 width: 100%;
278 top: 0;
279 border-width: 0;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +0200280
Akron4751da62017-06-07 22:37:10 +0200281 fieldset input {
282 font-size: 9pt;
283 }
284 &::after {
285 display: none;
286 }
Akronef6d5f12018-05-28 17:54:58 +0200287 p, hr {
Akron4751da62017-06-07 22:37:10 +0200288 display: none;
289 }
290 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000291 }
292
Nils Diewalda944fab2015-04-08 21:02:04 +0000293 #tutorial {
294 border-radius: 0;
295 border-width: 0;
296 right: 0;
297 left: 0;
298 bottom: 0;
299 top: 0;
300 padding: 0;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000301 iframe {
302 border-radius: 0;
303 }
Akron1120a582017-10-17 12:29:16 +0200304 > ul.action.right {
305 height: 1.5em;
306 right: 20px;
307 border-bottom-left-radius: 5px;
308 border-bottom-right-radius: 5px;
309 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000310 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000311
Akronf7ec4442019-10-27 20:01:05 +0100312 main.page {
Akron1120a582017-10-17 12:29:16 +0200313 margin-right: 20px;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000314 }
Akroned280252021-03-15 15:02:41 +0100315
316 footer {
317 padding-left: 0 !important;
Uyen-Nhu Tran8a996bd2024-04-25 16:31:56 +0200318 padding-top: 2rem;
319 flex-direction: column;
320 height: unset;
Akroned280252021-03-15 15:02:41 +0100321 }
Akron7e2b8de2018-02-13 18:59:37 +0100322}
323
324
325@media print {
326 body, html, select, g > text {
327 color: black;
328 }
329 header, aside {
330 display: none;
331 }
Akronf7ec4442019-10-27 20:01:05 +0100332 main.page {
Akron7e2b8de2018-02-13 18:59:37 +0100333 margin: 1em;
334 }
Akron9490e3b2019-10-17 12:26:29 +0200335 a.embedded-link {
Akron7e2b8de2018-02-13 18:59:37 +0100336 color: black;
337 text-decoration: underline;
338 }
339 pre.query.tutorial {
340 background-color: white;
341 color: black;
342 margin-left: 1em;
343 margin-right: 1em;
344 }
345 blockquote.warning {
346 background-color: grey;
347 color: white;
348 border-left-color: black;
349 border-left-width: 1em;
350 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000351}