pico-rails 1.4.4 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/{scss → pico/scss}/_variables.scss +0 -0
  3. data/app/assets/stylesheets/{scss → pico/scss}/components/_accordion.scss +38 -12
  4. data/app/assets/stylesheets/{scss → pico/scss}/components/_card.scss +4 -1
  5. data/app/assets/stylesheets/pico/scss/components/_dropdown.scss +208 -0
  6. data/app/assets/stylesheets/{scss → pico/scss}/components/_modal.scss +12 -14
  7. data/app/assets/stylesheets/pico/scss/components/_nav.scss +97 -0
  8. data/app/assets/stylesheets/{scss → pico/scss}/components/_progress.scss +10 -2
  9. data/app/assets/stylesheets/{scss → pico/scss}/content/_button.scss +24 -68
  10. data/app/assets/stylesheets/{scss → pico/scss}/content/_code.scss +3 -3
  11. data/app/assets/stylesheets/{scss → pico/scss}/content/_embedded.scss +4 -9
  12. data/app/assets/stylesheets/{scss → pico/scss}/content/_form-alt-input-types.scss +42 -24
  13. data/app/assets/stylesheets/{scss → pico/scss}/content/_form-checkbox-radio.scss +0 -0
  14. data/app/assets/stylesheets/{scss → pico/scss}/content/_form.scss +27 -40
  15. data/app/assets/stylesheets/{scss → pico/scss}/content/_miscs.scss +8 -8
  16. data/app/assets/stylesheets/{scss → pico/scss}/content/_table.scss +5 -7
  17. data/app/assets/stylesheets/{scss → pico/scss}/content/_typography.scss +18 -46
  18. data/app/assets/stylesheets/{scss → pico/scss}/layout/_container.scss +0 -0
  19. data/app/assets/stylesheets/{scss → pico/scss}/layout/_document.scss +18 -15
  20. data/app/assets/stylesheets/{scss → pico/scss}/layout/_grid.scss +0 -0
  21. data/app/assets/stylesheets/{scss → pico/scss}/layout/_scroller.scss +0 -0
  22. data/app/assets/stylesheets/{scss → pico/scss}/layout/_section.scss +0 -0
  23. data/app/assets/stylesheets/{scss → pico/scss}/layout/_sectioning.scss +3 -2
  24. data/app/assets/stylesheets/{scss → pico/scss}/themes/default/_colors.scss +0 -0
  25. data/app/assets/stylesheets/{scss → pico/scss}/themes/default/_dark.scss +21 -4
  26. data/app/assets/stylesheets/{scss → pico/scss}/themes/default/_light.scss +21 -4
  27. data/app/assets/stylesheets/{scss → pico/scss}/themes/default/_styles.scss +6 -0
  28. data/app/assets/stylesheets/{scss → pico/scss}/themes/default.scss +0 -0
  29. data/app/assets/stylesheets/{scss → pico/scss}/utilities/_accessibility.scss +1 -3
  30. data/app/assets/stylesheets/{scss → pico/scss}/utilities/_loading.scss +1 -1
  31. data/app/assets/stylesheets/{scss → pico/scss}/utilities/_reduce-motion.scss +2 -4
  32. data/app/assets/stylesheets/{scss → pico/scss}/utilities/_tooltip.scss +1 -1
  33. data/app/assets/stylesheets/pico.scss +28 -28
  34. data/app/assets/stylesheets/pico.slim.scss +17 -17
  35. data/lib/pico/version.rb +1 -1
  36. metadata +33 -32
  37. data/app/assets/stylesheets/scss/components/_nav.scss +0 -73
@@ -4,7 +4,7 @@
4
4
 
5
5
  // Reboot based on :
6
6
  // - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
7
- // - sanitize.css v12.0.1 | CC0 1.0 Universal | github.com/csstools/sanitize.css
7
+ // - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
8
8
  // ––––––––––––––––––––
9
9
 
10
10
  // Add the correct font weight in Chrome, Edge, and Safari
@@ -28,23 +28,6 @@ sup {
28
28
  top: -0.5em;
29
29
  }
