blob: 988ea9bd23a7c466150ad35ca6fd2b8ebe50548a [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;
Akron90654812018-08-29 18:57:23 +020034 .builder {
35 .doc {
36 padding-left: 3em;
37 }
38 * .docGroup {
39 margin-left: 3em;
40 }
41 }
Nils Diewalda944fab2015-04-08 21:02:04 +000042 }
Nils Diewald652e5f42015-05-10 18:11:45 +000043
Nils Diewalda944fab2015-04-08 21:02:04 +000044 h1 {
45 margin-left: 10px;
46 width: 130px;
47 height: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +000048 background: {
49 size: 100%;
50 position: 50% 0;
51 }
Akronbd36c712018-02-15 11:14:23 +010052 z-index: 110;
Nils Diewalda944fab2015-04-08 21:02:04 +000053 }
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
Akronb917a7c2015-07-02 11:02:42 +020078 header .button {
Akron67b51812017-05-01 14:10:55 +020079 margin-right: $standard-margin;
80 &.top {
81 height: auto;
82 }
Akronb917a7c2015-07-02 11:02:42 +020083 }
84
Nils Diewalda944fab2015-04-08 21:02:04 +000085 #search ol {
86 > li:target, > li.active {
87 > div > div.snippet {
Akron67b51812017-05-01 14:10:55 +020088 margin: 2px 2em 2px 4px;
Nils Diewalda944fab2015-04-08 21:02:04 +000089 }
90 }
Akron67b51812017-05-01 14:10:55 +020091 > li div.meta {
92 display: none;
93 }
Nils Diewalda944fab2015-04-08 21:02:04 +000094 }
95
96 div.matchinfo {
97 font-size: 9pt;
98 }
99
100 div.matchtable tr > * {
101 padding: 1pt 3pt;
102 }
103
Akron8b592d42018-01-26 18:33:06 +0100104 div.matchtree { //, div.metatable {
Nils Diewalda944fab2015-04-08 21:02:04 +0000105 h6 {
106 display: block;
107 float: none;
108 }
Akron8b592d42018-01-26 18:33:06 +0100109 > div { // , > dl {
Nils Diewalda944fab2015-04-08 21:02:04 +0000110 margin-left: 2px;
111 }
112 }
113
Nils Diewalda944fab2015-04-08 21:02:04 +0000114 #logos {
115 margin-left: 0;
116 margin-right: 0;
117
118 > div {
119 border-top-width: 14px;
120 }
121 }
122
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000123 div.intro {
124 width: 100%;
Nils Diewalda944fab2015-04-08 21:02:04 +0000125 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000126
Akron1120a582017-10-17 12:29:16 +0200127 body.embedded aside > div {
128 top: 0;
129 transform: translateY(0);
130 }
131
Nils Diewald7148c6f2015-05-04 15:07:53 +0000132 aside {
133 &:not(:focus):not(.active) {
134 margin-left: -1 * $logo-left-distance;
135 &::after {
Akron05238fb2017-06-02 14:29:03 +0200136 font-size: 12pt;
Akron05238fb2017-06-02 14:29:03 +0200137 height: 11pt;
Akron2167ff52018-08-29 18:04:06 +0200138 text-align: right;
139 padding-right: 3pt;
140 padding-top: 2pt;
Nils Diewald7148c6f2015-05-04 15:07:53 +0000141 }
142 }
143 ul {
144 font-size: 9pt;
145 line-height: 1em;
146 }
Akron1120a582017-10-17 12:29:16 +0200147 &.active ~ main div.intro,
148 &.active ~ main.tutorial {
Akron05238fb2017-06-02 14:29:03 +0200149 margin-left: $standard-margin !important;
150 }
Akron4751da62017-06-07 22:37:10 +0200151
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 }
Akronef6d5f12018-05-28 17:54:58 +0200165 p, hr {
Akron4751da62017-06-07 22:37:10 +0200166 display: none;
167 }
168 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000169 }
170
Nils Diewalda944fab2015-04-08 21:02:04 +0000171 #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 Diewaldab4d3ca2015-04-17 01:48:43 +0000179 iframe {
180 border-radius: 0;
181 }
Akron1120a582017-10-17 12:29:16 +0200182 > ul.action.right {
183 height: 1.5em;
184 right: 20px;
185 border-bottom-left-radius: 5px;
186 border-bottom-right-radius: 5px;
187 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000188 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000189
190 main.tutorial {
Akron1120a582017-10-17 12:29:16 +0200191 margin-right: 20px;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000192 }
Akron7e2b8de2018-02-13 18:59:37 +0100193}
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 Diewalda944fab2015-04-08 21:02:04 +0000225}