LEFT | RIGHT |
1 /*! | 1 /*! |
2 * This file is part of website-defaults | 2 * This file is part of website-defaults |
3 * Copyright (C) 2016-2017 eyeo GmbH | 3 * Copyright (C) 2016-2017 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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 * GNU General Public License for more details. | 13 * GNU General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU General Public License | 15 * You should have received a copy of the GNU General Public License |
16 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>. | 16 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>. |
17 */ | 17 */ |
18 | 18 |
19 /******************************************************************************* | 19 /******************************************************************************* |
20 * Basic forms fields | 20 * Basic forms fields |
21 ******************************************************************************* | 21 ******************************************************************************* |
22 * 1. Reset | 22 * 1. Reset |
23 ******************************************************************************/ | 23 ******************************************************************************/ |
24 | 24 |
25 /* 1. Reset | 25 /* 1. Reset |
26 ******************************************************************************/ | 26 ******************************************************************************/ |
27 | 27 |
| 28 /* Change the font styles in all browsers (opinionated). */ |
| 29 |
28 input, | 30 input, |
29 optgroup, | 31 optgroup, |
30 select, | 32 select, |
31 textarea | 33 textarea |
32 { | 34 { |
33 font: inherit; | 35 font: inherit; |
34 } | 36 } |
35 | 37 |
36 /* Show the overflow in IE and Edge */ | 38 /* Show the overflow in IE and Edge */ |
37 | 39 |
38 input | 40 input |
39 { | 41 { |
40 overflow: visible; | 42 overflow: visible; |
41 } | 43 } |
42 | 44 |
43 /* Remove the inheritance of text transform in Edge, Firefox, and IE. */ | 45 /* Remove the inheritance of text transform in Edge, Firefox, and IE. */ |
44 | 46 |
45 select | 47 select |
46 { | 48 { |
47 text-transform: none; | 49 text-transform: none; |
48 } | 50 } |
49 | 51 |
50 fieldset, | 52 /* Set block display (opinionated) */ |
51 legend | 53 |
| 54 fieldset |
52 { | 55 { |
53 display: block; | 56 display: block; |
54 } | 57 } |
| 58 |
| 59 /* Correct the text wrapping in Edge and IE. */ |
| 60 |
| 61 legend |
| 62 { |
| 63 display: table; |
| 64 max-width: 100%; |
| 65 white-space: normal; |
| 66 } |
| 67 |
| 68 /* Remove the default vertical scrollbar in IE. */ |
55 | 69 |
56 textarea | 70 textarea |
57 { | 71 { |
58 overflow: auto; | 72 overflow: auto; |
59 } | 73 } |
| 74 |
| 75 /* Remove the padding in IE 10-. */ |
| 76 |
| 77 [type="checkbox"], |
| 78 [type="radio"] |
| 79 { |
| 80 padding: 0px; |
| 81 } |
LEFT | RIGHT |