Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
| 2 | @import "util"; |
| 3 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 4 | /** |
| 5 | * Media rules for different screen sizes. |
| 6 | * This will override some basic rules. |
| 7 | */ |
| 8 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 9 | $standard-margin: 4px; |
| 10 | |
Akron | 05238fb | 2017-06-02 14:29:03 +0200 | [diff] [blame] | 11 | // (orientation: portrait), |
| 12 | @media all and (max-width: 42.5em) { |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 13 | body, |
Akron | 2167ff5 | 2018-08-29 18:04:06 +0200 | [diff] [blame] | 14 | #search > ol, |
| 15 | #search div.snippet > span, |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 16 | header, |
| 17 | header input, |
Akron | 179c8ac | 2015-06-30 19:30:50 +0200 | [diff] [blame] | 18 | div#resultinfo, |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 19 | #pagination > a { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 20 | font-size: 9pt; |
| 21 | } |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 22 | |
Akron | 2167ff5 | 2018-08-29 18:04:06 +0200 | [diff] [blame] | 23 | header { |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 24 | padding-top: 3rem; |
| 25 | // padding-right: 8px; |
| 26 | |
| 27 | &.shifted { |
| 28 | padding-left: 0; |
| 29 | } |
Akron | 6b42c60 | 2020-09-08 17:00:13 +0200 | [diff] [blame] | 30 | } |
Akron | 2167ff5 | 2018-08-29 18:04:06 +0200 | [diff] [blame] | 31 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 32 | header form { |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 33 | margin: 1.5rem 1rem; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 34 | padding-left: 0; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 35 | // 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 Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 163 | } |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 164 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 165 | .vc { |
| 166 | font-size: 9pt; |
Akron | 9065481 | 2018-08-29 18:57:23 +0200 | [diff] [blame] | 167 | .builder { |
| 168 | .doc { |
| 169 | padding-left: 3em; |
| 170 | } |
| 171 | * .docGroup { |
| 172 | margin-left: 3em; |
| 173 | } |
Akron | 451ed5e | 2018-11-12 10:52:33 +0100 | [diff] [blame] | 174 | > .doc { |
| 175 | padding-left: .5em; |
| 176 | } |
| 177 | > .docGroup { |
| 178 | margin-left: .5em; |
| 179 | } |
Akron | 9065481 | 2018-08-29 18:57:23 +0200 | [diff] [blame] | 180 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 181 | } |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 182 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 183 | h1 { |
Akron | d059ea2 | 2021-03-02 15:32:27 +0100 | [diff] [blame] | 184 | margin-left: 0px; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 185 | width: 130px; |
| 186 | height: 40px; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 187 | background: { |
| 188 | size: 100%; |
| 189 | position: 50% 0; |
| 190 | } |
Akron | bd36c71 | 2018-02-15 11:14:23 +0100 | [diff] [blame] | 191 | z-index: 110; |
Akron | c3f063c | 2021-04-20 14:29:42 +0200 | [diff] [blame] | 192 | position: absolute !important; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 193 | top: 50%; |
| 194 | transform: translateY(-50%); |
| 195 | -o-transform: translateY(-50%);; |
| 196 | -moz-transform: translateY(-50%); |
| 197 | -webkit-transform: translateY(-50%); |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 198 | } |
| 199 | |
| 200 | #searchbar { |
| 201 | padding-right: 30px; |
Akron | d059ea2 | 2021-03-02 15:32:27 +0100 | [diff] [blame] | 202 | margin-top: 0; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 203 | input#q-field { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 204 | font-size: 9pt; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 205 | border-radius: 6px 0 0 6px; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 206 | } |
| 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 Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 221 | padding: 1rem; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 222 | margin-left: $standard-margin; |
| 223 | margin-right: $standard-margin; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 224 | |
| 225 | &.shifted { |
| 226 | padding-left: 0; |
| 227 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 228 | } |
| 229 | |
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 230 | header .button { |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 231 | margin-right: $standard-margin; |
| 232 | &.top { |
| 233 | height: auto; |
| 234 | } |
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 235 | } |
| 236 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 237 | #search ol { |
| 238 | > li:target, > li.active { |
| 239 | > div > div.snippet { |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 240 | margin: 2px 2em 2px 4px; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 241 | } |
| 242 | } |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 243 | > li div.meta { |
| 244 | display: none; |
| 245 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 246 | } |
| 247 | |
| 248 | div.matchinfo { |
| 249 | font-size: 9pt; |
| 250 | } |
| 251 | |
| 252 | div.matchtable tr > * { |
| 253 | padding: 1pt 3pt; |
| 254 | } |
| 255 | |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 256 | div.matchtree { //, div.metatable { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 257 | h6 { |
| 258 | display: block; |
| 259 | float: none; |
| 260 | } |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 261 | > div { // , > dl { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 262 | margin-left: 2px; |
| 263 | } |
| 264 | } |
Akron | e6be0a8 | 2019-03-12 15:24:31 +0100 | [diff] [blame] | 265 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 266 | #logos { |
| 267 | margin-left: 0; |
| 268 | margin-right: 0; |
| 269 | |
| 270 | > div { |
| 271 | border-top-width: 14px; |
Akron | e6be0a8 | 2019-03-12 15:24:31 +0100 | [diff] [blame] | 272 | padding-right: 0; |
| 273 | .logo > * { |
| 274 | background: { |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 275 | size: 60%; |
| 276 | position: 0 0; |
| 277 | } |
Akron | e6be0a8 | 2019-03-12 15:24:31 +0100 | [diff] [blame] | 278 | } |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 279 | } |
| 280 | } |
| 281 | |
| 282 | .logo > * { |
| 283 | > div.logoaddon { |
| 284 | right: -1.2rem; |
| 285 | top: 1.4rem; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 286 | } |
| 287 | } |
| 288 | |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 289 | div.intro { |
| 290 | width: 100%; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 291 | } |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 292 | |
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 293 | body.embedded aside > div { |
| 294 | top: 0; |
| 295 | transform: translateY(0); |
| 296 | } |
| 297 | |
Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 298 | aside { |
| 299 | &:not(:focus):not(.active) { |
| 300 | margin-left: -1 * $logo-left-distance; |
| 301 | &::after { |
Akron | 05238fb | 2017-06-02 14:29:03 +0200 | [diff] [blame] | 302 | font-size: 12pt; |
Akron | 05238fb | 2017-06-02 14:29:03 +0200 | [diff] [blame] | 303 | height: 11pt; |
Akron | 2167ff5 | 2018-08-29 18:04:06 +0200 | [diff] [blame] | 304 | text-align: right; |
| 305 | padding-right: 3pt; |
| 306 | padding-top: 2pt; |
Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 307 | } |
| 308 | } |
| 309 | ul { |
| 310 | font-size: 9pt; |
| 311 | line-height: 1em; |
| 312 | } |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 313 | // &.active ~ main div.intro, |
| 314 | // &.active ~ main.page { |
| 315 | // margin-left: $standard-margin !important; |
| 316 | // } |
Akron | 4751da6 | 2017-06-07 22:37:10 +0200 | [diff] [blame] | 317 | |
| 318 | &.active { |
| 319 | position: relative; |
| 320 | display: block; |
| 321 | padding-top: 0; |
| 322 | width: 100%; |
| 323 | top: 0; |
| 324 | border-width: 0; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 325 | |
Akron | 4751da6 | 2017-06-07 22:37:10 +0200 | [diff] [blame] | 326 | fieldset input { |
| 327 | font-size: 9pt; |
| 328 | } |
| 329 | &::after { |
| 330 | display: none; |
| 331 | } |
Akron | ef6d5f1 | 2018-05-28 17:54:58 +0200 | [diff] [blame] | 332 | p, hr { |
Akron | 4751da6 | 2017-06-07 22:37:10 +0200 | [diff] [blame] | 333 | display: none; |
| 334 | } |
| 335 | } |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 336 | |
| 337 | .nav.nav-doc:first-child { |
| 338 | margin-top: $standard-size-and-spacing !important; |
| 339 | } |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 340 | } |
| 341 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 342 | #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 Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 350 | iframe { |
| 351 | border-radius: 0; |
| 352 | } |
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 353 | > ul.action.right { |
| 354 | height: 1.5em; |
| 355 | right: 20px; |
| 356 | border-bottom-left-radius: 5px; |
| 357 | border-bottom-right-radius: 5px; |
| 358 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 359 | } |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 360 | |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 361 | // main.page { |
| 362 | // margin-right: 20px; |
| 363 | // } |
Akron | ed28025 | 2021-03-15 15:02:41 +0100 | [diff] [blame] | 364 | |
| 365 | footer { |
| 366 | padding-left: 0 !important; |
Akron | c84ec1a | 2024-04-12 13:50:10 +0200 | [diff] [blame] | 367 | 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 Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 378 | padding-top: 2rem; |
| 379 | flex-direction: column; |
| 380 | height: unset; |
Akron | ed28025 | 2021-03-15 15:02:41 +0100 | [diff] [blame] | 381 | } |
Akron | 7e2b8de | 2018-02-13 18:59:37 +0100 | [diff] [blame] | 382 | } |
| 383 | |
Akron | c84ec1a | 2024-04-12 13:50:10 +0200 | [diff] [blame] | 384 | @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 | } |
Akron | 7e2b8de | 2018-02-13 18:59:37 +0100 | [diff] [blame] | 395 | |
| 396 | @media print { |
| 397 | body, html, select, g > text { |
| 398 | color: black; |
| 399 | } |
| 400 | header, aside { |
| 401 | display: none; |
| 402 | } |
Akron | f7ec444 | 2019-10-27 20:01:05 +0100 | [diff] [blame] | 403 | main.page { |
Akron | 7e2b8de | 2018-02-13 18:59:37 +0100 | [diff] [blame] | 404 | margin: 1em; |
| 405 | } |
Akron | 9490e3b | 2019-10-17 12:26:29 +0200 | [diff] [blame] | 406 | a.embedded-link { |
Akron | 7e2b8de | 2018-02-13 18:59:37 +0100 | [diff] [blame] | 407 | 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 | } |
Akron | c84ec1a | 2024-04-12 13:50:10 +0200 | [diff] [blame] | 422 | } |