sass-zero 1.0.4 → 1.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 639d2237bb436847c5d444782c9711f2d7a1266c9298dab7b00cdd4858bb86ce
4
- data.tar.gz: dc62528f5f7360aa95de46fe05d1e1e57262295128b22dd3609468a7cf02c9d0
3
+ metadata.gz: 41f5961f2e4121bcc2bf748c61346efa6936d44f5111d51262ecaf45b174d17f
4
+ data.tar.gz: 759ced164e039dfdfb0f6291a5ec05aa31afce6af6ae1c4fef8b48dc159d6ddd
5
5
  SHA512:
6
- metadata.gz: fbb3e1d5d494a8f74d0e5d6a9c8746325204468aad8b55359e0b4481ab0519b5c385697902736f07240e68a797c356c53e7a0cfa3436ca402ba2782ca3abc950
7
- data.tar.gz: efee3e53a12963984a7d437663e90cd98409bd3bdfd68c0179e13bd54a30b1f98af02f8a44d16eb0af5933f76d2b003c6a9f0ef49954170aa2f877f81a246900
6
+ metadata.gz: 265d6df80f8ceb1aa0527427d833a09f9605cabb668bc8fb851f435201f671db52fafc1e5e35ad02b9ab69185f06cb605e28ce7026a33e8d4c21eaed6fa71021
7
+ data.tar.gz: 71a935136ad83536ee5f4f782f27fb70456183221c5f6386572a0f61cbff4f11dc29068da86824447179261f3f010b32ec81b9f0609172f7b9ccc2347547517d
data/Example.html CHANGED
@@ -18,62 +18,78 @@
18
18
  <button class="btn btn--secondary">Button Secondary</button>
19
19
  <button class="btn btn--tertiary">Button Tertiary</button>
20
20
 
21
- <a href="#" class="btn btn--primary">Link Button</a>
21
+ <a href="#" class="btn btn--secondary">Link Button</a>
22
+ <input type="submit" value="Submit Button" class="btn btn--secondary" />
22
23
 
23
- <input type="submit" value="Submit Button" class="btn btn--primary" />
24
+ <button class="btn btn--secondary"><i class="bx bx-plus"></i> Icon Button</button>
25
+ <button class="btn btn--secondary btn--small">Small Button</button>
24
26
 
25
27
  <hr>
26
28
 
27
- <form class="push-lg--bottom">
28
- <div class="push-md--bottom">
29
- <label for="nameField" class="u-display-b txt--bold">Name</label>
30
- <input type="text" placeholder="CJ Patoilo" id="nameField" class="input">
31
-
32
- <label for="ageRangeField" class="u-display-b txt--bold">Age Range</label>
33
- <select id="ageRangeField" class="input input--select">
34
- <option value="0-13">0-13</option>
35
- <option value="14-17">14-17</option>
36
- <option value="18-23">18-23</option>
37
- <option value="24+">24+</option>
38
- </select>
39
-
40
- <label for="commentField" class="u-display-b txt--bold">Comment</label>
41
- <textarea placeholder="Hi CJ …" id="commentField" rows="3" class="input"></textarea>
42
-
43
- <div class="push-md--bottom">
44
- <div>
45
- <input type="checkbox" id="option1" name="option1" value="1" checked>
46
- <label for="option1" class="u-display-ib">Option 1</label>
47
- </div>
48
- <div>
49
- <input type="checkbox" id="option2" name="option2" value="2">
50
- <label for="option2" class="u-display-ib">Option 2</label>
51
- </div>
52
- <div>
53
- <input type="checkbox" id="option3" name="option3" value="3">
54
- <label for="option3" class="u-display-ib">Option 3</label>
55
- </div>
29
+ <form class="push-md--bottom">
30
+ <label for="nameField" class="u-display-b txt--bold">Name</label>
31
+ <input type="text" placeholder="CJ Patoilo" id="nameField" class="input">
32
+
33
+ <label for="iceCreamField" class="u-display-b txt--bold">Choose a flavor:</label>
34
+ <input list="iceCreamFlavors" id="iceCreamField" class="input" />
35
+ <datalist id="iceCreamFlavors">
36
+ <option value="Chocolate">
37
+ <option value="Coconut">
38
+ <option value="Mint">
39
+ <option value="Strawberry">
40
+ <option value="Vanilla">
41
+ </datalist>
42
+
43
+ <label for="ageRangeField" class="u-display-b txt--bold">Age Range</label>
44
+ <select id="ageRangeField" class="input input--select">
45
+ <option value="0-13">0-13</option>
46
+ <option value="14-17">14-17</option>
47
+ <option value="18-23">18-23</option>
48
+ <option value="24+">24+</option>
49
+ </select>
50
+
51
+ <label for="commentField" class="u-display-b txt--bold">Comment</label>
52
+ <textarea placeholder="Hi CJ …" id="commentField" rows="3" class="input"></textarea>
53
+
54
+ <fieldset>
55
+ <legend>Choose your options</legend>
56
+
57
+ <div>
58
+ <input type="checkbox" id="option1" name="option1" value="1" checked>
59
+ <label for="option1" class="u-display-ib">Option 1</label>
56
60
  </div>
