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