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