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