purecss-sass 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae0f24d1009fa1927b31413ac9f02e4ee77ff3ca5a70e9fa49b6faf9cd5ec7dc
4
- data.tar.gz: 1f0a83979bed6aa912619b15af78e8747107ffc377520d5248b9a86c0acc63d2
3
+ metadata.gz: 1f2789ecc85ce2be47ae8bcc0167f231ee5addfa7106706bf660822ebbe8c817
4
+ data.tar.gz: 2efb5f4c53a995d488f78eebf2ec75afe3a20f00d97c6d8152c27c7a37745414
5
5
  SHA512:
6
- metadata.gz: 67e35c9b4aeb82f499efd6edd41d6255396bc54043a105a0bfcd664288d82d3cec22d95ca812cad79e3d767097286a9c4577fb07be968642026e3b7cbf6d36bc
7
- data.tar.gz: 58208093b54eb737856a30a63a6119be99d43e88894da75b923d07bd1ffe664bfddb30d5df03daa8a46f47a89ee8d2e2cfd099825a49efad7abcf9d439ac37bc
6
+ metadata.gz: aca0610128e5e93116d431c4f5e1c9277d8acf943a3029bab335e23c5a6ea6c040451c4f287f1365fc9c1fa840040ae0da64aaf8d66a12d6b46a89455d159d91
7
+ data.tar.gz: b5bb70fc9770ef6a9b6ab4c178b44719e594a16afc14cd2d51898f6c97b8ed04dce6422394d0a0107608312ebc42d86d0ec8264e6341070001255880c7b38529
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 3.0.1 (2023-05-06)
2
+
3
+ - fix: include forms-nr module
4
+ - fix: include grids module in the default import
5
+
6
+ Framework version: Pure v3.0.0
7
+
1
8
  ## 3.0.0 (2022-10-27)
2
9
 
3
10
  - Update assets to match upstream version
data/README.md CHANGED
@@ -42,19 +42,19 @@ Open `/app/assets/stylesheets/application.scss` file and add this line:
42
42
 
43
43
  ## Usage
44
44
 
45
- By default, using `@import 'purecss';`, all of Pure CSS responsive components are imported.
45
+ By default, using `@import 'purecss';`, all of Pure CSS components are imported except non-responsive forms, which are identical to responsive forms minus media queries.
46
46
 
47
47
  You can import individual Sass components like this:
48
48
 
49
49
  ```scss
50
- @import 'purecss/base';
51
- @import 'purecss/buttons';
52
- @import 'purecss/forms';
53
- @import 'purecss/forms-nr';
54
- @import 'purecss/grids';
55
- @import 'purecss/grids-responsive';
56
- @import 'purecss/menus';
57
- @import 'purecss/tables';
50
+ @import 'purecss/base'; // Base
51
+ @import 'purecss/buttons'; // Buttons
52
+ @import 'purecss/forms'; // Forms (Responsive)
53
+ @import 'purecss/forms-nr'; // Forms (Non-Responsive)
54
+ @import 'purecss/grids'; // Grids (Base)
55
+ @import 'purecss/grids-responsive'; // Grids (Responsive)
56
+ @import 'purecss/menus'; // Menus (Responsive)
57
+ @import 'purecss/tables'; // Tables
58
58
  ```
59
59
 
60
60
  ## Versioning
@@ -1,5 +1,5 @@
1
1
  module Purecss
2
2
  module Sass
3
- VERSION = '3.0.0'.freeze
3
+ VERSION = '3.0.1'.freeze
4
4
  end
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecss-sass",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Pure CSS framework, converted to Sass and ready to use in Sass powered applications",
5
5
  "keywords": [
6
6
  "pure",
@@ -1,6 +1,7 @@
1
1
  @import 'purecss/base';
2
2
  @import 'purecss/buttons';
3
3
  @import 'purecss/forms';
4
+ @import 'purecss/grids';
4
5
  @import 'purecss/grids-responsive';
5
6
  @import 'purecss/menus';
6
7
  @import 'purecss/tables';
@@ -0,0 +1,329 @@
1
+ /*!
2
+ Pure v3.0.0
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
+ 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
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purecss-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Tarasov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-27 00:00:00.000000000 Z
11
+ date: 2023-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sassc
@@ -106,6 +106,7 @@ files:
106
106
  - vendor/assets/stylesheets/_purecss.scss
107
107
  - vendor/assets/stylesheets/purecss/_base.scss
108
108
  - vendor/assets/stylesheets/purecss/_buttons.scss
109
+ - vendor/assets/stylesheets/purecss/_forms-nr.scss
109
110
  - vendor/assets/stylesheets/purecss/_forms.scss
110
111
  - vendor/assets/stylesheets/purecss/_grids-responsive.scss
111
112
  - vendor/assets/stylesheets/purecss/_grids.scss
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
133
  - !ruby/object:Gem::Version
133
134
  version: '0'
134
135
  requirements: []
135
- rubygems_version: 3.3.7
136
+ rubygems_version: 3.4.10
136
137
  signing_key:
137
138
  specification_version: 4
138
139
  summary: Pure CSS framework, converted to Sass