OLD | NEW |
1 /*! | 1 /*! |
2 * This file is part of website-defaults | 2 * This file is part of website-defaults |
3 * Copyright (C) 2016-present eyeo GmbH | 3 * Copyright (C) 2016-present eyeo GmbH |
4 * | 4 * |
5 * website-defaults is free software: you can redistribute it and/or | 5 * website-defaults is free software: you can redistribute it and/or |
6 * modify it under the terms of the GNU General Public License as published by | 6 * modify it under the terms of the GNU General Public License as published by |
7 * the Free Software Foundation, either version 3 of the License, or | 7 * the Free Software Foundation, either version 3 of the License, or |
8 * (at your option) any later version. | 8 * (at your option) any later version. |
9 * | 9 * |
10 * website-defaults is distributed in the hope that it will be useful, | 10 * website-defaults is distributed in the hope that it will be useful, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 /* Make fixed width images responsive */ | 129 /* Make fixed width images responsive */ |
130 max-width: 100%; | 130 max-width: 100%; |
131 /* Remove the border on images inside links in IE 10-. */ | 131 /* Remove the border on images inside links in IE 10-. */ |
132 border-style: none; } | 132 border-style: none; } |
133 | 133 |
134 /* Set correct display for hidden attribute in IE 10- */ | 134 /* Set correct display for hidden attribute in IE 10- */ |
135 [hidden] { | 135 [hidden] { |
136 display: none; } | 136 display: none; } |
137 | 137 |
138 /******************************************************************************* | 138 /******************************************************************************* |
| 139 * Utilities |
| 140 ******************************************************************************/ |
| 141 /* Responsive widths |
| 142 ******************************************************************************/ |
| 143 /** |
| 144 * Stretch content (e.g. images) full-width |
| 145 */ |
| 146 .full-width { |
| 147 display: block; |
| 148 width: 100%; } |
| 149 |
| 150 /** |
| 151 * Center content within a (responsive) fixed width |
| 152 */ |
| 153 .container { |
| 154 width: 1140px; |
| 155 max-width: 100%; |
| 156 margin-right: auto; |
| 157 margin-left: auto; |
| 158 padding-right: 1em; |
| 159 padding-left: 1em; } |
| 160 |
| 161 /* Device widths |
| 162 ******************************************************************************/ |
| 163 .phone-width { |
| 164 width: auto; } |
| 165 |
| 166 .phablet-width { |
| 167 width: 540px; } |
| 168 |
| 169 .tablet-width { |
| 170 width: 720px; } |
| 171 |
| 172 .desktop-width { |
| 173 width: 960px; } |
| 174 |
| 175 .large-desktop-width { |
| 176 width: 1140px; } |
| 177 |
| 178 /* Clearfix |
| 179 ******************************************************************************/ |
| 180 .clearfix:after, .content:after, |
| 181 .clearfix:before, |
| 182 .content:before { |
| 183 display: table; |
| 184 content: " "; } |
| 185 |
| 186 .clearfix:after, .content:after { |
| 187 clear: both; } |
| 188 |
| 189 /******************************************************************************* |
139 * Base styles | 190 * Base styles |
140 ******************************************************************************/ | 191 ******************************************************************************/ |
141 html { | 192 html { |
142 color: #212121; | 193 color: #212121; |
143 background-color: #fff; | 194 background-color: #fff; |
144 font-family: sans-serif; | 195 font-family: sans-serif; |
145 line-height: 1.5; } | 196 line-height: 1.5; } |
146 | 197 |
147 /** | |
148 * Stretch content full-width | |
149 */ | |
150 .full-width { | |
151 display: block; | |
152 width: 100%; | |
153 margin: 1em 0px; } | |
154 | |
155 /** | |
156 * Center content within a (responsive) fixed width | |
157 */ | |
158 .container { | |
159 width: auto; | |
160 max-width: 100%; | |
161 margin: 0px auto; | |
162 padding: 0px 1em; } | |
163 | |
164 @media (min-width: 768px) { | |
165 .container { | |
166 width: 720px; } } | |
167 | |
168 @media (min-width: 992px) { | |
169 .container { | |
170 width: 960px; } } | |
171 | |
172 @media (min-width: 1200px) { | |
173 .container { | |
174 width: 1140px; } } | |
175 | |
176 .clearfix:after, .content:after, | |
177 .clearfix:before, | |
178 .content:before { | |
179 display: table; | |
180 content: " "; } | |
181 | |
182 .clearfix:after, .content:after { | |
183 clear: both; } | |
184 | |
185 /******************************************************************************* | 198 /******************************************************************************* |
186 * Content styles | 199 * Content styles |
187 ******************************************************************************* | 200 ******************************************************************************* |
188 * 1. Document | 201 * 1. Document |
189 * 2. Headings | 202 * 2. Headings |
190 * 3. Body content | 203 * 3. Body content |
191 ******************************************************************************/ | 204 ******************************************************************************/ |
192 .content { | 205 .content { |
193 /* Clearfixed | 206 /* Clearfixed |
194 ****************************************************************************/ | 207 ****************************************************************************/ |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 * Buttons | 407 * Buttons |
395 ******************************************************************************* | 408 ******************************************************************************* |
396 | 409 |
397 /* 1. Reset | 410 /* 1. Reset |
398 ******************************************************************************/ | 411 ******************************************************************************/ |
399 button { | 412 button { |
400 margin: 0px; | 413 margin: 0px; |
401 font: inherit; | 414 font: inherit; |
402 /* Show the overflow in IE and Edge */ | 415 /* Show the overflow in IE and Edge */ |
403 overflow: visible; | 416 overflow: visible; |
| 417 /* Remove rounded corners in Chrome 62+ */ |
| 418 border-radius: 0; |
404 /* Remove the inheritance of text transform in Edge, Firefox, and IE. */ | 419 /* Remove the inheritance of text transform in Edge, Firefox, and IE. */ |
405 text-transform: none; } | 420 text-transform: none; } |
406 | 421 |
407 /** | 422 /** |
408 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` | 423 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` |
409 * controls in Android 4. | 424 * controls in Android 4. |
410 * 2. Correct the inability to style clickable types in iOS and Safari. | 425 * 2. Correct the inability to style clickable types in iOS and Safari. |
411 */ | 426 */ |
412 button, | 427 button, |
413 html [type="button"], | 428 html [type="button"], |
414 [type="reset"], | 429 [type="reset"], |
415 [type="submit"] { | 430 [type="submit"] { |
416 -webkit-appearance: button; } | 431 -webkit-appearance: button; } |
417 | 432 |
418 /* Remove the inner border and padding in Firefox. */ | 433 /* Remove the inner border and padding in Firefox. */ |
419 button::-moz-focus-inner, | 434 button::-moz-focus-inner, |
420 [type="button"]::-moz-focus-inner, | 435 [type="button"]::-moz-focus-inner, |
421 [type="reset"]::-moz-focus-inner, | 436 [type="reset"]::-moz-focus-inner, |
422 [type="submit"]::-moz-focus-inner { | 437 [type="submit"]::-moz-focus-inner { |
423 padding: 0px; | 438 padding: 0px; |
424 border-style: none; } | 439 border-style: none; } |
425 | 440 |
426 /* Restore the focus styles unset by the previous rule. */ | 441 /* Restore the focus styles unset by the previous rule. */ |
427 button:-moz-focusring, | 442 button:-moz-focusring, |
428 [type="button"]:-moz-focusring, | 443 [type="button"]:-moz-focusring, |
429 [type="reset"]:-moz-focusring, | 444 [type="reset"]:-moz-focusring, |
430 [type="submit"]:-moz-focusring { | 445 [type="submit"]:-moz-focusring { |
431 outline: 1px dotted ButtonText; } | 446 outline: 1px dotted ButtonText; } |
OLD | NEW |