blob: 4b28ede00845c97ccdc1039fe96bf512641b5385 [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 {
24 padding-right: 8px;
25 };
26
Nils Diewalda944fab2015-04-08 21:02:04 +000027 header form {
Nils Diewald652e5f42015-05-10 18:11:45 +000028 padding-left: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000029 padding-top: 33px;
30 }
Nils Diewald652e5f42015-05-10 18:11:45 +000031
Nils Diewalda944fab2015-04-08 21:02:04 +000032 .vc {
33 font-size: 9pt;
34 }
Nils Diewald652e5f42015-05-10 18:11:45 +000035
Nils Diewalda944fab2015-04-08 21:02:04 +000036 h1 {
37 margin-left: 10px;
38 width: 130px;
39 height: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +000040 background: {
41 size: 100%;
42 position: 50% 0;
43 }
Akronbd36c712018-02-15 11:14:23 +010044 z-index: 110;
Nils Diewalda944fab2015-04-08 21:02:04 +000045 }
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
Akronb917a7c2015-07-02 11:02:42 +020070 header .button {
Akron67b51812017-05-01 14:10:55 +020071 margin-right: $standard-margin;
72 &.top {
73 height: auto;
74 }
Akronb917a7c2015-07-02 11:02:42 +020075 }
76
Nils Diewalda944fab2015-04-08 21:02:04 +000077 #search ol {
78 > li:target, > li.active {
79 > div > div.snippet {
Akron67b51812017-05-01 14:10:55 +020080 margin: 2px 2em 2px 4px;
Nils Diewalda944fab2015-04-08 21:02:04 +000081 }
82 }
Akron67b51812017-05-01 14:10:55 +020083 > li div.meta {
84 display: none;
85 }
Nils Diewalda944fab2015-04-08 21:02:04 +000086 }
87
88 div.matchinfo {
89 font-size: 9pt;
90 }
91
92 div.matchtable tr > * {
93 padding: 1pt 3pt;
94 }
95
Akron8b592d42018-01-26 18:33:06 +010096 div.matchtree { //, div.metatable {
Nils Diewalda944fab2015-04-08 21:02:04 +000097 h6 {
98 display: block;
99 float: none;
100 }
Akron8b592d42018-01-26 18:33:06 +0100101 > div { // , > dl {
Nils Diewalda944fab2015-04-08 21:02:04 +0000102 margin-left: 2px;
103 }
104 }
105
Nils Diewalda944fab2015-04-08 21:02:04 +0000106 #logos {
107 margin-left: 0;
108 margin-right: 0;
109
110 > div {
111 border-top-width: 14px;
112 }
113 }
114
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000115 div.intro {
116 width: 100%;
Nils Diewalda944fab2015-04-08 21:02:04 +0000117 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000118
Akron1120a582017-10-17 12:29:16 +0200119 body.embedded aside > div {
120 top: 0;
121 transform: translateY(0);
122 }
123
Nils Diewald7148c6f2015-05-04 15:07:53 +0000124 aside {
125 &:not(:focus):not(.active) {
126 margin-left: -1 * $logo-left-distance;
127 &::after {
Akron05238fb2017-06-02 14:29:03 +0200128 font-size: 12pt;
Akron05238fb2017-06-02 14:29:03 +0200129 height: 11pt;
Akron2167ff52018-08-29 18:04:06 +0200130 text-align: right;
131 padding-right: 3pt;
132 padding-top: 2pt;
Nils Diewald7148c6f2015-05-04 15:07:53 +0000133 }
134 }
135 ul {
136 font-size: 9pt;
137 line-height: 1em;
138 }
Akron1120a582017-10-17 12:29:16 +0200139 &.active ~ main div.intro,
140 &.active ~ main.tutorial {
Akron05238fb2017-06-02 14:29:03 +0200141 margin-left: $standard-margin !important;
142 }
Akron4751da62017-06-07 22:37:10 +0200143
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 }
Akronef6d5f12018-05-28 17:54:58 +0200157 p, hr {
Akron4751da62017-06-07 22:37:10 +0200158 display: none;
159 }
160 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000161 }
162
Nils Diewalda944fab2015-04-08 21:02:04 +0000163 #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 Diewaldab4d3ca2015-04-17 01:48:43 +0000171 iframe {
172 border-radius: 0;
173 }
Akron1120a582017-10-17 12:29:16 +0200174 > ul.action.right {
175 height: 1.5em;
176 right: 20px;
177 border-bottom-left-radius: 5px;
178 border-bottom-right-radius: 5px;
179 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000180 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000181
182 main.tutorial {
Akron1120a582017-10-17 12:29:16 +0200183 margin-right: 20px;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000184 }
Akron7e2b8de2018-02-13 18:59:37 +0100185}
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 Diewalda944fab2015-04-08 21:02:04 +0000217}