purecss-sass 1.0.1.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Pure v1.0.1
2
+ Pure v2.0.0
3
3
  Copyright 2013 Yahoo!
4
4
  Licensed under the BSD License.
5
5
  https://github.com/pure-css/pure/blob/master/LICENSE.md
@@ -8,7 +8,6 @@ https://github.com/pure-css/pure/blob/master/LICENSE.md
8
8
  .pure-button {
9
9
  /* Structure */
10
10
  display: inline-block;
11
- zoom: 1;
12
11
  line-height: normal;
13
12
  white-space: nowrap;
14
13
  vertical-align: middle;
@@ -19,7 +18,6 @@ https://github.com/pure-css/pure/blob/master/LICENSE.md
19
18
  -moz-user-select: none;
20
19
  -ms-user-select: none;
21
20
  user-select: none;
22
- -webkit-box-sizing: border-box;
23
21
  box-sizing: border-box;
24
22
 
25
23
  &::-moz-focus-inner {
@@ -36,12 +34,6 @@ https://github.com/pure-css/pure/blob/master/LICENSE.md
36
34
  letter-spacing: -0.31em;
37
35
 
38
36
  /* Webkit: collapse white-space between units */
39
- *letter-spacing: normal;
40
-
41
- /* reset IE < 8 */
42
- *word-spacing: -0.43em;
43
-
44
- /* IE < 8: collapse white-space between units */
45
37
  text-rendering: optimizespeed;
46
38
 
47
39
  /* Webkit: fixes text-rendering: optimizeLegibility */
@@ -86,35 +78,27 @@ https://github.com/pure-css/pure/blob/master/LICENSE.md
86
78
  }
87
79
 
88
80
  .pure-button-hover {
89
- background-image: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(40%, rgba(0, 0, 0, 0.05)), to(rgba(0, 0, 0, 0.1)));
90
- background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
91
81
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
92
82
  }
93
83
 
94
84
  .pure-button {
95
85
  &:hover {
96
- background-image: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(40%, rgba(0, 0, 0, 0.05)), to(rgba(0, 0, 0, 0.1)));
97
- background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
98
86
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
99
87
  }
100
88
 
101
89
  &:focus {
102
- background-image: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(40%, rgba(0, 0, 0, 0.05)), to(rgba(0, 0, 0, 0.1)));
103
- background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
104
90
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
105
91
  outline: 0;
106
92
  }
107
93
  }
108
94
 
109
95
  .pure-button-active {
110
- -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.2) inset;
111
96
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.2) inset;
112
97
  border-color: #000;
113
98
  }
114
99
 
115
100
  .pure-button {
116
101
  &:active {
117
- -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.2) inset;
118
102
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.2) inset;
119
103
  border-color: #000;
120
104
  }
@@ -122,14 +106,8 @@ https://github.com/pure-css/pure/blob/master/LICENSE.md
122
106
  &[disabled] {
123
107
  border: none;
124
108
  background-image: none;
125
-
126
- /* csslint ignore:start */
127
- filter: alpha(opacity = 40);
128
-
129
- /* csslint ignore:end */
130
109
  opacity: 0.40;
131
110
  cursor: not-allowed;
132
- -webkit-box-shadow: none;
133
111
  box-shadow: none;
134
112
  pointer-events: none;
135
113
  }
