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