Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
2 | @import "util"; | ||||
3 | |||||
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 4 | /** |
5 | * Media rules for different screen sizes. | ||||
6 | * This will override some basic rules. | ||||
7 | */ | ||||
8 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 9 | $standard-margin: 4px; |
10 | |||||
Akron | 05238fb | 2017-06-02 14:29:03 +0200 | [diff] [blame] | 11 | // (orientation: portrait), |
12 | @media all and (max-width: 42.5em) { | ||||
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 13 | body, |
14 | #search ol, | ||||
15 | header, | ||||
16 | header input, | ||||
Akron | 179c8ac | 2015-06-30 19:30:50 +0200 | [diff] [blame] | 17 | div#resultinfo, |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 18 | #pagination > a { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 19 | font-size: 9pt; |
20 | } | ||||
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 21 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 22 | header form { |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 23 | padding-left: 0; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 24 | padding-top: 33px; |
25 | } | ||||
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 26 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 27 | .vc { |
28 | font-size: 9pt; | ||||
29 | } | ||||
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 30 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 31 | h1 { |
32 | margin-left: 10px; | ||||
33 | width: 130px; | ||||
34 | height: 40px; | ||||
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 35 | background: { |
36 | size: 100%; | ||||
37 | position: 50% 0; | ||||
38 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 39 | 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 | |||||
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 65 | header .button { |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 66 | margin-right: $standard-margin; |
67 | &.top { | ||||
68 | height: auto; | ||||
69 | } | ||||
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 70 | } |
71 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 72 | #search ol { |
73 | > li:target, > li.active { | ||||
74 | > div > div.snippet { | ||||
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 75 | margin: 2px 2em 2px 4px; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 76 | } |
77 | } | ||||
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 78 | > li div.meta { |
79 | display: none; | ||||
80 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 81 | > 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 Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 104 | #logos { |
105 | margin-left: 0; | ||||
106 | margin-right: 0; | ||||
107 | |||||
108 | > div { | ||||
109 | border-top-width: 14px; | ||||
110 | } | ||||
111 | } | ||||
112 | |||||
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 113 | div.intro { |
114 | width: 100%; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 115 | } |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 116 | |
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 117 | body.embedded aside > div { |
118 | top: 0; | ||||
119 | transform: translateY(0); | ||||
120 | } | ||||
121 | |||||
Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 122 | aside { |
123 | &:not(:focus):not(.active) { | ||||
124 | margin-left: -1 * $logo-left-distance; | ||||
125 | &::after { | ||||
Akron | 05238fb | 2017-06-02 14:29:03 +0200 | [diff] [blame] | 126 | font-size: 12pt; |
127 | width: 10pt; | ||||
128 | height: 11pt; | ||||
Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 129 | } |
130 | } | ||||
131 | ul { | ||||
132 | font-size: 9pt; | ||||
133 | line-height: 1em; | ||||
134 | } | ||||
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 135 | &.active ~ main div.intro, |
136 | &.active ~ main.tutorial { | ||||
Akron | 05238fb | 2017-06-02 14:29:03 +0200 | [diff] [blame] | 137 | margin-left: $standard-margin !important; |
138 | } | ||||
Akron | 4751da6 | 2017-06-07 22:37:10 +0200 | [diff] [blame] | 139 | |
140 | &.active { | ||||
141 | position: relative; | ||||
142 | display: block; | ||||
143 | padding-top: 0; | ||||
144 | width: 100%; | ||||
145 | top: 0; | ||||
146 | border-width: 0; | ||||
147 | fieldset input { | ||||
148 | font-size: 9pt; | ||||
149 | } | ||||
150 | &::after { | ||||
151 | display: none; | ||||
152 | } | ||||
153 | p { | ||||
154 | display: none; | ||||
155 | } | ||||
156 | } | ||||
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 157 | } |
158 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 159 | #tutorial { |
160 | border-radius: 0; | ||||
161 | border-width: 0; | ||||
162 | right: 0; | ||||
163 | left: 0; | ||||
164 | bottom: 0; | ||||
165 | top: 0; | ||||
166 | padding: 0; | ||||
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 167 | iframe { |
168 | border-radius: 0; | ||||
169 | } | ||||
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 170 | > ul.action.right { |
171 | height: 1.5em; | ||||
172 | right: 20px; | ||||
173 | border-bottom-left-radius: 5px; | ||||
174 | border-bottom-right-radius: 5px; | ||||
175 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 176 | } |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 177 | |
178 | main.tutorial { | ||||
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 179 | margin-right: 20px; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 180 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 181 | } |