|
1 | | -.pure-form input:not([type]), |
2 | 1 | .pure-form input[type="text"], |
3 | 2 | .pure-form input[type="password"], |
4 | 3 | .pure-form input[type="email"], |
|
26 | 25 | box-sizing: border-box; |
27 | 26 | } |
28 | 27 |
|
29 | | -.pure-form input:not([type]):focus, |
| 28 | +/* |
| 29 | +Need to separate out the :not() selector from the rest of the CSS 2.1 selectors |
| 30 | +since IE8 won't execute CSS that contains a CSS3 selector. |
| 31 | +*/ |
| 32 | +.pure-form input:not([type]) { |
| 33 | + padding: 0.5em 0.6em; |
| 34 | + display: inline-block; |
| 35 | + border: 1px solid #ccc; |
| 36 | + font-size: 0.8em; |
| 37 | + box-shadow: inset 0 1px 3px #ddd; |
| 38 | + border-radius: 4px; |
| 39 | + -webkit-box-sizing: border-box; |
| 40 | + -moz-box-sizing: border-box; |
| 41 | + box-sizing: border-box; |
| 42 | +} |
| 43 | + |
| 44 | + |
30 | 45 | .pure-form input[type="text"]:focus, |
31 | 46 | .pure-form input[type="password"]:focus, |
32 | 47 | .pure-form input[type="email"]:focus, |
|
48 | 63 | border-color: #129FEA; |
49 | 64 | } |
50 | 65 |
|
| 66 | +/* |
| 67 | +Need to separate out the :not() selector from the rest of the CSS 2.1 selectors |
| 68 | +since IE8 won't execute CSS that contains a CSS3 selector. |
| 69 | +*/ |
| 70 | +.pure-form input:not([type]):focus { |
| 71 | + outline: 0; |
| 72 | + outline: thin dotted \9; /* IE6-9 */ |
| 73 | + border-color: #129FEA; |
| 74 | +} |
| 75 | + |
51 | 76 | .pure-form input[type="file"]:focus, |
52 | 77 | .pure-form input[type="radio"]:focus, |
53 | 78 | .pure-form input[type="checkbox"]:focus { |
|
59 | 84 | margin: 0.5em 0; |
60 | 85 | display: block; |
61 | 86 | } |
62 | | -.pure-form input:not([type])[disabled], |
| 87 | + |
63 | 88 | .pure-form input[type="text"][disabled], |
64 | 89 | .pure-form input[type="password"][disabled], |
65 | 90 | .pure-form input[type="email"][disabled], |
|
80 | 105 | background-color: #eaeded; |
81 | 106 | color: #cad2d3; |
82 | 107 | } |
| 108 | + |
| 109 | +/* |
| 110 | +Need to separate out the :not() selector from the rest of the CSS 2.1 selectors |
| 111 | +since IE8 won't execute CSS that contains a CSS3 selector. |
| 112 | +*/ |
| 113 | +.pure-form input:not([type])[disabled] { |
| 114 | + cursor: not-allowed; |
| 115 | + background-color: #eaeded; |
| 116 | + color: #cad2d3; |
| 117 | +} |
83 | 118 | .pure-form input[readonly], |
84 | 119 | .pure-form select[readonly], |
85 | 120 | .pure-form textarea[readonly] { |
|
130 | 165 | border-bottom: 1px solid #e5e5e5; |
131 | 166 | } |
132 | 167 |
|
133 | | -.pure-form-stacked input:not([type]), |
134 | 168 | .pure-form-stacked input[type="text"], |
135 | 169 | .pure-form-stacked input[type="password"], |
136 | 170 | .pure-form-stacked input[type="email"], |
|
152 | 186 | margin: 0.25em 0; |
153 | 187 | } |
154 | 188 |
|
| 189 | +/* |
| 190 | +Need to separate out the :not() selector from the rest of the CSS 2.1 selectors |
| 191 | +since IE8 won't execute CSS that contains a CSS3 selector. |
| 192 | +*/ |
| 193 | +.pure-form-stacked input:not([type]) { |
| 194 | + display: block; |
| 195 | + margin: 0.25em 0; |
| 196 | +} |
155 | 197 | .pure-form-aligned input, |
156 | 198 | .pure-form-aligned textarea, |
157 | 199 | .pure-form-aligned select, |
|
0 commit comments