sass-zero 1.3.3 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/stylesheets/sass-zero/_mixins.scss +3 -16
- data/app/assets/stylesheets/sass-zero/breadboard.scss +28 -36
- data/app/assets/stylesheets/sass-zero/utilities/_text.scss +0 -20
- data/app/assets/stylesheets/sass-zero/variables/_sizing.scss +40 -36
- data/example.html +44 -48
- data/lib/sass_zero/version.rb +1 -1
- data/screenshot.png +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43fba23c8010823b3278387a11cfc2db218044e4cc61cf6219beeaaf060a6940
|
4
|
+
data.tar.gz: 03e0c3a1c4fbc02616943b771985c7ed27c56fcceaa80fdd83d1e970304477b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a586b446208ff8e53a49b7672d5b4200307e62bbd535de22f4ea420c76232f8b958f17f177c923fa616cfd1d4319528951cbc936bced755e414c35668f5d4884
|
7
|
+
data.tar.gz: cbaadf48fc3f0d2a2dd1044c58d57da8304faf0662c435aa9cc356ecaf9776b6086455fee9b486c1d779d8466eb25a44249614d8e856a74be2b698fd6f2e5e42
|
data/Gemfile.lock
CHANGED
@@ -4,12 +4,9 @@
|
|
4
4
|
// General
|
5
5
|
// *******************************************************************
|
6
6
|
|
7
|
-
@mixin make-container($padding
|
8
|
-
width: 100%;
|
9
|
-
padding
|
10
|
-
padding-left: $padding-x;
|
11
|
-
margin-right: auto;
|
12
|
-
margin-left: auto;
|
7
|
+
@mixin make-container($padding: $size-4) {
|
8
|
+
width: 100%; margin: 0 auto;
|
9
|
+
padding: $padding;
|
13
10
|
}
|
14
11
|
|
15
12
|
@mixin ellipsis {
|
@@ -28,16 +25,6 @@
|
|
28
25
|
-moz-osx-font-smoothing: auto;
|
29
26
|
}
|
30
27
|
|
31
|
-
@mixin progress-bar {
|
32
|
-
::-webkit-progress-value {
|
33
|
-
@content;
|
34
|
-
}
|
35
|
-
|
36
|
-
::-moz-progress-bar {
|
37
|
-
@content;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
28
|
// *******************************************************************
|
42
29
|
// Animations
|
43
30
|
// *******************************************************************
|
@@ -37,11 +37,16 @@ html {
|
|
37
37
|
font-family: $font-family;
|
38
38
|
}
|
39
39
|
|
40
|
+
@media (min-width: $breakpoint-md) {
|
41
|
+
html { font-size: $text-xl; }
|
42
|
+
}
|
43
|
+
|
40
44
|
.btn {
|
41
45
|
border-radius: $radius-primary;
|
42
46
|
border-width: $border;
|
43
47
|
display: inline-block;
|
44
|
-
padding: $size-
|
48
|
+
padding: $size-1 $size-3;
|
49
|
+
font-weight: $font-medium;
|
45
50
|
cursor: pointer;
|
46
51
|
|
47
52
|
&--primary {
|
@@ -81,7 +86,7 @@ html {
|
|
81
86
|
background-color: var(--color-bg--surface);
|
82
87
|
border-radius: $radius-secondary;
|
83
88
|
border-width: $border;
|
84
|
-
padding: $size-2
|
89
|
+
padding: $size-2;
|
85
90
|
width: $w-full;
|
86
91
|
|
87
92
|
&--select {
|
@@ -102,19 +107,18 @@ html {
|
|
102
107
|
.dropdown {
|
103
108
|
background-color: var(--color-bg--surface);
|
104
109
|
border-width: $border; border-radius: $radius-primary;
|
105
|
-
padding: $size-
|
106
|
-
box-shadow: $shadow-lg;
|
110
|
+
padding: $size-4;
|
107
111
|
position: absolute;
|
108
112
|
z-index: $z-10;
|
109
113
|
}
|
110
114
|
|
111
115
|
[type="checkbox"], [type="radio"] {
|
112
|
-
transform: scale(1.
|
116
|
+
transform: scale(1.35); margin: $size-1;
|
113
117
|
}
|
114
118
|
|
115
119
|
blockquote {
|
116
120
|
border-left-width: $border-4;
|
117
|
-
padding: $size-
|
121
|
+
padding: $size-2-5;
|
118
122
|
}
|
119
123
|
|
120
124
|
code {
|
@@ -133,7 +137,7 @@ pre {
|
|
133
137
|
> code {
|
134
138
|
border-radius: $rounded-none;
|
135
139
|
display: block;
|
136
|
-
padding: $size-2
|
140
|
+
padding: $size-2-5;
|
137
141
|
white-space: pre;
|
138
142
|
}
|
139
143
|
}
|
@@ -154,7 +158,8 @@ mark {
|
|
154
158
|
}
|
155
159
|
|
156
160
|
hr {
|
157
|
-
|
161
|
+
border-color: var(--color-primary);
|
162
|
+
margin: $size-5 $size-0;
|
158
163
|
}
|
159
164
|
|
160
165
|
menu, ul, ol {
|
@@ -173,26 +178,22 @@ dt {
|
|
173
178
|
font-weight: $font-bold;
|
174
179
|
}
|
175
180
|
|
176
|
-
|
177
|
-
margin-bottom: $size-
|
181
|
+
fieldset, .input {
|
182
|
+
margin-bottom: $size-5;
|
178
183
|
}
|
179
184
|
|
180
185
|
h1, h2, h3, h4, h5, h6, .hdg {
|
181
|
-
margin-bottom: $size-
|
182
|
-
}
|
183
|
-
|
184
|
-
fieldset, .input {
|
185
|
-
margin-bottom: $size-6;
|
186
|
+
margin-bottom: $size-5;
|
186
187
|
}
|
187
188
|
|
188
|
-
table, progress, blockquote,
|
189
|
-
margin-bottom: $size-
|
189
|
+
table, progress, blockquote, pre, menu, ul, ol, dl, p {
|
190
|
+
margin-bottom: $size-5;
|
190
191
|
}
|
191
192
|
|
192
193
|
dialog {
|
193
194
|
background-color: var(--color-bg--surface);
|
194
195
|
border-width: $border; border-radius: $radius-primary;
|
195
|
-
padding: $size-
|
196
|
+
padding: $size-4;
|
196
197
|
box-shadow: $shadow-lg;
|
197
198
|
color: inherit;
|
198
199
|
}
|
@@ -201,14 +202,6 @@ dialog::backdrop {
|
|
201
202
|
background-color: rgba($gray-500, $opacity-75);
|
202
203
|
}
|
203
204
|
|
204
|
-
progress {
|
205
|
-
background-color: var(--color-bg--main);
|
206
|
-
}
|
207
|
-
|
208
|
-
@include progress-bar {
|
209
|
-
background-color: var(--color-primary);
|
210
|
-
}
|
211
|
-
|
212
205
|
details {
|
213
206
|
display: inline-block;
|
214
207
|
}
|
@@ -221,41 +214,40 @@ summary::-webkit-details-marker {
|
|
221
214
|
display: none;
|
222
215
|
}
|
223
216
|
|
224
|
-
table
|
217
|
+
table {
|
225
218
|
width: $w-full;
|
226
219
|
}
|
227
220
|
|
228
221
|
td, th {
|
229
222
|
border-bottom-width: $border;
|
230
|
-
padding: $size-
|
223
|
+
padding: $size-2-5;
|
231
224
|
text-align: left;
|
232
225
|
}
|
233
226
|
|
234
227
|
h1, h2, h3, h4, h5, h6, .hdg {
|
235
|
-
font-weight: $font-bold;
|
236
|
-
line-height: $leading-tight;
|
228
|
+
font-weight: $font-bold; line-height: $leading-none;
|
237
229
|
}
|
238
230
|
|
239
|
-
h1, .hdg--
|
231
|
+
h1, .hdg--xx-large {
|
240
232
|
font-size: $text-4xl;
|
241
233
|
}
|
242
234
|
|
243
|
-
h2, .hdg--
|
235
|
+
h2, .hdg--x-large {
|
244
236
|
font-size: $text-3xl;
|
245
237
|
}
|
246
238
|
|
247
|
-
h3, .hdg--
|
239
|
+
h3, .hdg--large {
|
248
240
|
font-size: $text-2xl;
|
249
241
|
}
|
250
242
|
|
251
|
-
h4, .hdg--
|
243
|
+
h4, .hdg--medium {
|
252
244
|
font-size: $text-xl;
|
253
245
|
}
|
254
246
|
|
255
|
-
h5, .hdg--
|
247
|
+
h5, .hdg--small {
|
256
248
|
font-size: $text-lg;
|
257
249
|
}
|
258
250
|
|
259
|
-
h6, .hdg--
|
251
|
+
h6, .hdg--x-small {
|
260
252
|
font-size: $text-base;
|
261
253
|
}
|
@@ -94,26 +94,6 @@
|
|
94
94
|
font-size: $text-4xl;
|
95
95
|
}
|
96
96
|
|
97
|
-
.txt--5xl {
|
98
|
-
font-size: $text-5xl;
|
99
|
-
}
|
100
|
-
|
101
|
-
.txt--6xl {
|
102
|
-
font-size: $text-6xl;
|
103
|
-
}
|
104
|
-
|
105
|
-
.txt--7xl {
|
106
|
-
font-size: $text-7xl;
|
107
|
-
}
|
108
|
-
|
109
|
-
.txt--8xl {
|
110
|
-
font-size: $text-8xl;
|
111
|
-
}
|
112
|
-
|
113
|
-
.txt--9xl {
|
114
|
-
font-size: $text-9xl;
|
115
|
-
}
|
116
|
-
|
117
97
|
.undecorated {
|
118
98
|
color: inherit;
|
119
99
|
text-decoration: none;
|
@@ -2,42 +2,46 @@
|
|
2
2
|
// Default sizing scale
|
3
3
|
// By default, SASS-ZERO includes a generous and comprehensive numeric sizing scale.
|
4
4
|
// *******************************************************************
|
5
|
-
$size-px:
|
6
|
-
$size-0:
|
7
|
-
$size-
|
8
|
-
$size-
|
9
|
-
$size-
|
10
|
-
$size-
|
11
|
-
$size-5:
|
12
|
-
$size-
|
13
|
-
$size-
|
14
|
-
$size-
|
15
|
-
$size-
|
16
|
-
$size-
|
17
|
-
$size-
|
18
|
-
$size-
|
19
|
-
$size-
|
20
|
-
$size-
|
21
|
-
$size-
|
22
|
-
$size-
|
23
|
-
$size-
|
24
|
-
$size-
|
25
|
-
$size-
|
26
|
-
$size-
|
27
|
-
$size-
|
28
|
-
$size-
|
29
|
-
$size-
|
30
|
-
$size-
|
31
|
-
$size-
|
32
|
-
$size-
|
33
|
-
$size-
|
34
|
-
$size-
|
35
|
-
$size-
|
5
|
+
$size-px: 1px;
|
6
|
+
$size-0: 0;
|
7
|
+
$size-0-5: 0.125rem;
|
8
|
+
$size-1: 0.25rem;
|
9
|
+
$size-1-5: 0.375rem;
|
10
|
+
$size-2: 0.5rem;
|
11
|
+
$size-2-5: 0.625rem;
|
12
|
+
$size-3: 0.75rem;
|
13
|
+
$size-3-5: 0.875rem;
|
14
|
+
$size-4: 1rem;
|
15
|
+
$size-5: 1.25rem;
|
16
|
+
$size-6: 1.5rem;
|
17
|
+
$size-7: 1.75rem;
|
18
|
+
$size-8: 2rem;
|
19
|
+
$size-9: 2.25rem;
|
20
|
+
$size-10: 2.5rem;
|
21
|
+
$size-11: 2.75rem;
|
22
|
+
$size-12: 3rem;
|
23
|
+
$size-14: 3.5rem;
|
24
|
+
$size-16: 4rem;
|
25
|
+
$size-20: 5rem;
|
26
|
+
$size-24: 6rem;
|
27
|
+
$size-28: 7rem;
|
28
|
+
$size-32: 8rem;
|
29
|
+
$size-36: 9rem;
|
30
|
+
$size-40: 10rem;
|
31
|
+
$size-44: 11rem;
|
32
|
+
$size-48: 12rem;
|
33
|
+
$size-52: 13rem;
|
34
|
+
$size-56: 14rem;
|
35
|
+
$size-60: 15rem;
|
36
|
+
$size-64: 16rem;
|
37
|
+
$size-72: 18rem;
|
38
|
+
$size-80: 20rem;
|
39
|
+
$size-96: 24rem;
|
36
40
|
|
37
41
|
$size-map: (
|
38
|
-
"xs":
|
39
|
-
"sm":
|
40
|
-
"md":
|
41
|
-
"lg":
|
42
|
-
"xl":
|
42
|
+
"xs": $size-1,
|
43
|
+
"sm": $size-2-5,
|
44
|
+
"md": $size-5,
|
45
|
+
"lg": $size-9,
|
46
|
+
"xl": $size-10
|
43
47
|
);
|
data/example.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
<main class="container container--lg" style="background
|
1
|
+
<main class="container container--lg" style="background: var(--color-bg--surface);">
|
2
2
|
<div class="push-md--bottom">
|
3
3
|
<div class="push-sm--bottom">
|
4
|
-
<p>The base type is
|
4
|
+
<p>The base type is 1rem (16px) over 1.5 line height (24px)</p>
|
5
5
|
<a href="#" class="txt--underline">Anchor</a>
|
6
6
|
<em>Emphasis</em>
|
7
7
|
<small>Small</small>
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<details class="u-position-context">
|
34
34
|
<summary class="btn btn--secondary">Dropdown Button</summary>
|
35
35
|
<div class="dropdown push-xs--top u-position--right">
|
36
|
-
<ul class="list--
|
36
|
+
<ul class="list--unbulleted u-nowrap flush">
|
37
37
|
<li>Unordered list item 1</li>
|
38
38
|
<li>Unordered list item 2</li>
|
39
39
|
<li>Unordered list item 3</li>
|
@@ -46,10 +46,10 @@
|
|
46
46
|
</div>
|
47
47
|
|
48
48
|
<form class="push-md--bottom">
|
49
|
-
<label for="nameField" class="u-display-b txt--bold">Name</label>
|
50
|
-
<input type="text" placeholder="
|
49
|
+
<label for="nameField" class="u-display-b txt--bold push-xs--bottom">Name</label>
|
50
|
+
<input type="text" placeholder="Lázaro Nixon" id="nameField" class="input">
|
51
51
|
|
52
|
-
<label for="iceCreamField" class="u-display-b txt--bold">Choose a flavor:</label>
|
52
|
+
<label for="iceCreamField" class="u-display-b txt--bold push-xs--bottom">Choose a flavor:</label>
|
53
53
|
<input list="iceCreamFlavors" id="iceCreamField" class="input" />
|
54
54
|
<datalist id="iceCreamFlavors">
|
55
55
|
<option value="Chocolate">
|
@@ -59,7 +59,7 @@
|
|
59
59
|
<option value="Vanilla">
|
60
60
|
</datalist>
|
61
61
|
|
62
|
-
<label for="ageRangeField" class="u-display-b txt--bold">Age Range</label>
|
62
|
+
<label for="ageRangeField" class="u-display-b txt--bold push-xs--bottom">Age Range</label>
|
63
63
|
<select id="ageRangeField" class="input input--select">
|
64
64
|
<option value="0-13">0-13</option>
|
65
65
|
<option value="14-17">14-17</option>
|
@@ -67,47 +67,47 @@
|
|
67
67
|
<option value="24+">24+</option>
|
68
68
|
</select>
|
69
69
|
|
70
|
-
<label for="commentField" class="u-display-b txt--bold">Comment</label>
|
71
|
-
<textarea placeholder="Hi
|
70
|
+
<label for="commentField" class="u-display-b txt--bold push-xs--bottom">Comment</label>
|
71
|
+
<textarea placeholder="Hi Nixon …" id="commentField" rows="3" class="input"></textarea>
|
72
72
|
|
73
73
|
<fieldset>
|
74
|
-
<legend class="txt--bold">Choose your options</legend>
|
74
|
+
<legend class="txt--bold push-xs--bottom">Choose your options</legend>
|
75
75
|
|
76
|
-
<div>
|
76
|
+
<div class="flex flex--align-center push-xs--bottom">
|
77
77
|
<input type="checkbox" id="option1" name="option1" value="1" checked>
|
78
|
-
<label for="option1" class="
|
78
|
+
<label for="option1" class="flush push-xs--left">Option 1</label>
|
79
79
|
</div>
|
80
|
-
<div>
|
80
|
+
<div class="flex flex--align-center push-xs--bottom">
|
81
81
|
<input type="checkbox" id="option2" name="option2" value="2">
|
82
|
-
<label for="option2" class="
|
82
|
+
<label for="option2" class="flush push-xs--left">Option 2</label>
|
83
83
|
</div>
|
84
|
-
<div>
|
84
|
+
<div class="flex flex--align-center">
|
85
85
|
<input type="checkbox" id="option3" name="option3" value="3">
|
86
|
-
<label for="option3" class="
|
86
|
+
<label for="option3" class="flush push-xs--left">Option 3</label>
|
87
87
|
</div>
|
88
88
|
</fieldset>
|
89
89
|
|
90
90
|
<fieldset>
|
91
|
-
<legend class="txt--bold">Choose your option</legend>
|
91
|
+
<legend class="txt--bold push-xs--bottom">Choose your option</legend>
|
92
92
|
|
93
|
-
<div>
|
93
|
+
<div class="flex flex--align-center push-xs--bottom">
|
94
94
|
<input type="radio" id="radio1" name="radio" value="1" checked>
|
95
|
-
<label for="radio1" class="
|
95
|
+
<label for="radio1" class="flush push-xs--left">Option 1</label>
|
96
96
|
</div>
|
97
|
-
<div>
|
97
|
+
<div class="flex flex--align-center push-xs--bottom">
|
98
98
|
<input type="radio" id="radio2" name="radio" value="2">
|
99
|
-
<label for="radio2" class="
|
99
|
+
<label for="radio2" class="flush push-xs--left">Option 2</label>
|
100
100
|
</div>
|
101
|
-
<div>
|
101
|
+
<div class="flex flex--align-center">
|
102
102
|
<input type="radio" id="radio3" name="radio" value="3">
|
103
|
-
<label for="radio3" class="
|
103
|
+
<label for="radio3" class="flush push-xs--left">Option 3</label>
|
104
104
|
</div>
|
105
105
|
</fieldset>
|
106
106
|
|
107
107
|
<input type="submit" value="Send" class="btn btn--primary">
|
108
108
|
</form>
|
109
109
|
|
110
|
-
<table
|
110
|
+
<table>
|
111
111
|
<thead>
|
112
112
|
<tr>
|
113
113
|
<th>Name</th>
|
@@ -132,24 +132,23 @@
|
|
132
132
|
</tbody>
|
133
133
|
</table>
|
134
134
|
|
135
|
-
<
|
136
|
-
<
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
<
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
<
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
</div>
|
135
|
+
<ul class="list--unindented">
|
136
|
+
<li>Unordered list item 1</li>
|
137
|
+
<li>Unordered list item 2</li>
|
138
|
+
<li>Unordered list item 3</li>
|
139
|
+
</ul>
|
140
|
+
|
141
|
+
<ol class="list--unindented">
|
142
|
+
<li>Ordered list item 1</li>
|
143
|
+
<li>Ordered list item 2</li>
|
144
|
+
<li>Ordered list item 3</li>
|
145
|
+
</ol>
|
146
|
+
|
147
|
+
<dl>
|
148
|
+
<dt>Description lists</dt>
|
149
|
+
<dd>A description list is perfect for defining terms.</dd>
|
150
|
+
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem.</dd>
|
151
|
+
</dl>
|
153
152
|
|
154
153
|
<div class="push-md--bottom">
|
155
154
|
<code>.block { color: #9b4dca; }</code>
|
@@ -158,16 +157,13 @@
|
|
158
157
|
<pre><code>.block { color: #9b4dca; }</code></pre>
|
159
158
|
|
160
159
|
<blockquote>
|
161
|
-
<p class="flush
|
160
|
+
<p class="flush">Friends don’t spy; true friendship is about privacy, too.</p>
|
162
161
|
<cite class="txt--sm">– Stephen King</cite>
|
163
162
|
</blockquote>
|
164
163
|
|
165
|
-
<
|
166
|
-
<label for="progress" class="u-display-b txt--bold">Progress</label>
|
167
|
-
<progress id="progress" max="100" value="70">70%</progress>
|
168
|
-
</div>
|
164
|
+
<hr>
|
169
165
|
|
170
|
-
<div style="height:
|
166
|
+
<div style="height: 85px;">
|
171
167
|
<dialog open>
|
172
168
|
<form method="dialog">
|
173
169
|
<span>This is a native dialog with a close button.</span>
|
data/lib/sass_zero/version.rb
CHANGED
data/screenshot.png
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lazaronixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|