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