30
30
 
31
- // Remove the margin on nested lists in Chrome, Edge, IE, and Safari
32
- dl dl,
33
- dl ol,
34
- dl ul,
35
- ol dl,
36
- ul dl {
37
- margin: 0;
38
- }
39
-
40
- // Remove the margin on nested lists in Edge 18- and IE
41
- ol ol,
42
- ol ul,
43
- ul ol,
44
- ul ul {
45
- margin: 0;
46
- }
47
-
48
31
  // Pico
49
32
  // ––––––––––––––––––––
50
33
 
@@ -68,7 +51,8 @@ ul {
68
51
 
69
52
  // Links
70
53
  // 1. Remove the gray background on active links in IE 10
71
- a {
54
+ a,
55
+ [role="link"] {
72
56
  --color: var(--primary);
73
57
  --background-color: transparent;
74
58
  outline: none;
@@ -81,9 +65,7 @@ a {
81
65
  text-decoration var(--transition), box-shadow var(--transition);
82
66
  }
83
67
 
84
- &:hover,
85
- &:active,
86
- &:focus {
68
+ &:is([aria-current], :hover, :active, :focus) {
87
69
  --color: var(--primary-hover);
88
70
  --text-decoration: underline;
89
71
  }
@@ -97,9 +79,7 @@ a {
97
79
  &.secondary {
98
80
  --color: var(--secondary);
99
81
 
100
- &:hover,
101
- &:active,
102
- &:focus {
82
+ &:is([aria-current], :hover, :active, :focus) {
103
83
  --color: var(--secondary-hover);
104
84
  }
105
85
 
@@ -112,9 +92,7 @@ a {
112
92
  &.contrast {
113
93
  --color: var(--contrast);
114
94
 
115
- &:hover,
116
- &:active,
117
- &:focus {
95
+ &:is([aria-current], :hover, :active, :focus) {
118
96
  --color: var(--contrast-hover);
119
97
  }
120
98
 
@@ -160,22 +138,8 @@ h6 {
160
138
  }
161
139
 
162
140
  // Margin-top for headings after a typography block
163
- address,
164
- blockquote,
165
- dl,
166
- figure,
167
- form,
168
- ol,
169
- p,
170
- pre,
171
- table,
172
- ul {
173
- & ~ h1,
174
- & ~ h2,
175
- & ~ h3,
176
- & ~ h4,
177
- & ~ h5,
178
- & ~ h6 {
141
+ :where(address, blockquote, dl, figure, form, ol, p, pre, table, ul) {
142
+ ~ :is(h1, h2, h3, h4, h5, h6) {
179
143
  margin-top: var(--typography-spacing-vertical);
180
144
  }
181
145
  }
@@ -227,8 +191,7 @@ small {
227
191
  }
228
192
 
229
193
  // Lists
230
- ul,
231
- ol {
194
+ :where(dl, ol, ul) {
232
195
  padding-right: 0;
233
196
  padding-left: var(--spacing);
234
197
  padding-inline-start: var(--spacing);
@@ -239,6 +202,15 @@ ol {
239
202
  }
240
203
  }
241
204
 
205
+ // Margin-top for nested lists
206
+ // 1. Remove the margin on nested lists in Chrome, Edge, IE, and Safari
207
+ :where(dl, ol, ul) {
208
+ :is(dl, ol, ul) {
209
+ margin: 0; // 1
210
+ margin-top: calc(var(--typography-spacing-vertical) * 0.25);
211
+ }
212
+ }
213
+
242
214
  ul li {
243
215
  list-style: square;
244
216
  }
@@ -5,14 +5,16 @@
5
5
 
6
6
  // Reboot based on :
7
7
  // - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
8
- // - sanitize.css v12.0.1 | CC0 1.0 Universal | github.com/csstools/sanitize.css
8
+ // - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
9
9
  // ––––––––––––––––––––
10
10
 
11
- // Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`
11
+ // 1. Add border box sizing in all browsers (opinionated)
12
+ // 2. Backgrounds do not repeat by default (opinionated)
12
13
  *,
13
14
  *::before,
14
15
  *::after {
15
16
  box-sizing: border-box; // 1
17
+ background-repeat: no-repeat; // 2
16
18
  }
17
19
 
18
20
  // 1. Add text decoration inheritance in all browsers (opinionated)
@@ -23,23 +25,24 @@
23
25
  vertical-align: inherit; // 2
24
26
  }
25
27
 
26
- // 1. Correct the line height in all browsers
27
- // 2. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS
28
- // 3. Change the default tap highlight to be completely transparent in iOS
29
- // 4. Use the default cursor in all browsers (opinionated)
30
- // 5. Use a 4-space tab width in all browsers (opinionated)
31
- // 6. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS
32
- html {
33
- -webkit-text-size-adjust: 100%; // 2
34
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0); // 3
35
- -ms-text-size-adjust: 100%; // 6
28
+ // 1. Use the default cursor in all browsers (opinionated)
29
+ // 2. Change the line height in all browsers (opinionated)
30
+ // 3. Breaks words to prevent overflow in all browsers (opinionated)
31
+ // 4. Use a 4-space tab width in all browsers (opinionated)
32
+ // 5. Remove the grey highlight on links in iOS (opinionated)
33
+ // 6. Prevent adjustments of font size after orientation changes in iOS
34
+ :where(:root) {
35
+ -webkit-tap-highlight-color: transparent; // 5
36
+ -webkit-text-size-adjust: 100%; // 6
37
+ text-size-adjust: 100%; // 6
36
38
  text-rendering: optimizeLegibility;
37
39
  background-color: var(--background-color);
38
40
  color: var(--color);
39
41
  font-weight: var(--font-weight);
40
42
  font-size: var(--font-size);
41
- line-height: var(--line-height); // 1
43
+ line-height: var(--line-height); // 2
42
44
  font-family: var(--font-family);
43
- cursor: default; // 4
44
- tab-size: 4; // 5
45
+ overflow-wrap: break-word; // 3
46
+ cursor: default; // 1
47
+ tab-size: 4; // 4
45
48
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  // Reboot based on :
7
7
  // - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
8
- // - sanitize.css v12.0.1 | CC0 1.0 Universal | github.com/csstools/sanitize.css
8
+ // - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
9
9
  // ––––––––––––––––––––
10
10
 
11
11
  // Render the `main` element consistently in IE
@@ -16,9 +16,10 @@ main {
16
16
  // Pico
17
17
  // ––––––––––––––––––––
18
18
 
19
+ // 1. Remove the margin in all browsers (opinionated)
19
20
  body {
20
21
  width: 100%;
21
- margin: 0;
22
+ margin: 0; // 1
22
23
 
23
24
  > header,
24
25
  > main,
@@ -105,13 +105,28 @@
105
105
  --accordion-open-summary-color: var(--muted-color);
106
106
 
107
107
  // Card (<article>)
108
+ $box-shadow-elevation: 1rem;
109
+ $box-shadow-blur-strengh: 6rem;
110
+ $box-shadow-opacity: 0.06;
108
111
  --card-background-color: #{mix($black, $grey-900, 25%)};
109
- --card-border-color: #{mix($black, $grey-900, 37.5%)};
110
- --card-box-shadow: 0 0.125rem 1rem #{rgba($black, 0.06)},
111
- 0 0.125rem 2rem #{rgba($black, 0.12)},
112
- 0 0 0 0.0625rem #{rgba($black, 0.036)};
112
+ --card-border-color: var(--card-background-color);
113
+ --card-box-shadow:
114
+ #{($box-shadow-elevation * 0.5 * 0.029)} #{($box-shadow-elevation * 0.029)} #{($box-shadow-blur-strengh * 0.029)} #{rgba($black, ($box-shadow-opacity * 0.283))},
115
+ #{($box-shadow-elevation * 0.5 * 0.067)} #{($box-shadow-elevation * 0.067)} #{($box-shadow-blur-strengh * 0.067)} #{rgba($black, ($box-shadow-opacity * 0.4))},
116
+ #{($box-shadow-elevation * 0.5 * 0.125)} #{($box-shadow-elevation * 0.125)} #{($box-shadow-blur-strengh * 0.125)} #{rgba($black, ($box-shadow-opacity * 0.5))},
117
+ #{($box-shadow-elevation * 0.5 * 0.225)} #{($box-shadow-elevation * 0.225)} #{($box-shadow-blur-strengh * 0.225)} #{rgba($black, ($box-shadow-opacity * 0.6))},
118
+ #{($box-shadow-elevation * 0.5 * 0.417)} #{($box-shadow-elevation * 0.417)} #{($box-shadow-blur-strengh * 0.417)} #{rgba($black, ($box-shadow-opacity * 0.717))},
119
+ #{($box-shadow-elevation * 0.5)} #{$box-shadow-elevation} #{$box-shadow-blur-strengh} #{rgba($black, $box-shadow-opacity)},
120
+ 0 0 0 0.0625rem #{rgba($black, ($box-shadow-opacity * 0.25) )};
113
121
  --card-sectionning-background-color: #{mix($black, $grey-900, 12.5%)};
114
122
 
123
+ // Dropdown (<details role="list">)
124
+ --dropdown-background-color: #{$grey-900};
125
+ --dropdown-border-color: #{mix($grey-900, $grey-800)};
126
+ --dropdown-box-shadow: var(--card-box-shadow);
127
+ --dropdown-color: var(--color);
128
+ --dropdown-hover-background-color: #{rgba(mix($grey-900, $grey-800), 0.75)};
129
+
115
130
  // Modal (<dialog>)
116
131
  --modal-overlay-background-color: #{rgba(mix($grey-900, $grey-800), 0.9)};
117
132
 
@@ -129,6 +144,8 @@
129
144
  // Icons
130
145
  --icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
131
146
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($grey-300, .999)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
147
+ --icon-chevron-button: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($white, .999)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
148
+ --icon-chevron-button-inverse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($black, .999)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
132
149
  --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($grey-500, .999)}' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
133
150
  --icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($grey-300, .999)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
134
151
  --icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($red-900, .999)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
@@ -105,12 +105,27 @@
105
105
  --accordion-open-summary-color: var(--muted-color);
106
106
 
107
107
  // Card (<article>)
108
+ $box-shadow-elevation: 1rem;
109
+ $box-shadow-blur-strengh: 6rem;
110
+ $box-shadow-opacity: 0.06;
108
111
  --card-background-color: var(--background-color);
109
112
  --card-border-color: var(--muted-border-color);
110
- --card-box-shadow: 0 0.125rem 1rem #{rgba($grey-900, 0.04)},
111
- 0 0.125rem 2rem #{rgba($grey-900, 0.08)},
112
- 0 0 0 0.0625rem #{rgba($grey-900, 0.024)};
113
- --card-sectionning-background-color: #{mix($grey-50, $white, 25%)};
113
+ --card-box-shadow:
114
+ #{($box-shadow-elevation * 0.5 * 0.029)} #{($box-shadow-elevation * 0.029)} #{($box-shadow-blur-strengh * 0.029)} #{rgba($grey-900, ($box-shadow-opacity * 0.283))},
115
+ #{($box-shadow-elevation * 0.5 * 0.067)} #{($box-shadow-elevation * 0.067)} #{($box-shadow-blur-strengh * 0.067)} #{rgba($grey-900, ($box-shadow-opacity * 0.4))},
116
+ #{($box-shadow-elevation * 0.5 * 0.125)} #{($box-shadow-elevation * 0.125)} #{($box-shadow-blur-strengh * 0.125)} #{rgba($grey-900, ($box-shadow-opacity * 0.5))},
117
+ #{($box-shadow-elevation * 0.5 * 0.225)} #{($box-shadow-elevation * 0.225)} #{($box-shadow-blur-strengh * 0.225)} #{rgba($grey-900, ($box-shadow-opacity * 0.6))},
118
+ #{($box-shadow-elevation * 0.5 * 0.417)} #{($box-shadow-elevation * 0.417)} #{($box-shadow-blur-strengh * 0.417)} #{rgba($grey-900, ($box-shadow-opacity * 0.717))},
119
+ #{($box-shadow-elevation * 0.5)} #{$box-shadow-elevation} #{$box-shadow-blur-strengh} #{rgba($grey-900, $box-shadow-opacity)},
120
+ 0 0 0 0.0625rem #{rgba($grey-900, ($box-shadow-opacity * 0.25) )};
121
+ --card-sectionning-background-color: #{mix($grey-50, $white, 25%)};
122
+
123
+ // Dropdown (<details role="list">)
124
+ --dropdown-background-color: #{mix($grey-50, $white, 25%)};
125
+ --dropdown-border-color: #{mix($grey-100, $grey-50)};
126
+ --dropdown-box-shadow: var(--card-box-shadow);
127
+ --dropdown-color: var(--color);
128
+ --dropdown-hover-background-color: #{$grey-50};
114
129
 
115
130
  // Modal (<dialog>)
116
131
  --modal-overlay-background-color: #{rgba($grey-100, 0.8)};
@@ -129,6 +144,8 @@
129
144
  // Icons
130
145
  --icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
131
146
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($grey-700, .999)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
147
+ --icon-chevron-button: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($white, .999)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
148
+ --icon-chevron-button-inverse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($white, .999)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
132
149
  --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($grey-500, .999)}' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
133
150
  --icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($grey-700, .999)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
134
151
  --icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba($red-800, .999)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
@@ -59,6 +59,12 @@
59
59
  --form-element-spacing-vertical: 0.75rem;
60
60
  --form-element-spacing-horizontal: 1rem;
61
61
 
62
+ // Spacings for nav component
63
+ --nav-element-spacing-vertical: 1rem;
64
+ --nav-element-spacing-horizontal: 0.5rem;
65
+ --nav-link-spacing-vertical: 0.5rem;
66
+ --nav-link-spacing-horizontal: 0.5rem;
67
+
62
68
  // Font weight for form labels & fieldsets legend
63
69
  --form-label-font-weight: var(--font-weight);
64
70
 
@@ -2,10 +2,9 @@
2
2
  * Accessibility & User interaction
3
3
  */
4
4
 
5
-
6
5
  // Based on :
7
6
  // - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
8
- // - sanitize.css v12.0.1 | CC0 1.0 Universal | github.com/csstools/sanitize.css
7
+ // - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
9
8
  // ––––––––––––––––––––
10
9
 
11
10
  // Accessibility
@@ -45,7 +44,6 @@ textarea,
45
44
  -ms-touch-action: manipulation;
46
45
  }
47
46
 
48
-
49
47
  // Pico
50
48
  // ––––––––––––––––––––
51
49
 
@@ -18,7 +18,7 @@
18
18
  border: 0.1875em solid currentColor;
19
19
  border-radius: 1em;
20
20
  border-right-color: transparent;
21
- content: '';
21
+ content: "";
22
22
  vertical-align: text-bottom;
23
23
  vertical-align: -.125em; // Visual alignment
24
24
  animation: spinner 0.75s linear infinite;
@@ -1,12 +1,10 @@
1
1
  @if $enable-transitions and $enable-important {
2
-
3
- /**
2
+ /**
4
3
  * Reduce Motion Features
5
4
  */
6
5
 
7
-
8
6
  // Based on :
9
- // - sanitize.css v12.0.1 | CC0 1.0 Universal | github.com/csstools/sanitize.css
7
+ // - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
10
8
  // ––––––––––––––––––––
11
9
 
12
10
  // 1. Remove animations when motion is reduced (opinionated)
@@ -44,7 +44,7 @@
44
44
  border-left: .3rem solid transparent;
45
45
  border-radius: 0;
46
46
  background-color: transparent;
47
- content: '';
47
+ content: "";
48
48
  color: var(--tooltip-background-color);
49
49
  }
50
50
 
@@ -1,42 +1,42 @@
1
1
  /*!
2
- * Pico.css v1.4.4 (https://picocss.com)
3
- * Copyright 2019-2021 - Licensed under MIT
2
+ * Pico.css v1.5.3 (https://picocss.com)
3
+ * Copyright 2019-2022 - Licensed under MIT
4
4
  */
5
5
 
6
6
  // Config
7
- @import "scss/variables";
7
+ @import "pico/scss/variables";
8
8
 
9
9
  // Theming
10
- @import "scss/themes/default";
10
+ @import "pico/scss/themes/default";
11
11
 
12
12
  // Layout
13
- @import "scss/layout/document"; // html
14
- @import "scss/layout/sectioning"; // body, header, main, footer
15
- @import "scss/layout/container"; // .container, .container-fluid
16
- @import "scss/layout/section"; // section
17
- @import "scss/layout/grid"; // .grid
18
- @import "scss/layout/scroller"; // figure
13
+ @import "pico/scss/layout/document"; // html
14
+ @import "pico/scss/layout/sectioning"; // body, header, main, footer
15
+ @import "pico/scss/layout/container"; // .container, .container-fluid
16
+ @import "pico/scss/layout/section"; // section
17
+ @import "pico/scss/layout/grid"; // .grid
18
+ @import "pico/scss/layout/scroller"; // figure
19
19
 
20
20
  // Content
21
- @import "scss/content/typography"; // a, headings, p, ul, blockquote, ...
22
- @import "scss/content/embedded"; // audio, canvas, iframe, img, svg, video
23
- @import "scss/content/button"; // button, a[role=button], type=button, type=submit ...
24
- @import "scss/content/form"; // input, select, textarea, label, fieldset, legend
25
- @import "scss/content/form-checkbox-radio"; // type=checkbox, type=radio, role=switch
26
- @import "scss/content/form-alt-input-types"; // type=color, type=date, type=file, type=search, ...
27
- @import "scss/content/table"; // table, tr, td, ...
28
- @import "scss/content/code"; // pre, code, ...
29
- @import "scss/content/miscs"; // hr, template, [hidden], dialog, canvas
21
+ @import "pico/scss/content/typography"; // a, headings, p, ul, blockquote, ...
22
+ @import "pico/scss/content/embedded"; // audio, canvas, iframe, img, svg, video
23
+ @import "pico/scss/content/button"; // button, a[role=button], type=button, type=submit ...
24
+ @import "pico/scss/content/form"; // input, select, textarea, label, fieldset, legend
25
+ @import "pico/scss/content/form-checkbox-radio"; // type=checkbox, type=radio, role=switch
26
+ @import "pico/scss/content/form-alt-input-types"; // type=color, type=date, type=file, type=search, ...
27
+ @import "pico/scss/content/table"; // table, tr, td, ...
28
+ @import "pico/scss/content/code"; // pre, code, ...
29
+ @import "pico/scss/content/miscs"; // hr, template, [hidden], dialog, canvas
30
30
 
31
31
  // Components
32
- @import "scss/components/accordion"; // details, summary
33
- @import "scss/components/card"; // article
34
- @import "scss/components/modal"; // dialog
35
- @import "scss/components/nav"; // nav
36
- @import "scss/components/progress"; // progress
32
+ @import "pico/scss/components/accordion"; // details, summary
33
+ @import "pico/scss/components/card"; // article
34
+ @import "pico/scss/components/modal"; // dialog
35
+ @import "pico/scss/components/nav"; // nav
36
+ @import "pico/scss/components/progress"; // progress
37
37
 
38
38
  // Utilities
39
- @import "scss/utilities/loading"; // aria-busy=true
40
- @import "scss/utilities/tooltip"; // data-tooltip
41
- @import "scss/utilities/accessibility"; // -ms-touch-action, aria-*
42
- @import "scss/utilities/reduce-motion"; // prefers-reduced-motion
39
+ @import "pico/scss/utilities/loading"; // aria-busy=true
40
+ @import "pico/scss/utilities/tooltip"; // data-tooltip
41
+ @import "pico/scss/utilities/accessibility"; // -ms-touch-action, aria-*
42
+ @import "pico/scss/utilities/reduce-motion"; // prefers-reduced-motion
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Pico.css v1.4.4 (https://picocss.com)
3
- * Copyright 2019-2021 - Licensed under MIT
2
+ * Pico.css v1.5.3 (https://picocss.com)
3
+ * Copyright 2019-2022 - Licensed under MIT
4
4
  *
5
5
  * Slim version example
6
6
  * You can export only the modules you need
@@ -22,26 +22,26 @@ $enable-important: false;
22
22
  // --------------------
23
23
 
24
24
  // Config
25
- @import "scss/variables";
25
+ @import "pico/scss/variables";
26
26
 
27
27
  // Theming
28
- @import "scss/themes/default";
28
+ @import "pico/scss/themes/default";
29
29
 
30
30
  // Layout
31
- @import "scss/layout/document"; // html
32
- @import "scss/layout/sectioning"; // body, header, main, footer
33
- @import "scss/layout/container"; // .container, .container-fluid
34
- @import "scss/layout/section"; // section
35
- @import "scss/layout/grid"; // .grid
36
- @import "scss/layout/scroller"; // figure
31
+ @import "pico/scss/layout/document"; // html
32
+ @import "pico/scss/layout/sectioning"; // body, header, main, footer
33
+ @import "pico/scss/layout/container"; // .container, .container-fluid
34
+ @import "pico/scss/layout/section"; // section
35
+ @import "pico/scss/layout/grid"; // .grid
36
+ @import "pico/scss/layout/scroller"; // figure
37
37
 
38
38
  // Content
39
- @import "scss/content/typography"; // a, headings, p, ul, blockquote, ...
40
- @import "scss/content/embedded"; // audio, canvas, iframe, img, svg, video
41
- @import "scss/content/button"; // button, a[role=button], type=button, type=submit ...
42
- @import "scss/content/form"; // input, select, textarea, label, fieldset, legend
43
- @import "scss/content/table"; // table, tr, td, ...
39
+ @import "pico/scss/content/typography"; // a, headings, p, ul, blockquote, ...
40
+ @import "pico/scss/content/embedded"; // audio, canvas, iframe, img, svg, video
41
+ @import "pico/scss/content/button"; // button, a[role=button], type=button, type=submit ...
42
+ @import "pico/scss/content/form"; // input, select, textarea, label, fieldset, legend
43
+ @import "pico/scss/content/table"; // table, tr, td, ...
44
44
 
45
45
  // Utilities
46
- @import "scss/utilities/accessibility"; // -ms-touch-action, aria-*
47
- @import "scss/utilities/reduce-motion"; // prefers-reduced-motion
46
+ @import "pico/scss/utilities/accessibility"; // -ms-touch-action, aria-*
47
+ @import "pico/scss/utilities/reduce-motion"; // prefers-reduced-motion
data/lib/pico/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module PicoRails
2
- VERSION = "1.4.4"
2
+ VERSION = "1.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pico-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - xzgyb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-24 00:00:00.000000000 Z
11
+ date: 2022-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sassc
@@ -36,36 +36,37 @@ files:
36
36
  - app/assets/stylesheets/pico.fluid.classless.scss
37
37
  - app/assets/stylesheets/pico.scss
38
38
  - app/assets/stylesheets/pico.slim.scss
39
- - app/assets/stylesheets/scss/_variables.scss
40
- - app/assets/stylesheets/scss/components/_accordion.scss
41
- - app/assets/stylesheets/scss/components/_card.scss
42
- - app/assets/stylesheets/scss/components/_modal.scss
43
- - app/assets/stylesheets/scss/components/_nav.scss
44
- - app/assets/stylesheets/scss/components/_progress.scss
45
- - app/assets/stylesheets/scss/content/_button.scss
46
- - app/assets/stylesheets/scss/content/_code.scss
47
- - app/assets/stylesheets/scss/content/_embedded.scss
48
- - app/assets/stylesheets/scss/content/_form-alt-input-types.scss
49
- - app/assets/stylesheets/scss/content/_form-checkbox-radio.scss
50
- - app/assets/stylesheets/scss/content/_form.scss
51
- - app/assets/stylesheets/scss/content/_miscs.scss
52
- - app/assets/stylesheets/scss/content/_table.scss
53
- - app/assets/stylesheets/scss/content/_typography.scss
54
- - app/assets/stylesheets/scss/layout/_container.scss
55
- - app/assets/stylesheets/scss/layout/_document.scss
56
- - app/assets/stylesheets/scss/layout/_grid.scss
57
- - app/assets/stylesheets/scss/layout/_scroller.scss
58
- - app/assets/stylesheets/scss/layout/_section.scss
59
- - app/assets/stylesheets/scss/layout/_sectioning.scss
60
- - app/assets/stylesheets/scss/themes/default.scss
61
- - app/assets/stylesheets/scss/themes/default/_colors.scss
62
- - app/assets/stylesheets/scss/themes/default/_dark.scss
63
- - app/assets/stylesheets/scss/themes/default/_light.scss
64
- - app/assets/stylesheets/scss/themes/default/_styles.scss
65
- - app/assets/stylesheets/scss/utilities/_accessibility.scss
66
- - app/assets/stylesheets/scss/utilities/_loading.scss
67
- - app/assets/stylesheets/scss/utilities/_reduce-motion.scss
68
- - app/assets/stylesheets/scss/utilities/_tooltip.scss
39
+ - app/assets/stylesheets/pico/scss/_variables.scss
40
+ - app/assets/stylesheets/pico/scss/components/_accordion.scss
41
+ - app/assets/stylesheets/pico/scss/components/_card.scss
42
+ - app/assets/stylesheets/pico/scss/components/_dropdown.scss
43
+ - app/assets/stylesheets/pico/scss/components/_modal.scss
44
+ - app/assets/stylesheets/pico/scss/components/_nav.scss
45
+ - app/assets/stylesheets/pico/scss/components/_progress.scss
46
+ - app/assets/stylesheets/pico/scss/content/_button.scss
47
+ - app/assets/stylesheets/pico/scss/content/_code.scss
48
+ - app/assets/stylesheets/pico/scss/content/_embedded.scss
49
+ - app/assets/stylesheets/pico/scss/content/_form-alt-input-types.scss
50
+ - app/assets/stylesheets/pico/scss/content/_form-checkbox-radio.scss
51
+ - app/assets/stylesheets/pico/scss/content/_form.scss
52
+ - app/assets/stylesheets/pico/scss/content/_miscs.scss
53
+ - app/assets/stylesheets/pico/scss/content/_table.scss
54
+ - app/assets/stylesheets/pico/scss/content/_typography.scss
55
+ - app/assets/stylesheets/pico/scss/layout/_container.scss
56
+ - app/assets/stylesheets/pico/scss/layout/_document.scss
57
+ - app/assets/stylesheets/pico/scss/layout/_grid.scss
58
+ - app/assets/stylesheets/pico/scss/layout/_scroller.scss
59
+ - app/assets/stylesheets/pico/scss/layout/_section.scss
60
+ - app/assets/stylesheets/pico/scss/layout/_sectioning.scss
61
+ - app/assets/stylesheets/pico/scss/themes/default.scss
62
+ - app/assets/stylesheets/pico/scss/themes/default/_colors.scss
63
+ - app/assets/stylesheets/pico/scss/themes/default/_dark.scss
64
+ - app/assets/stylesheets/pico/scss/themes/default/_light.scss
65
+ - app/assets/stylesheets/pico/scss/themes/default/_styles.scss
66
+ - app/assets/stylesheets/pico/scss/utilities/_accessibility.scss
67
+ - app/assets/stylesheets/pico/scss/utilities/_loading.scss
68
+ - app/assets/stylesheets/pico/scss/utilities/_reduce-motion.scss
69
+ - app/assets/stylesheets/pico/scss/utilities/_tooltip.scss
69
70
  - lib/pico-rails.rb
70
71
  - lib/pico/engine.rb
71
72
  - lib/pico/version.rb