blob: dcf78ddf0cbd8f2b0d6bb27ebb23867d13cfb178 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
2@import "util";
3
Nils Diewald652e5f42015-05-10 18:11:45 +00004/**
5 * Media rules for different screen sizes.
6 * This will override some basic rules.
7 */
8
Nils Diewalda944fab2015-04-08 21:02:04 +00009$standard-margin: 4px;
10
Akron05238fb2017-06-02 14:29:03 +020011// (orientation: portrait),
12@media all and (max-width: 42.5em) {
Nils Diewald652e5f42015-05-10 18:11:45 +000013 body,
Akron2167ff52018-08-29 18:04:06 +020014 #search > ol,
15 #search div.snippet > span,
Nils Diewald652e5f42015-05-10 18:11:45 +000016 header,
17 header input,
Akron179c8ac2015-06-30 19:30:50 +020018 div#resultinfo,
Nils Diewald652e5f42015-05-10 18:11:45 +000019 #pagination > a {
Nils Diewalda944fab2015-04-08 21:02:04 +000020 font-size: 9pt;
21 }
Nils Diewald652e5f42015-05-10 18:11:45 +000022
Akron2167ff52018-08-29 18:04:06 +020023 header {
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020024 padding-top: 2rem;
Akron2167ff52018-08-29 18:04:06 +020025 padding-right: 8px;
Akron6b42c602020-09-08 17:00:13 +020026 }
Akron2167ff52018-08-29 18:04:06 +020027
Nils Diewalda944fab2015-04-08 21:02:04 +000028 header form {
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020029 margin: 1.5rem 1rem;
Nils Diewald652e5f42015-05-10 18:11:45 +000030 padding-left: 0;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020031 // padding-top: 33px;
32 }
33
34 .navbar {
35 *:not(:first-child) {
36 display: none;
37 }
38
39 .burger-icon {
40 display: block !important;
41 padding: .6rem .9rem;
42 font-size: 1.5rem;
43 color: $nearly-white;
44 }
45
46 &.show .burger-icon {
47 position: absolute;
48 top: 0;
49 right: 0;
50 background-color: $middle-green;
51 }
52
53 &.show * {
54 display: block;
55 }
56
57 &-group {
58 margin-top: 3rem;
59 width: 100%;
60 display: block;
61 position: fixed;
62 top: 0;
63 left: 0;
64 background-color: $middle-green;
65
66 fieldset.fieldset-login {
67 width: 100%;
68
69 form.login {
70 align-items: normal !important;
71 flex-direction: column;
72 gap: 6px;
73
74 input[type=text],
75 input[type=password] {
76 @include input-field;
77 margin-right: 0 !important;
78 }
79
80 button.btn-login {
81 width: 100% !important;
82 align-self: center;
83 }
84 }
85 }
86 }
87
88 @media (hover: none) and (pointer: coarse) {
89 .dropdown {
90 margin-right: 0 !important;
91
92 &-content {
93 display: block !important;
94 }
95 }
96 }
Nils Diewalda944fab2015-04-08 21:02:04 +000097 }
Nils Diewald652e5f42015-05-10 18:11:45 +000098
Nils Diewalda944fab2015-04-08 21:02:04 +000099 .vc {
100 font-size: 9pt;
Akron90654812018-08-29 18:57:23 +0200101 .builder {
102 .doc {
103 padding-left: 3em;
104 }
105 * .docGroup {
106 margin-left: 3em;
107 }
Akron451ed5e2018-11-12 10:52:33 +0100108 > .doc {
109 padding-left: .5em;
110 }
111 > .docGroup {
112 margin-left: .5em;
113 }
Akron90654812018-08-29 18:57:23 +0200114 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000115 }
Nils Diewald652e5f42015-05-10 18:11:45 +0000116
Nils Diewalda944fab2015-04-08 21:02:04 +0000117 h1 {
Akrond059ea22021-03-02 15:32:27 +0100118 margin-left: 0px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000119 width: 130px;
120 height: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +0000121 background: {
122 size: 100%;
123 position: 50% 0;
124 }
Akronbd36c712018-02-15 11:14:23 +0100125 z-index: 110;
Akronc3f063c2021-04-20 14:29:42 +0200126 position: absolute !important;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +0200127 top: 50%;
128 transform: translateY(-50%);
129 -o-transform: translateY(-50%);;
130 -moz-transform: translateY(-50%);
131 -webkit-transform: translateY(-50%);
Nils Diewalda944fab2015-04-08 21:02:04 +0000132 }
133
134 #searchbar {
135 padding-right: 30px;
Akrond059ea22021-03-02 15:32:27 +0100136 margin-top: 0;
Uyen-Nhu Trancac3cd92024-04-10 01:28:27 +0200137 input#q-field {
Nils Diewalda944fab2015-04-08 21:02:04 +0000138 font-size: 9pt;
Uyen-Nhu Trancac3cd92024-04-10 01:28:27 +0200139 border-radius: 6px 0 0 6px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000140 }
141 button[type=submit] {
142 right: 0;
143 }
144 }
145
146 .level-1 {
147 padding-bottom: 2px;
148 }
149
150 .level-2 {
151 padding-bottom: 4px;
152 }
153
154 main {
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +0200155 padding: 1rem;
Nils Diewalda944fab2015-04-08 21:02:04 +0000156 margin-left: $standard-margin;
157 margin-right: $standard-margin;
158 }
159
Akronb917a7c2015-07-02 11:02:42 +0200160 header .button {
Akron67b51812017-05-01 14:10:55 +0200161 margin-right: $standard-margin;
162 &.top {
163 height: auto;
164 }
Akronb917a7c2015-07-02 11:02:42 +0200165 }
166
Nils Diewalda944fab2015-04-08 21:02:04 +0000167 #search ol {
168 > li:target, > li.active {
169 > div > div.snippet {
Akron67b51812017-05-01 14:10:55 +0200170 margin: 2px 2em 2px 4px;
Nils Diewalda944fab2015-04-08 21:02:04 +0000171 }
172 }
Akron67b51812017-05-01 14:10:55 +0200173 > li div.meta {
174 display: none;
175 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000176 }
177
178 div.matchinfo {
179 font-size: 9pt;
180 }
181
182 div.matchtable tr > * {
183 padding: 1pt 3pt;
184 }
185
Akron8b592d42018-01-26 18:33:06 +0100186 div.matchtree { //, div.metatable {
Nils Diewalda944fab2015-04-08 21:02:04 +0000187 h6 {
188 display: block;
189 float: none;
190 }
Akron8b592d42018-01-26 18:33:06 +0100191 > div { // , > dl {
Nils Diewalda944fab2015-04-08 21:02:04 +0000192 margin-left: 2px;
193 }
194 }
Akrone6be0a82019-03-12 15:24:31 +0100195
Nils Diewalda944fab2015-04-08 21:02:04 +0000196 #logos {
197 margin-left: 0;
198 margin-right: 0;
199
200 > div {
201 border-top-width: 14px;
Akrone6be0a82019-03-12 15:24:31 +0100202 padding-right: 0;
203 .logo > * {
204 background: {
205 size: 60%;
206 position: 0 0;
207 }
208 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000209 }
210 }
211
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000212 div.intro {
213 width: 100%;
Nils Diewalda944fab2015-04-08 21:02:04 +0000214 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000215
Akron1120a582017-10-17 12:29:16 +0200216 body.embedded aside > div {
217 top: 0;
218 transform: translateY(0);
219 }
220
Nils Diewald7148c6f2015-05-04 15:07:53 +0000221 aside {
222 &:not(:focus):not(.active) {
223 margin-left: -1 * $logo-left-distance;
224 &::after {
Akron05238fb2017-06-02 14:29:03 +0200225 font-size: 12pt;
Akron05238fb2017-06-02 14:29:03 +0200226 height: 11pt;
Akron2167ff52018-08-29 18:04:06 +0200227 text-align: right;
228 padding-right: 3pt;
229 padding-top: 2pt;
Nils Diewald7148c6f2015-05-04 15:07:53 +0000230 }
231 }
232 ul {
233 font-size: 9pt;
234 line-height: 1em;
235 }
Akron1120a582017-10-17 12:29:16 +0200236 &.active ~ main div.intro,
Akronf7ec4442019-10-27 20:01:05 +0100237 &.active ~ main.page {
Akron05238fb2017-06-02 14:29:03 +0200238 margin-left: $standard-margin !important;
239 }
Akron4751da62017-06-07 22:37:10 +0200240
241 &.active {
242 position: relative;
243 display: block;
244 padding-top: 0;
245 width: 100%;
246 top: 0;
247 border-width: 0;
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +0200248
Akron4751da62017-06-07 22:37:10 +0200249 fieldset input {
250 font-size: 9pt;
251 }
252 &::after {
253 display: none;
254 }
Akronef6d5f12018-05-28 17:54:58 +0200255 p, hr {
Akron4751da62017-06-07 22:37:10 +0200256 display: none;
257 }
258 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000259 }
260
Nils Diewalda944fab2015-04-08 21:02:04 +0000261 #tutorial {
262 border-radius: 0;
263 border-width: 0;
264 right: 0;
265 left: 0;
266 bottom: 0;
267 top: 0;
268 padding: 0;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000269 iframe {
270 border-radius: 0;
271 }
Akron1120a582017-10-17 12:29:16 +0200272 > ul.action.right {
273 height: 1.5em;
274 right: 20px;
275 border-bottom-left-radius: 5px;
276 border-bottom-right-radius: 5px;
277 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000278 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000279
Akronf7ec4442019-10-27 20:01:05 +0100280 main.page {
Akron1120a582017-10-17 12:29:16 +0200281 margin-right: 20px;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000282 }
Akroned280252021-03-15 15:02:41 +0100283
284 footer {
285 padding-left: 0 !important;
286 }
Akron7e2b8de2018-02-13 18:59:37 +0100287}
288
289
290@media print {
291 body, html, select, g > text {
292 color: black;
293 }
294 header, aside {
295 display: none;
296 }
Akronf7ec4442019-10-27 20:01:05 +0100297 main.page {
Akron7e2b8de2018-02-13 18:59:37 +0100298 margin: 1em;
299 }
Akron9490e3b2019-10-17 12:26:29 +0200300 a.embedded-link {
Akron7e2b8de2018-02-13 18:59:37 +0100301 color: black;
302 text-decoration: underline;
303 }
304 pre.query.tutorial {
305 background-color: white;
306 color: black;
307 margin-left: 1em;
308 margin-right: 1em;
309 }
310 blockquote.warning {
311 background-color: grey;
312 color: white;
313 border-left-color: black;
314 border-left-width: 1em;
315 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000316}