@@ -138,28 +116,16 @@ https://github.com/pure-css/pure/blob/master/LICENSE.md
138
116
  .pure-button-disabled {
139
117
  border: none;
140
118
  background-image: none;
141
-
142
- /* csslint ignore:start */
143
- filter: alpha(opacity = 40);
144
-
145
- /* csslint ignore:end */
146
119
  opacity: 0.40;
147
120
  cursor: not-allowed;
148
- -webkit-box-shadow: none;
149
121
  box-shadow: none;
150
122
  pointer-events: none;
151
123
 
152
124
  &:hover, &:focus, &:active {
153
125
  border: none;
154
126
  background-image: none;
155
-
156
- /* csslint ignore:start */
157
- filter: alpha(opacity = 40);
158
-
159
- /* csslint ignore:end */
160
127
  opacity: 0.40;
161
128
  cursor: not-allowed;
162
- -webkit-box-shadow: none;
163
129
  box-shadow: none;
164
130
  pointer-events: none;
165
131
  }
@@ -0,0 +1,329 @@
1
+ /*!
2
+ Pure v2.0.0
3
+ Copyright 2013 Yahoo!
4
+ Licensed under the BSD License.
5
+ https://github.com/pure-css/pure/blob/master/LICENSE.md
6
+ */
7
+ /*csslint box-model:false*/
8
+ /*
9
+ Box-model set to false because we're setting a height on select elements, which
10
+ also have border and padding. This is done because some browsers don't render
11
+ the padding. We explicitly set the box-model for select elements to border-box,
12
+ so we can ignore the csslint warning.
13
+ */
14
+
15
+ .pure-form {
16
+ input {
17
+ &[type="text"], &[type="password"], &[type="email"], &[type="url"], &[type="date"], &[type="month"], &[type="time"], &[type="datetime"], &[type="datetime-local"], &[type="week"], &[type="number"], &[type="search"], &[type="tel"], &[type="color"] {
18
+ padding: 0.5em 0.6em;
19
+ display: inline-block;
20
+ border: 1px solid #ccc;
21
+ box-shadow: inset 0 1px 3px #ddd;
22
+ border-radius: 4px;
23
+ vertical-align: middle;
24
+ box-sizing: border-box;
25
+ }
26
+ }
27
+
28
+ select, textarea {
29
+ padding: 0.5em 0.6em;
30
+ display: inline-block;
31
+ border: 1px solid #ccc;
32
+ box-shadow: inset 0 1px 3px #ddd;
33
+ border-radius: 4px;
34
+ vertical-align: middle;
35
+ box-sizing: border-box;
36
+ }
37
+
38
+ input {
39
+ &:not([type]) {
40
+ padding: 0.5em 0.6em;
41
+ display: inline-block;
42
+ border: 1px solid #ccc;
43
+ box-shadow: inset 0 1px 3px #ddd;
44
+ border-radius: 4px;
45
+ box-sizing: border-box;
46
+ }
47
+
48
+ &[type="color"] {
49
+ padding: 0.2em 0.5em;
50
+ }
51
+
52
+ &[type="text"]:focus, &[type="password"]:focus, &[type="email"]:focus, &[type="url"]:focus, &[type="date"]:focus, &[type="month"]:focus, &[type="time"]:focus, &[type="datetime"]:focus, &[type="datetime-local"]:focus, &[type="week"]:focus, &[type="number"]:focus, &[type="search"]:focus, &[type="tel"]:focus, &[type="color"]:focus {
53
+ outline: 0;
54
+ border-color: #129FEA;
55
+ }
56
+ }
57
+
58
+ select:focus, textarea:focus {
59
+ outline: 0;
60
+ border-color: #129FEA;
61
+ }
62
+
63
+ input {
64
+ &:not([type]):focus {
65
+ outline: 0;
66
+ border-color: #129FEA;
67
+ }
68
+
69
+ &[type="file"]:focus, &[type="radio"]:focus, &[type="checkbox"]:focus {
70
+ outline: thin solid #129FEA;
71
+ outline: 1px auto #129FEA;
72
+ }
73
+ }
74
+
75
+ .pure-checkbox, .pure-radio {
76
+ margin: 0.5em 0;
77
+ display: block;
78
+ }
79
+
80
+ input {
81
+ &[type="text"][disabled], &[type="password"][disabled], &[type="email"][disabled], &[type="url"][disabled], &[type="date"][disabled], &[type="month"][disabled], &[type="time"][disabled], &[type="datetime"][disabled], &[type="datetime-local"][disabled], &[type="week"][disabled], &[type="number"][disabled], &[type="search"][disabled], &[type="tel"][disabled], &[type="color"][disabled] {
82
+ cursor: not-allowed;
83
+ background-color: #eaeded;
84
+ color: #cad2d3;
85
+ }
86
+ }
87
+
88
+ select[disabled], textarea[disabled] {
89
+ cursor: not-allowed;
90
+ background-color: #eaeded;
91
+ color: #cad2d3;
92
+ }
93
+
94
+ input {
95
+ &:not([type])[disabled] {
96
+ cursor: not-allowed;
97
+ background-color: #eaeded;
98
+ color: #cad2d3;
99
+ }
100
+
101
+ &[readonly] {
102
+ background-color: #eee;
103
+
104
+ /* menu hover bg color */
105
+ color: #777;
106
+
107
+ /* menu text color */
108
+ border-color: #ccc;
109
+ }
110
+ }
111
+
112
+ select[readonly], textarea[readonly] {
113
+ background-color: #eee;
114
+
115
+ /* menu hover bg color */
116
+ color: #777;
117
+
118
+ /* menu text color */
119
+ border-color: #ccc;
120
+ }
121
+
122
+ input:focus:invalid, textarea:focus:invalid, select:focus:invalid {
123
+ color: #b94a48;
124
+ border-color: #e9322d;
125
+ }
126
+
127
+ input {
128
+ &[type="file"]:focus:invalid:focus, &[type="radio"]:focus:invalid:focus, &[type="checkbox"]:focus:invalid:focus {
129
+ outline-color: #e9322d;
130
+ }
131
+ }
132
+
133
+ select {
134
+ /* Normalizes the height; padding is not sufficient. */
135
+ height: 2.25em;
136
+ border: 1px solid #ccc;
137
+ background-color: white;
138
+
139
+ &[multiple] {
140
+ height: auto;
141
+ }
142
+ }
143
+
144
+ label {
145
+ margin: 0.5em 0 0.2em;
146
+ }
147
+
148
+ fieldset {
149
+ margin: 0;
150
+ padding: 0.35em 0 0.75em;
151
+ border: 0;
152
+ }
153
+
154
+ legend {
155
+ display: block;
156
+ width: 100%;
157
+ padding: 0.3em 0;
158
+ margin-bottom: 0.3em;
159
+ color: #333;
160
+ border-bottom: 1px solid #e5e5e5;
161
+ }
162
+ }
163
+
164
+ /*
165
+ Need to separate out the :not() selector from the rest of the CSS 2.1 selectors
166
+ since IE8 won't execute CSS that contains a CSS3 selector.
167
+ */
168
+
169
+ /* Chrome (as of v.32/34 on OS X) needs additional room for color to display. */
170
+ /* May be able to remove this tweak as color inputs become more standardized across browsers. */
171
+
172
+ /*
173
+ Need to separate out the :not() selector from the rest of the CSS 2.1 selectors
174
+ since IE8 won't execute CSS that contains a CSS3 selector.
175
+ */
176
+
177
+ /*
178
+ Need to separate out the :not() selector from the rest of the CSS 2.1 selectors
179
+ since IE8 won't execute CSS that contains a CSS3 selector.
180
+ */
181
+
182
+ .pure-form-stacked {
183
+ input {
184
+ &[type="text"], &[type="password"], &[type="email"], &[type="url"], &[type="date"], &[type="month"], &[type="time"], &[type="datetime"], &[type="datetime-local"], &[type="week"], &[type="number"], &[type="search"], &[type="tel"], &[type="color"], &[type="file"] {
185
+ display: block;
186
+ margin: 0.25em 0;
187
+ }
188
+ }
189
+
190
+ select, label, textarea, input:not([type]) {
191
+ display: block;
192
+ margin: 0.25em 0;
193
+ }
194
+ }
195
+
196
+ /*
197
+ Need to separate out the :not() selector from the rest of the CSS 2.1 selectors
198
+ since IE8 won't execute CSS that contains a CSS3 selector.
199
+ */
200
+
201
+ .pure-form-aligned {
202
+ input, textarea, select {
203
+ display: inline-block;
204
+ vertical-align: middle;
205
+ }
206
+ }
207
+
208
+ .pure-form-message-inline {
209
+ display: inline-block;
210
+ vertical-align: middle;
211
+ }
212
+
213
+ .pure-form-aligned {
214
+ textarea {
215
+ vertical-align: top;
216
+ }
217
+
218
+ .pure-control-group {
219
+ margin-bottom: 0.5em;
220
+
221
+ label {
222
+ text-align: right;
223
+ display: inline-block;
224
+ vertical-align: middle;
225
+ width: 10em;
226
+ margin: 0 1em 0 0;
227
+ }
228
+ }
229
+
230
+ .pure-controls {
231
+ margin: 1.5em 0 0 11em;
232
+ }
233
+ }
234
+
235
+ /* Aligned Forms */
236
+
237
+ /* Rounded Inputs */
238
+
239
+ .pure-form {
240
+ input.pure-input-rounded, .pure-input-rounded {
241
+ border-radius: 2em;
242
+ padding: 0.5em 1em;
243
+ }
244
+
245
+ .pure-group {
246
+ fieldset {
247
+ margin-bottom: 10px;
248
+ }
249
+
250
+ input, textarea {
251
+ display: block;
252
+ padding: 10px;
253
+ margin: 0 0 -1px;
254
+ border-radius: 0;
255
+ position: relative;
256
+ top: -1px;
257
+ }
258
+
259
+ input:focus, textarea:focus {
260
+ z-index: 3;
261
+ }
262
+
263
+ input:first-child, textarea:first-child {
264
+ top: 1px;
265
+ border-radius: 4px 4px 0 0;
266
+ margin: 0;
267
+ }
268
+
269
+ input:first-child:last-child, textarea:first-child:last-child {
270
+ top: 1px;
271
+ border-radius: 4px;
272
+ margin: 0;
273
+ }
274
+
275
+ input:last-child, textarea:last-child {
276
+ top: -2px;
277
+ border-radius: 0 0 4px 4px;
278
+ margin: 0;
279
+ }
280
+
281
+ button {
282
+ margin: 0.35em 0;
283
+ }
284
+ }
285
+
286
+ .pure-input-1 {
287
+ width: 100%;
288
+ }
289
+
290
+ .pure-input-3-4 {
291
+ width: 75%;
292
+ }
293
+
294
+ .pure-input-2-3 {
295
+ width: 66%;
296
+ }
297
+
298
+ .pure-input-1-2 {
299
+ width: 50%;
300
+ }
301
+
302
+ .pure-input-1-3 {
303
+ width: 33%;
304
+ }
305
+
306
+ .pure-input-1-4 {
307
+ width: 25%;
308
+ }
309
+ }
310
+
311
+ /* Grouped Inputs */
312
+
313
+ /* Inline help for forms */
314
+
315
+ .pure-form-message-inline {
316
+ display: inline-block;
317
+ padding-left: 0.3em;
318
+ color: #666;
319
+ vertical-align: middle;
320
+ font-size: 0.875em;
321
+ }
322
+
323
+ /* Block help for forms */
324
+
325
+ .pure-form-message {
326
+ display: block;
327
+ color: #666;
328
+ font-size: 0.875em;
329
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Pure v1.0.1
2
+ Pure v2.0.0
3
3
  Copyright 2013 Yahoo!
4
4
  Licensed under the BSD License.
5
5
  https://github.com/pure-css/pure/blob/master/LICENSE.md
@@ -18,11 +18,9 @@ so we can ignore the csslint warning.
18
18
  padding: 0.5em 0.6em;
19
19
  display: inline-block;
20
20
  border: 1px solid #ccc;
21
- -webkit-box-shadow: inset 0 1px 3px #ddd;
22
21
  box-shadow: inset 0 1px 3px #ddd;
23
22
  border-radius: 4px;
24
23
  vertical-align: middle;
25
- -webkit-box-sizing: border-box;
26
24
  box-sizing: border-box;
27
25
  }
28
26
  }
