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