blob: ddd26fa4d4432136100e242cca6038b3baa41acb [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,
14 #search ol,
15 header,
16 header input,
Akron179c8ac2015-06-30 19:30:50 +020017 div#resultinfo,
Nils Diewald652e5f42015-05-10 18:11:45 +000018 #pagination > a {
Nils Diewalda944fab2015-04-08 21:02:04 +000019 font-size: 9pt;
20 }
Nils Diewald652e5f42015-05-10 18:11:45 +000021
Nils Diewalda944fab2015-04-08 21:02:04 +000022 header form {
Nils Diewald652e5f42015-05-10 18:11:45 +000023 padding-left: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000024 padding-top: 33px;
25 }
Nils Diewald652e5f42015-05-10 18:11:45 +000026
Nils Diewalda944fab2015-04-08 21:02:04 +000027 .vc {
28 font-size: 9pt;
29 }
Nils Diewald652e5f42015-05-10 18:11:45 +000030
Nils Diewalda944fab2015-04-08 21:02:04 +000031 h1 {
32 margin-left: 10px;
33 width: 130px;
34 height: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +000035 background: {
36 size: 100%;
37 position: 50% 0;
38 }
Nils Diewalda944fab2015-04-08 21:02:04 +000039 z-index: 300;
40 }
41
42 #searchbar {
43 padding-right: 30px;
44 input {
45 font-size: 9pt;
46 }
47 button[type=submit] {
48 right: 0;
49 }
50 }
51
52 .level-1 {
53 padding-bottom: 2px;
54 }
55
56 .level-2 {
57 padding-bottom: 4px;
58 }
59
60 main {
61 margin-left: $standard-margin;
62 margin-right: $standard-margin;
63 }
64
Akronb917a7c2015-07-02 11:02:42 +020065 header .button {
Akron67b51812017-05-01 14:10:55 +020066 margin-right: $standard-margin;
67 &.top {
68 height: auto;
69 }
Akronb917a7c2015-07-02 11:02:42 +020070 }
71
Nils Diewalda944fab2015-04-08 21:02:04 +000072 #search ol {
73 > li:target, > li.active {
74 > div > div.snippet {
Akron67b51812017-05-01 14:10:55 +020075 margin: 2px 2em 2px 4px;
Nils Diewalda944fab2015-04-08 21:02:04 +000076 }
77 }
Akron67b51812017-05-01 14:10:55 +020078 > li div.meta {
79 display: none;
80 }
Nils Diewalda944fab2015-04-08 21:02:04 +000081 > li:not(:target):not(.active) {
82 padding: 3pt 0 3pt 0;
83 }
84 }
85
86 div.matchinfo {
87 font-size: 9pt;
88 }
89
90 div.matchtable tr > * {
91 padding: 1pt 3pt;
92 }
93
94 div.matchtree {
95 h6 {
96 display: block;
97 float: none;
98 }
99 > div {
100 margin-left: 2px;
101 }
102 }
103
Nils Diewalda944fab2015-04-08 21:02:04 +0000104 #logos {
105 margin-left: 0;
106 margin-right: 0;
107
108 > div {
109 border-top-width: 14px;
110 }
111 }
112
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000113 div.intro {
114 width: 100%;
Nils Diewalda944fab2015-04-08 21:02:04 +0000115 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000116
Nils Diewald7148c6f2015-05-04 15:07:53 +0000117 aside {
118 &:not(:focus):not(.active) {
119 margin-left: -1 * $logo-left-distance;
120 &::after {
Akron05238fb2017-06-02 14:29:03 +0200121 font-size: 12pt;
122 width: 10pt;
123 height: 11pt;
Nils Diewald7148c6f2015-05-04 15:07:53 +0000124 }
125 }
126 ul {
127 font-size: 9pt;
128 line-height: 1em;
129 }
Akron05238fb2017-06-02 14:29:03 +0200130 &.active + main div.intro {
131 margin-left: $standard-margin !important;
132 }
Akron4751da62017-06-07 22:37:10 +0200133
134 &.active {
135 position: relative;
136 display: block;
137 padding-top: 0;
138 width: 100%;
139 top: 0;
140 border-width: 0;
141 fieldset input {
142 font-size: 9pt;
143 }
144 &::after {
145 display: none;
146 }
147 p {
148 display: none;
149 }
150 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000151 }
152
Nils Diewalda944fab2015-04-08 21:02:04 +0000153 #tutorial {
154 border-radius: 0;
155 border-width: 0;
156 right: 0;
157 left: 0;
158 bottom: 0;
159 top: 0;
160 padding: 0;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000161 iframe {
162 border-radius: 0;
163 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000164 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000165
166 main.tutorial {
167 margin-right: 30px;
168 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000169}