61
+ <div>
62
+ <input type="checkbox" id="option2" name="option2" value="2">
63
+ <label for="option2" class="u-display-ib">Option 2</label>
64
+ </div>
65
+ <div>
66
+ <input type="checkbox" id="option3" name="option3" value="3">
67
+ <label for="option3" class="u-display-ib">Option 3</label>
68
+ </div>
69
+ </fieldset>
70
+
71
+ <fieldset>
72
+ <legend>Choose your option</legend>
57
73
 
58
- <div class="push-md--bottom">
59
- <div>
60
- <input type="radio" id="radio1" name="radio" value="1" checked>
61
- <label for="radio1" class="u-display-ib">Option 1</label>
62
- </div>
63
- <div>
64
- <input type="radio" id="radio2" name="radio" value="2">
65
- <label for="radio2" class="u-display-ib">Option 2</label>
66
- </div>
67
- <div>
68
- <input type="radio" id="radio3" name="radio" value="3">
69
- <label for="radio3" class="u-display-ib">Option 3</label>
70
- </div>
74
+ <div>
75
+ <input type="radio" id="radio1" name="radio" value="1" checked>
76
+ <label for="radio1" class="u-display-ib">Option 1</label>
71
77
  </div>
72
- </div>
78
+ <div>
79
+ <input type="radio" id="radio2" name="radio" value="2">
80
+ <label for="radio2" class="u-display-ib">Option 2</label>
81
+ </div>
82
+ <div>
83
+ <input type="radio" id="radio3" name="radio" value="3">
84
+ <label for="radio3" class="u-display-ib">Option 3</label>
85
+ </div>
86
+ </fieldset>
73
87
 
74
88
  <input type="submit" value="Send" class="btn btn--primary">
75
89
  </form>
76
90
 
91
+ <hr>
92
+
77
93
  <table>
78
94
  <thead>
79
95
  <tr>
@@ -100,13 +116,13 @@
100
116
  </table>
101
117
 
102
118
  <details>
103
- <summary class="txt--bold">Some details</summary>
119
+ <summary>Some details</summary>
104
120
  <p>More info about the details.</p>
105
121
  </details>
106
122
 
107
123
  <blockquote>
108
124
  <p class="flush--bottom">Friends don’t spy; true friendship is about privacy, too.</p>
109
- <cite>– Stephen King</cite>
125
+ <cite class="txt--sm">– Stephen King</cite>
110
126
  </blockquote>
111
127
 
