purecss-sass 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,154 @@
1
+ /*!
2
+ Pure v0.6.0
3
+ Copyright 2014 Yahoo! Inc. All rights reserved.
4
+ Licensed under the BSD License.
5
+ https://github.com/yahoo/pure/blob/master/LICENSE.md
6
+ */
7
+
8
+ .pure-button {
9
+ /* Structure */
10
+ display: inline-block;
11
+ zoom: 1;
12
+ line-height: normal;
13
+ white-space: nowrap;
14
+ vertical-align: middle;
15
+ text-align: center;
16
+ cursor: pointer;
17
+ -webkit-user-drag: none;
18
+ -webkit-user-select: none;
19
+ -moz-user-select: none;
20
+ -ms-user-select: none;
21
+ user-select: none;
22
+ -webkit-box-sizing: border-box;
23
+ -moz-box-sizing: border-box;
24
+ box-sizing: border-box;
25
+
26
+ &::-moz-focus-inner {
27
+ padding: 0;
28
+ border: 0;
29
+ }
30
+
31
+ font-family: inherit;
32
+ font-size: 100%;
33
+ padding: 0.5em 1em;
34
+ color: #444;
35
+
36
+ /* rgba not supported (IE 8) */
37
+ color: rgba(0, 0, 0, 0.8);
38
+
39
+ /* rgba supported */
40
+ border: 1px solid #999;
41
+
42
+ /*IE 6/7/8*/
43
+ border: none rgba(0, 0, 0, 0);
44
+
45
+ /*IE9 + everything else*/
46
+ background-color: #E6E6E6;
47
+ text-decoration: none;
48
+ border-radius: 2px;
49
+ }
50
+
51
+ /* Firefox: Get rid of the inner focus border */
52
+
53
+ /*csslint outline-none:false*/
54
+
55
+ .pure-button-hover {
56
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000',GradientType=0);
57
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(40%, rgba(0, 0, 0, 0.05)), to(rgba(0, 0, 0, 0.1)));
58
+ background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
59
+ background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1));
60
+ background-image: -o-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
61
+ background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
62
+ }
63
+
64
+ .pure-button {
65
+ &:hover {
66
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000',GradientType=0);
67
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(40%, rgba(0, 0, 0, 0.05)), to(rgba(0, 0, 0, 0.1)));
68
+ background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
69
+ background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1));
70
+ background-image: -o-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
71
+ background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
72
+ }
73
+
74
+ &:focus {
75
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000',GradientType=0);
76
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(40%, rgba(0, 0, 0, 0.05)), to(rgba(0, 0, 0, 0.1)));
77
+ background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
78
+ background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1));
79
+ background-image: -o-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
80
+ background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
81
+ outline: 0;
82
+ }
83
+ }
84
+
85
+ .pure-button-active {
86
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.2) inset;
87
+ border-color: #000 \9;
88
+ }
89
+
90
+ .pure-button {
91
+ &:active {
92
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.2) inset;
93
+ border-color: #000 \9;
94
+ }
95
+
96
+ &[disabled] {
97
+ border: none;
98
+ background-image: none;
99
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
100
+ filter: alpha(opacity = 40);
101
+ -khtml-opacity: 0.40;
102
+ -moz-opacity: 0.40;
103
+ opacity: 0.40;
104
+ cursor: not-allowed;
105
+ box-shadow: none;
106
+ }
107
+ }
108
+
109
+ .pure-button-disabled {
110
+ border: none;
111
+ background-image: none;
112
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
113
+ filter: alpha(opacity = 40);
114
+ -khtml-opacity: 0.40;
115
+ -moz-opacity: 0.40;
116
+ opacity: 0.40;
117
+ cursor: not-allowed;
118
+ box-shadow: none;
119
+
120
+ &:hover, &:focus, &:active {
121
+ border: none;
122
+ background-image: none;
123
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
124
+ filter: alpha(opacity = 40);
125
+ -khtml-opacity: 0.40;
126
+ -moz-opacity: 0.40;
127
+ opacity: 0.40;
128
+ cursor: not-allowed;
129
+ box-shadow: none;
130
+ }
131
+ }
132
+
133
+ .pure-button-hidden {
134
+ display: none;
135
+ }
136
+
137
+ /* Firefox: Get rid of the inner focus border */
138
+
139
+ .pure-button::-moz-focus-inner {
140
+ padding: 0;
141
+ border: 0;
142
+ }
143
+
144
+ .pure-button-primary, .pure-button-selected {
145
+ background-color: rgb(0, 120, 231);
146
+ color: #fff;
147
+ }
148
+
149
+ a {
150
+ &.pure-button-primary, &.pure-button-selected {
151
+ background-color: rgb(0, 120, 231);
152
+ color: #fff;
153
+ }
154
+ }
@@ -0,0 +1,344 @@
1
+ /*!
2
+ Pure v0.6.0
3
+ Copyright 2014 Yahoo! Inc. All rights reserved.
4
+ Licensed under the BSD License.
5
+ https://github.com/yahoo/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
+ -webkit-box-sizing: border-box;
25
+ -moz-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
+ box-shadow: inset 0 1px 3px #ddd;
35
+ border-radius: 4px;
36
+ vertical-align: middle;
37
+ -webkit-box-sizing: border-box;
38
+ -moz-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
+ box-shadow: inset 0 1px 3px #ddd;
48
+ border-radius: 4px;
49
+ -webkit-box-sizing: border-box;
50
+ -moz-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, .pure-help-inline {
209
+ display: inline-block;
210
+ *display: inline;
211
+ *zoom: 1;
212
+ vertical-align: middle;
213
+ }
214
+ }
215
+
216
+ .pure-form-message-inline {
217
+ display: inline-block;
218
+ *display: inline;
219
+ *zoom: 1;
220
+ vertical-align: middle;
221
+ }
222
+
223
+ .pure-form-aligned {
224
+ textarea {
225
+ vertical-align: top;
226
+ }
227
+
228
+ .pure-control-group {
229
+ margin-bottom: 0.5em;
230
+
231
+ label {
232
+ text-align: right;
233
+ display: inline-block;
234
+ vertical-align: middle;
235
+ width: 10em;
236
+ margin: 0 1em 0 0;
237
+ }
238
+ }
239
+
240
+ .pure-controls {
241
+ margin: 1.5em 0 0 11em;
242
+ }
243
+ }
244
+
245
+ /* Aligned Forms */
246
+
247
+ /* Rounded Inputs */
248
+
249
+ .pure-form {
250
+ input.pure-input-rounded, .pure-input-rounded {
251
+ border-radius: 2em;
252
+ padding: 0.5em 1em;
253
+ }
254
+
255
+ .pure-group {
256
+ fieldset {
257
+ margin-bottom: 10px;
258
+ }
259
+
260
+ input, textarea {
261
+ display: block;
262
+ padding: 10px;
263
+ margin: 0 0 -1px;
264
+ border-radius: 0;
265
+ position: relative;
266
+ top: -1px;
267
+ }
268
+
269
+ input:focus, textarea:focus {
270
+ z-index: 3;
271
+ }
272
+
273
+ input:first-child, textarea:first-child {
274
+ top: 1px;
275
+ border-radius: 4px 4px 0 0;
276
+ margin: 0;
277
+ }
278
+
279
+ input:first-child:last-child, textarea:first-child:last-child {
280
+ top: 1px;
281
+ border-radius: 4px;
282
+ margin: 0;
283
+ }
284
+
285
+ input:last-child, textarea:last-child {
286
+ top: -2px;
287
+ border-radius: 0 0 4px 4px;
288
+ margin: 0;
289
+ }
290
+
291
+ button {
292
+ margin: 0.35em 0;
293
+ }
294
+ }
295
+
296
+ .pure-input-1 {
297
+ width: 100%;
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
+ .pure-help-inline {
317
+ display: inline-block;
318
+ padding-left: 0.3em;
319
+ color: #666;
320
+ vertical-align: middle;
321
+ font-size: 0.875em;
322
+ }
323
+ }
324
+
325
+ /* Grouped Inputs */
326
+
327
+ /* Inline help for forms */
328
+ /* NOTE: pure-help-inline is deprecated. Use .pure-form-message-inline instead. */
329
+
330
+ .pure-form-message-inline {
331
+ display: inline-block;
332
+ padding-left: 0.3em;
333
+ color: #666;
334
+ vertical-align: middle;
335
+ font-size: 0.875em;
336
+ }
337
+
338
+ /* Block help for forms */
339
+
340
+ .pure-form-message {
341
+ display: block;
342
+ color: #666;
343
+ font-size: 0.875em;
344
+ }