@@ -31,11 +29,9 @@ so we can ignore the csslint warning.
31
29
  padding: 0.5em 0.6em;
32
30
  display: inline-block;
33
31
  border: 1px solid #ccc;
34
- -webkit-box-shadow: inset 0 1px 3px #ddd;
35
32
  box-shadow: inset 0 1px 3px #ddd;
36
33
  border-radius: 4px;
37
34
  vertical-align: middle;
38
- -webkit-box-sizing: border-box;
39
35
  box-sizing: border-box;
40
36
  }
41
37
 
@@ -44,10 +40,8 @@ so we can ignore the csslint warning.
44
40
  padding: 0.5em 0.6em;
45
41
  display: inline-block;
46
42
  border: 1px solid #ccc;
47
- -webkit-box-shadow: inset 0 1px 3px #ddd;
48
43
  box-shadow: inset 0 1px 3px #ddd;
49
44
  border-radius: 4px;
50
- -webkit-box-sizing: border-box;
51
45
  box-sizing: border-box;
52
46
  }
53
47
 
@@ -205,18 +199,14 @@ since IE8 won't execute CSS that contains a CSS3 selector.
205
199
  */
206
200
 
207
201
  .pure-form-aligned {
208
- input, textarea, select, .pure-help-inline {
202
+ input, textarea, select {
209
203
  display: inline-block;
210
- *display: inline;
211
- *zoom: 1;
212
204
  vertical-align: middle;
213
205
  }
214
206
  }
215
207
 
216
208
  .pure-form-message-inline {
217
209
  display: inline-block;
218
- *display: inline;
219
- *zoom: 1;
220
210
  vertical-align: middle;
221
211
  }
222
212
 
@@ -316,20 +306,11 @@ since IE8 won't execute CSS that contains a CSS3 selector.
316
306
  .pure-input-1-4 {
317
307
  width: 25%;
318
308
  }
319
-
320
- .pure-help-inline {
321
- display: inline-block;
322
- padding-left: 0.3em;
323
- color: #666;
324
- vertical-align: middle;
325
- font-size: 0.875em;
326
- }
327
309
  }
328
310
 
329
311
  /* Grouped Inputs */
330
312
 
331
313
  /* Inline help for forms */
332
- /* NOTE: pure-help-inline is deprecated. Use .pure-form-message-inline instead. */
333
314
 
334
315
  .pure-form-message-inline {
335
316
  display: inline-block;
@@ -385,9 +366,7 @@ since IE8 won't execute CSS that contains a CSS3 selector.
385
366
  }
386
367
  }
387
368
 
388
- /* NOTE: pure-help-inline is deprecated. Use .pure-form-message-inline instead. */
389
-
390
- .pure-form .pure-help-inline, .pure-form-message-inline, .pure-form-message {
369
+ .pure-form-message-inline, .pure-form-message {
391
370
  display: block;
392
371
  font-size: 0.75em;
393
372