blob: 2831c1d6a4192f6015d6b732ac19a32beed021a3 [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 {
Akron451ed5e2018-11-12 10:52:33 +010033
Nils Diewalda944fab2015-04-08 21:02:04 +000034 font-size: 9pt;
Akron90654812018-08-29 18:57:23 +020035 .builder {
36 .doc {
37 padding-left: 3em;
38 }
39 * .docGroup {
40 margin-left: 3em;
41 }
Akron451ed5e2018-11-12 10:52:33 +010042 > .doc {
43 padding-left: .5em;
44 }
45 > .docGroup {
46 margin-left: .5em;
47 }
Akron90654812018-08-29 18:57:23 +020048 }
Nils Diewalda944fab2015-04-08 21:02:04 +000049 }
Nils Diewald652e5f42015-05-10 18:11:45 +000050
Nils Diewalda944fab2015-04-08 21:02:04 +000051 h1 {
52 margin-left: 10px;
53 width: 130px;
54 height: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +000055 background: {
56 size: 100%;
57 position: 50% 0;
58 }
Akronbd36c712018-02-15 11:14:23 +010059 z-index: 110;
Nils Diewalda944fab2015-04-08 21:02:04 +000060 }
61
62 #searchbar {
63 padding-right: 30px;
64 input {
65 font-size: 9pt;
66 }
67 button[type=submit] {
68 right: 0;
69 }
70 }
71
72 .level-1 {
73 padding-bottom: 2px;
74 }
75
76 .level-2 {
77 padding-bottom: 4px;
78 }
79
80 main {
81 margin-left: $standard-margin;
82 margin-right: $standard-margin;
83 }
84
Akronb917a7c2015-07-02 11:02:42 +020085 header .button {
Akron67b51812017-05-01 14:10:55 +020086 margin-right: $standard-margin;
87 &.top {
88 height: auto;
89 }
Akronb917a7c2015-07-02 11:02:42 +020090 }
91
Nils Diewalda944fab2015-04-08 21:02:04 +000092 #search ol {
93 > li:target, > li.active {
94 > div > div.snippet {
Akron67b51812017-05-01 14:10:55 +020095 margin: 2px 2em 2px 4px;
Nils Diewalda944fab2015-04-08 21:02:04 +000096 }
97 }
Akron67b51812017-05-01 14:10:55 +020098 > li div.meta {
99 display: none;
100 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000101 }
102
103 div.matchinfo {
104 font-size: 9pt;
105 }
106
107 div.matchtable tr > * {
108 padding: 1pt 3pt;
109 }
110
Akron8b592d42018-01-26 18:33:06 +0100111 div.matchtree { //, div.metatable {
Nils Diewalda944fab2015-04-08 21:02:04 +0000112 h6 {
113 display: block;
114 float: none;
115 }
Akron8b592d42018-01-26 18:33:06 +0100116 > div { // , > dl {
Nils Diewalda944fab2015-04-08 21:02:04 +0000117 margin-left: 2px;
118 }
119 }
120
Nils Diewalda944fab2015-04-08 21:02:04 +0000121 #logos {
122 margin-left: 0;
123 margin-right: 0;
124
125 > div {
126 border-top-width: 14px;
127 }
128 }
129
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000130 div.intro {
131 width: 100%;
Nils Diewalda944fab2015-04-08 21:02:04 +0000132 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000133
Akron1120a582017-10-17 12:29:16 +0200134 body.embedded aside > div {
135 top: 0;
136 transform: translateY(0);
137 }
138
Nils Diewald7148c6f2015-05-04 15:07:53 +0000139 aside {
140 &:not(:focus):not(.active) {
141 margin-left: -1 * $logo-left-distance;
142 &::after {
Akron05238fb2017-06-02 14:29:03 +0200143 font-size: 12pt;
Akron05238fb2017-06-02 14:29:03 +0200144 height: 11pt;
Akron2167ff52018-08-29 18:04:06 +0200145 text-align: right;
146 padding-right: 3pt;
147 padding-top: 2pt;
Nils Diewald7148c6f2015-05-04 15:07:53 +0000148 }
149 }
150 ul {
151 font-size: 9pt;
152 line-height: 1em;
153 }
Akron1120a582017-10-17 12:29:16 +0200154 &.active ~ main div.intro,
155 &.active ~ main.tutorial {
Akron05238fb2017-06-02 14:29:03 +0200156 margin-left: $standard-margin !important;
157 }
Akron4751da62017-06-07 22:37:10 +0200158
159 &.active {
160 position: relative;
161 display: block;
162 padding-top: 0;
163 width: 100%;
164 top: 0;
165 border-width: 0;
166 fieldset input {
167 font-size: 9pt;
168 }
169 &::after {
170 display: none;
171 }
Akronef6d5f12018-05-28 17:54:58 +0200172 p, hr {
Akron4751da62017-06-07 22:37:10 +0200173 display: none;
174 }
175 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000176 }
177
Nils Diewalda944fab2015-04-08 21:02:04 +0000178 #tutorial {
179 border-radius: 0;
180 border-width: 0;
181 right: 0;
182 left: 0;
183 bottom: 0;
184 top: 0;
185 padding: 0;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000186 iframe {
187 border-radius: 0;
188 }
Akron1120a582017-10-17 12:29:16 +0200189 > ul.action.right {
190 height: 1.5em;
191 right: 20px;
192 border-bottom-left-radius: 5px;
193 border-bottom-right-radius: 5px;
194 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000195 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000196
197 main.tutorial {
Akron1120a582017-10-17 12:29:16 +0200198 margin-right: 20px;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000199 }
Akron7e2b8de2018-02-13 18:59:37 +0100200}
201
202
203@media print {
204 body, html, select, g > text {
205 color: black;
206 }
207 header, aside {
208 display: none;
209 }
210 main.tutorial {
211 margin: 1em;
212 }
213 #kalamar-bg {
214 display: none;
215 }
216 a.doc-link {
217 color: black;
218 text-decoration: underline;
219 }
220 pre.query.tutorial {
221 background-color: white;
222 color: black;
223 margin-left: 1em;
224 margin-right: 1em;
225 }
226 blockquote.warning {
227 background-color: grey;
228 color: white;
229 border-left-color: black;
230 border-left-width: 1em;
231 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000232}