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 | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 24 | padding-top: 2rem; |
Akron | 2167ff5 | 2018-08-29 18:04:06 +0200 | [diff] [blame] | 25 | padding-right: 8px; |
Akron | 6b42c60 | 2020-09-08 17:00:13 +0200 | [diff] [blame] | 26 | } |
Akron | 2167ff5 | 2018-08-29 18:04:06 +0200 | [diff] [blame] | 27 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 28 | header form { |
Uyen-Nhu Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 29 | margin: 1.5rem 1rem; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 30 | padding-left: 0; |
Uyen-Nhu Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 31 | // padding-top: 33px; |
| 32 | } |
| 33 | |
| 34 | .navbar { |
| 35 | *:not(:first-child) { |
| 36 | display: none; |
| 37 | } |
| 38 | |
| 39 | .burger-icon { |
| 40 | display: block !important; |
| 41 | padding: .6rem .9rem; |
| 42 | font-size: 1.5rem; |
| 43 | color: $nearly-white; |
| 44 | } |
| 45 | |
| 46 | &.show .burger-icon { |
| 47 | position: absolute; |
| 48 | top: 0; |
| 49 | right: 0; |
| 50 | background-color: $middle-green; |
| 51 | } |
| 52 | |
| 53 | &.show * { |
| 54 | display: block; |
| 55 | } |
| 56 | |
| 57 | &-group { |
| 58 | margin-top: 3rem; |
| 59 | width: 100%; |
| 60 | display: block; |
| 61 | position: fixed; |
| 62 | top: 0; |
| 63 | left: 0; |
| 64 | background-color: $middle-green; |
| 65 | |
| 66 | fieldset.fieldset-login { |
| 67 | width: 100%; |
| 68 | |
| 69 | form.login { |
| 70 | align-items: normal !important; |
| 71 | flex-direction: column; |
| 72 | gap: 6px; |
| 73 | |
| 74 | input[type=text], |
| 75 | input[type=password] { |
| 76 | @include input-field; |
| 77 | margin-right: 0 !important; |
| 78 | } |
| 79 | |
| 80 | button.btn-login { |
| 81 | width: 100% !important; |
| 82 | align-self: center; |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | @media (hover: none) and (pointer: coarse) { |
| 89 | .dropdown { |
| 90 | margin-right: 0 !important; |
| 91 | |
| 92 | &-content { |
| 93 | display: block !important; |
| 94 | } |
| 95 | } |
| 96 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 97 | } |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 98 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 99 | .vc { |
| 100 | font-size: 9pt; |
Akron | 9065481 | 2018-08-29 18:57:23 +0200 | [diff] [blame] | 101 | .builder { |
| 102 | .doc { |
| 103 | padding-left: 3em; |
| 104 | } |
| 105 | * .docGroup { |
| 106 | margin-left: 3em; |
| 107 | } |
Akron | 451ed5e | 2018-11-12 10:52:33 +0100 | [diff] [blame] | 108 | > .doc { |
| 109 | padding-left: .5em; |
| 110 | } |
| 111 | > .docGroup { |
| 112 | margin-left: .5em; |
| 113 | } |
Akron | 9065481 | 2018-08-29 18:57:23 +0200 | [diff] [blame] | 114 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 115 | } |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 116 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 117 | h1 { |
Akron | d059ea2 | 2021-03-02 15:32:27 +0100 | [diff] [blame] | 118 | margin-left: 0px; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 119 | width: 130px; |
| 120 | height: 40px; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 121 | background: { |
| 122 | size: 100%; |
| 123 | position: 50% 0; |
| 124 | } |
Akron | bd36c71 | 2018-02-15 11:14:23 +0100 | [diff] [blame] | 125 | z-index: 110; |
Akron | c3f063c | 2021-04-20 14:29:42 +0200 | [diff] [blame] | 126 | position: absolute !important; |
Uyen-Nhu Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 127 | top: 50%; |
| 128 | transform: translateY(-50%); |
| 129 | -o-transform: translateY(-50%);; |
| 130 | -moz-transform: translateY(-50%); |
| 131 | -webkit-transform: translateY(-50%); |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 132 | } |
| 133 | |
| 134 | #searchbar { |
| 135 | padding-right: 30px; |
Akron | d059ea2 | 2021-03-02 15:32:27 +0100 | [diff] [blame] | 136 | margin-top: 0; |
Uyen-Nhu Tran | cac3cd9 | 2024-04-10 01:28:27 +0200 | [diff] [blame] | 137 | input#q-field { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 138 | font-size: 9pt; |
Uyen-Nhu Tran | cac3cd9 | 2024-04-10 01:28:27 +0200 | [diff] [blame] | 139 | border-radius: 6px 0 0 6px; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 140 | } |
| 141 | button[type=submit] { |
| 142 | right: 0; |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | .level-1 { |
| 147 | padding-bottom: 2px; |
| 148 | } |
| 149 | |
| 150 | .level-2 { |
| 151 | padding-bottom: 4px; |
| 152 | } |
| 153 | |
| 154 | main { |
Uyen-Nhu Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 155 | padding: 1rem; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 156 | margin-left: $standard-margin; |
| 157 | margin-right: $standard-margin; |
| 158 | } |
| 159 | |
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 160 | header .button { |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 161 | margin-right: $standard-margin; |
| 162 | &.top { |
| 163 | height: auto; |
| 164 | } |
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 165 | } |
| 166 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 167 | #search ol { |
| 168 | > li:target, > li.active { |
| 169 | > div > div.snippet { |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 170 | margin: 2px 2em 2px 4px; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 171 | } |
| 172 | } |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 173 | > li div.meta { |
| 174 | display: none; |
| 175 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 176 | } |
| 177 | |
| 178 | div.matchinfo { |
| 179 | font-size: 9pt; |
| 180 | } |
| 181 | |
| 182 | div.matchtable tr > * { |
| 183 | padding: 1pt 3pt; |
| 184 | } |
| 185 | |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 186 | div.matchtree { //, div.metatable { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 187 | h6 { |
| 188 | display: block; |
| 189 | float: none; |
| 190 | } |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 191 | > div { // , > dl { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 192 | margin-left: 2px; |
| 193 | } |
| 194 | } |
Akron | e6be0a8 | 2019-03-12 15:24:31 +0100 | [diff] [blame] | 195 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 196 | #logos { |
| 197 | margin-left: 0; |
| 198 | margin-right: 0; |
| 199 | |
| 200 | > div { |
| 201 | border-top-width: 14px; |
Akron | e6be0a8 | 2019-03-12 15:24:31 +0100 | [diff] [blame] | 202 | padding-right: 0; |
| 203 | .logo > * { |
| 204 | background: { |
| 205 | size: 60%; |
| 206 | position: 0 0; |
| 207 | } |
| 208 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 209 | } |
| 210 | } |
| 211 | |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 212 | div.intro { |
| 213 | width: 100%; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 214 | } |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 215 | |
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 216 | body.embedded aside > div { |
| 217 | top: 0; |
| 218 | transform: translateY(0); |
| 219 | } |
| 220 | |
Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 221 | aside { |
| 222 | &:not(:focus):not(.active) { |
| 223 | margin-left: -1 * $logo-left-distance; |
| 224 | &::after { |
Akron | 05238fb | 2017-06-02 14:29:03 +0200 | [diff] [blame] | 225 | font-size: 12pt; |
Akron | 05238fb | 2017-06-02 14:29:03 +0200 | [diff] [blame] | 226 | height: 11pt; |
Akron | 2167ff5 | 2018-08-29 18:04:06 +0200 | [diff] [blame] | 227 | text-align: right; |
| 228 | padding-right: 3pt; |
| 229 | padding-top: 2pt; |
Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 230 | } |
| 231 | } |
| 232 | ul { |
| 233 | font-size: 9pt; |
| 234 | line-height: 1em; |
| 235 | } |
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 236 | &.active ~ main div.intro, |
Akron | f7ec444 | 2019-10-27 20:01:05 +0100 | [diff] [blame] | 237 | &.active ~ main.page { |
Akron | 05238fb | 2017-06-02 14:29:03 +0200 | [diff] [blame] | 238 | margin-left: $standard-margin !important; |
| 239 | } |
Akron | 4751da6 | 2017-06-07 22:37:10 +0200 | [diff] [blame] | 240 | |
| 241 | &.active { |
| 242 | position: relative; |
| 243 | display: block; |
| 244 | padding-top: 0; |
| 245 | width: 100%; |
| 246 | top: 0; |
| 247 | border-width: 0; |
Uyen-Nhu Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 248 | |
Akron | 4751da6 | 2017-06-07 22:37:10 +0200 | [diff] [blame] | 249 | fieldset input { |
| 250 | font-size: 9pt; |
| 251 | } |
| 252 | &::after { |
| 253 | display: none; |
| 254 | } |
Akron | ef6d5f1 | 2018-05-28 17:54:58 +0200 | [diff] [blame] | 255 | p, hr { |
Akron | 4751da6 | 2017-06-07 22:37:10 +0200 | [diff] [blame] | 256 | display: none; |
| 257 | } |
| 258 | } |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 259 | } |
| 260 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 261 | #tutorial { |
| 262 | border-radius: 0; |
| 263 | border-width: 0; |
| 264 | right: 0; |
| 265 | left: 0; |
| 266 | bottom: 0; |
| 267 | top: 0; |
| 268 | padding: 0; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 269 | iframe { |
| 270 | border-radius: 0; |
| 271 | } |
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 272 | > ul.action.right { |
| 273 | height: 1.5em; |
| 274 | right: 20px; |
| 275 | border-bottom-left-radius: 5px; |
| 276 | border-bottom-right-radius: 5px; |
| 277 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 278 | } |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 279 | |
Akron | f7ec444 | 2019-10-27 20:01:05 +0100 | [diff] [blame] | 280 | main.page { |
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 281 | margin-right: 20px; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 282 | } |
Akron | ed28025 | 2021-03-15 15:02:41 +0100 | [diff] [blame] | 283 | |
| 284 | footer { |
| 285 | padding-left: 0 !important; |
| 286 | } |
Akron | 7e2b8de | 2018-02-13 18:59:37 +0100 | [diff] [blame] | 287 | } |
| 288 | |
| 289 | |
| 290 | @media print { |
| 291 | body, html, select, g > text { |
| 292 | color: black; |
| 293 | } |
| 294 | header, aside { |
| 295 | display: none; |
| 296 | } |
Akron | f7ec444 | 2019-10-27 20:01:05 +0100 | [diff] [blame] | 297 | main.page { |
Akron | 7e2b8de | 2018-02-13 18:59:37 +0100 | [diff] [blame] | 298 | margin: 1em; |
| 299 | } |
Akron | 9490e3b | 2019-10-17 12:26:29 +0200 | [diff] [blame] | 300 | a.embedded-link { |
Akron | 7e2b8de | 2018-02-13 18:59:37 +0100 | [diff] [blame] | 301 | color: black; |
| 302 | text-decoration: underline; |
| 303 | } |
| 304 | pre.query.tutorial { |
| 305 | background-color: white; |
| 306 | color: black; |
| 307 | margin-left: 1em; |
| 308 | margin-right: 1em; |
| 309 | } |
| 310 | blockquote.warning { |
| 311 | background-color: grey; |
| 312 | color: white; |
| 313 | border-left-color: black; |
| 314 | border-left-width: 1em; |
| 315 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 316 | } |