Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: scss/_forms.scss

Issue 29510560: Issue 4633 - Default form styles (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Created Aug. 9, 2017, 9:17 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*******************************************************************************
juliandoucette 2017/08/09 13:23:57 Missing license header. Note: I'm not sure that w
ire 2017/08/09 17:04:03 Acknowledged. Will add it in the next patch.
2 * Forms
3 *******************************************************************************
4 * 1. Reset
5 ******************************************************************************/
6
7 /* 1. Reset
juliandoucette 2017/08/09 13:23:57 Where did you get these reset styles from?
ire 2017/08/09 17:04:03 A combination of: - Normalize.css - Your last cod
juliandoucette 2017/08/09 20:00:11 Acknowledged. Thanks! Note: We should probably c
8 ******************************************************************************/
9
10 button,
11 input,
12 optgroup,
13 select,
14 textarea
15 {
16 box-sizing: border-box;
17 margin: 0px;
18 font: inherit;
19 }
20
21 /**
22 * Show the overflow in IE and Edge
23 */
24
25 button,
26 input
27 {
28 overflow: visible;
29 }
30
31 /**
32 * Remove the inheritance of text transform in Edge, Firefox, and IE.
33 */
34
35 button,
36 select
37 {
38 text-transform: none;
39 }
40
41 /**
42 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
43 * controls in Android 4.
44 * 2. Correct the inability to style clickable types in iOS and Safari.
45 */
46
47 button,
48 html [type="button"],
49 [type="reset"],
50 [type="submit"]
51 {
52 -webkit-appearance: button;
53 }
54
55 /**
56 * Remove the inner border and padding in Firefox.
57 */
58
59 button::-moz-focus-inner,
60 [type="button"]::-moz-focus-inner,
61 [type="reset"]::-moz-focus-inner,
62 [type="submit"]::-moz-focus-inner
63 {
64 padding: 0px;
65 border-style: none;
66 }
67
68 /**
69 * Restore the focus styles unset by the previous rule.
70 */
71
72 button:-moz-focusring,
73 [type="button"]:-moz-focusring,
74 [type="reset"]:-moz-focusring,
75 [type="submit"]:-moz-focusring
76 {
77 outline: 1px dotted ButtonText;
78 }
79
80 fieldset,
81 legend
82 {
83 display: block;
84 margin: 0px;
85 padding: 0px;
86 border: 0px;
87 }
88
89 textarea
90 {
91 overflow: auto;
92 }
93
94 [type="checkbox"],
95 [type="radio"]
96 {
97 padding: 0px;
98 }
99
100 [type="number"]::-webkit-inner-spin-button,
101 [type="number"]::-webkit-outer-spin-button
102 {
103 height: auto;
104 }
105
106 [type="date"],
107 [type="time"],
108 [type="datetime"],
109 [type="datetime-local"],
110 [type="month"],
111 [type="week"]
112 {
113 -webkit-appearance: none;
114 }
115
116 /**
117 * Use `-webkit-appearance: none` to reset search input in iOS Safari
118 */
119
120 [type="search"]
121 {
122 -webkit-appearance: none;
123 outline-offset: -2px;
124 }
125
126 [type="search"]::-webkit-search-cancel-button,
127 [type="search"]::-webkit-search-decoration
128 {
129 -webkit-appearance: none;
130 }
131
132 ::-webkit-file-upload-button
133 {
134 -webkit-appearance: button;
135 font: inherit;
136 }
137
138 [hidden]
juliandoucette 2017/08/09 13:23:57 I think this applies to non-forms too no?
ire 2017/08/09 17:04:03 Yes you're right. I guess they may be more commonl
139 {
140 display: none;
141 }
OLDNEW
« pages/forms.html ('K') | « pages/index.html ('k') | scss/main.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld