purecss-sass 1.0.1.1 → 2.0.4

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