112
128
  <pre><code>.milligram {
@@ -121,6 +137,20 @@
121
137
  </code>
122
138
  </div>
123
139
 
140
+ <div class="push-md--bottom">
141
+ <label for="progres" class="u-display-b txt--bold">Progress</label>
142
+ <progress id="progres" max="100" value="70">70%</progress>
143
+ </div>
144
+
145
+ <div class="push-3xl--bottom">
146
+ <dialog open>
147
+ User was successfully created.
148
+ <form method="dialog" class="u-display-ib push-md--left txt--lg">
149
+ <button type="submit" value="dismiss">&times;</button>
150
+ </form>
151
+ </dialog>
152
+ </div>
153
+
124
154
  <hr>
125
155
 
126
156
  <ul class="list--unindented ">
@@ -136,7 +166,7 @@
136
166
  </ol>
137
167
 
138
168
  <dl>
139
- <dt class="txt--bold">Description lists</dt>
169
+ <dt>Description lists</dt>
140
170
  <dd>A description list is perfect for defining terms.</dd>
141
171
  <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem.</dd>
142
172
  </dl>
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  SASS-ZERO is a css framework that brings concepts from [tailwindcss](https://tailwindcss.com) and [milligram](https://milligram.io) but with ideas from [BEM](http://getbem.com/naming), [Refactoring UI](https://refactoringui.com/book) and [Shape UP](https://basecamp.com/shapeup).
4
4
 
5
- ![screenshot](https://nixo-etc.s3-sa-east-1.amazonaws.com/sass-zero-screenshot.png)
5
+ ![screenshot](https://nixo-etc.s3-sa-east-1.amazonaws.com/sass-zero-screenshot-2.png)
6
6
 
7
7
  ### Milligram
8
8
 
@@ -10,7 +10,7 @@ SASS-ZERO is a css framework that brings concepts from [tailwindcss](https://tai
10
10
 
11
11
  SASS-ZERO comes with a basic grayscale theme that help you to bring your ideas to life, questions about font, color, spacing and layout can be resolved after the raw affordances.
12
12
 
13
- ### Tailwindcss
13
+ ### Tailwind CSS
14
14
 
15
15
  "Instead of hand-picking values from a limitless pool any time you need to make a decision, start with a smaller set of options." - [Refactoring UI](https://refactoringui.com/book).
16
16
 
@@ -111,11 +111,12 @@ Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Vari
111
111
  ## References
112
112
 
113
113
  - [SASS](https://sass-lang.com)
114
- - [Tailwindcss](https://tailwindcss.com)
114
+ - [Tailwind CSS](https://tailwindcss.com)
115
115
  - [Milligram](https://milligram.io)
116
116
  - [BEM](http://getbem.com/naming)
117
117
  - [Refactoring UI](https://refactoringui.com/book)
118
118
  - [Shape UP](https://basecamp.com/shapeup)
119
+ - [Boxicons](https://boxicons.com)
119
120
 
120
121
  ## License
121
122
 
@@ -3,8 +3,8 @@
3
3
 
4
4
  $font-family: $font-sans;
5
5
 
6
- $radius-input: $rounded;
7
- $radius-button: $rounded;
6
+ $radius-input: $rounded;
7
+ $radius-default: $rounded;
8
8
 
9
9
  :root {
10
10
  --color-bg--main: #{$white};
@@ -12,7 +12,7 @@ $radius-button: $rounded;
12
12
  --color-bg--highlight: #{$gray-200};
13
13
  --color-primary: #{$gray-900};
14
14
  --color-text: #{$gray-900};
15
- --color-focus-ring: #{rgba($black, $opacity-60)};
15
+ --color-focus-ring: #{rgba($black, $opacity-50)};
16
16
  }
17
17
 
18
18
  @media (prefers-color-scheme: dark) {
@@ -22,7 +22,7 @@ $radius-button: $rounded;
22
22
  --color-bg--highlight: #{$gray-700};
23
23
  --color-primary: #{$white};
24
24
  --color-text: #{$white};
25
- --color-focus-ring: #{rgba($white, $opacity-60)};
25
+ --color-focus-ring: #{rgba($white, $opacity-50)};
26
26
  }
27
27
  }
28
28
 
@@ -34,7 +34,7 @@ html {
34
34
  }
35
35
 
36
36
  .btn {
37
- border-radius: $radius-button;
37
+ border-radius: $radius-default;
38
38
  border-width: $border;
39
39
  display: inline-block;
40
40
  font-weight: $font-bold;
@@ -50,7 +50,6 @@ html {
50
50
  &--secondary {
51
51
  background-color: var(--color-bg--main);
52
52
  border-color: var(--color-primary);
53
- color: var(--color-primary);
54
53
  }
55
54
 
56
55
  &--tertiary {
@@ -58,6 +57,15 @@ html {
58
57
  border-color: $transparent;
59
58
  }
60
59
 
60
+ &--small {
61
+ font-size: $text-sm;
62
+ }
63
+
64
+ & > i {
65
+ vertical-align: sub;
66
+ font-size: 1.25em;
67
+ }
68
+
61
69
  &:focus {
62
70
  box-shadow: ring($color: var(--color-focus-ring));
63
71
  @include outline-none;
@@ -93,6 +101,11 @@ html {
93
101
  box-shadow: ring($color: var(--color-focus-ring));
94
102
  @include outline-none;
95
103
  }
104
+
105
+ &:disabled {
106
+ pointer-events: none;
107
+ opacity: $opacity-50;
108
+ }
96
109
  }
97
110
 
98
111
  input[type="checkbox"], input[type="radio"] {
@@ -100,7 +113,7 @@ input[type="checkbox"], input[type="radio"] {
100
113
  margin: $size-1;
101
114
 
102
115
  &:focus {
103
- box-shadow: ring($width: 2px, $color: var(--color-focus-ring));
116
+ box-shadow: ring($color: var(--color-focus-ring));
104
117
  @include outline-none;
105
118
  }
106
119
  }
@@ -166,6 +179,10 @@ ol {
166
179
  list-style: decimal outside;
167
180
  }
168
181
 
182
+ legend, dt {
183
+ font-weight: $font-bold;
184
+ }
185
+
169
186
  label, legend, dt {
170
187
  margin-bottom: $size-1;
171
188
  }
@@ -178,25 +195,43 @@ fieldset, .input {
178
195
  margin-bottom: $size-6;
179
196
  }
180
197
 
181
- table, details, blockquote, figure, p, pre, ul, ol, dl {
198
+ table, progress, details, blockquote, figure, pre, ul, ol, dl, p {
182
199
  margin-bottom: $size-6;
183
200
  }
184
201
 
185
- details {
186
- padding: $size-2 $size-3;
202
+ dialog {
187
203
  background-color: var(--color-bg--surface);
188
- border-left-width: $border-4;
204
+ border-radius: $radius-default;
205
+ padding: $size-3 $size-4;
206
+ box-shadow: $shadow-md;
207
+ color: inherit;
189
208
  }
190
209
 
191
- details[open] > summary {
192
- margin-bottom: $size-1;
210
+ dialog::backdrop {
211
+ background-color: rgba($gray-500, $opacity-75);
212
+ }
213
+
214
+ progress {
215
+ background-color: var(--color-bg--surface);
216
+ }
217
+
218
+ @include progress-bar {
219
+ background-color: var(--color-primary);
220
+ }
221
+
222
+ details {
223
+ background-color: var(--color-bg--surface);
224
+ border-left-width: $border-4;
225
+ padding: $size-2 $size-3;
193
226
  }
194
227
 
195
228
  summary {
229
+ padding: $size-1 $size-0;
230
+ font-weight: $font-bold;
196
231
  cursor: pointer;
197
232
  }
198
233
 
199
- table {
234
+ table, progress {
200
235
  width: $w-full;
201
236
  }
202
237
 
@@ -234,7 +269,3 @@ h5, .hdg--lg {
234
269
  h6, .hdg--base {
235
270
  font-size: $text-base;
236
271
  }
237
-
238
- figcaption, cite {
239
- font-size: $text-sm;
240
- }
@@ -34,6 +34,16 @@
34
34
  outline-offset: 2px;
35
35
  }
36
36
 
37
+ @mixin progress-bar {
38
+ ::-webkit-progress-value {
39
+ @content;
40
+ }
41
+
42
+ ::-moz-progress-bar {
43
+ @content;
44
+ }
45
+ }
46
+
37
47
  @mixin make-container($padding-x: $size-4) {
38
48
  width: 100%;
39
49
  padding-right: $padding-x;
@@ -2,6 +2,10 @@
2
2
  @import "sass-zero/variables/effects";
3
3
  @import "sass-zero/mixins";
4
4
 
5
+ .debug * {
6
+ outline: 1px red solid !important;
7
+ }
8
+
5
9
  .u-display-n {
6
10
  display: none !important;
7
11
  }
@@ -38,7 +38,7 @@ $opacity-100: 1;
38
38
  // Function for creating outline rings with box-shadows.
39
39
  // box-shadow: ring($width: 4px);
40
40
  // *******************************************************************
41
- @function ring($width: 3px, $color: rgba($blue-500, 0.5), $offset-width: 0px, $offset-color: $white, $inset: false) {
41
+ @function ring($width: 2px, $color: rgba($blue-500, 0.5), $offset-width: 0px, $offset-color: $white, $inset: false) {
42
42
  @if $inset {
43
43
  $ring-offset-shadow: inset 0 0 0 $offset-width $offset-color;
44
44
  $ring-shadow: inset 0 0 0 ($width + $offset-width) $color;
@@ -1,5 +1,5 @@
1
1
  module Sass
2
2
  module Zero
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.8"
4
4
  end
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-zero",
3
- "version": "1.0.4",
3
+ "version": "1.0.8",
4
4
  "description": "A CSS framework for rapid UI development based on tailwindcss, miligram and BEM.",
5
5
  "homepage": "https://github.com/lazaronixon/sass-zero",
6
6
  "repository": "lazaronixon/sass-zero",
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.0.4
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - lazaronixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-04 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: