sass-zero 0.0.55 → 1.0.0

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: 87bd9449a35b1aaf5635f44d910ee5993e650750413f46f77a2759e19d823cbe
4
- data.tar.gz: 10bd5bb77d0cb2e23d2c1823c007f3c14888ef0fc35636e55fe567732cd9e24b
3
+ metadata.gz: d1132f3e4eec921fea2db2c5e8405be3724d83a3e4cd32c2a54fe2d2fd46814e
4
+ data.tar.gz: 158760a4003250e1c6c8cb36aa0855dbcaef83e80591a202d83eb64c372370e2
5
5
  SHA512:
6
- metadata.gz: 21067c7675af269ca3e554ac823f9df8adfc44887b9280839a9b21e1d0deda985fb9e1da3e190268b97c292a5be4867d3d3952675157787b75aed1149fc1e20a
7
- data.tar.gz: 6ef7f228182ba5ade57acb7fdaa37427f6ddec3467682addc489c4067f5481b2f940b2e1933b2a3057bd5d74847dfdf5ea2466de3a2c4ee8ded001c31efe08f8
6
+ metadata.gz: 39e0679ebf21130f74f7331b43876a222a0c988598ba7de4098a01960398d2a56cceec4c846f90fd18747a71cb51028953dc76aadbd566879cf0c1a6bc456441
7
+ data.tar.gz: 1c7d3c75eac5095c3c70128748ca642ac98b002b0395723a5c2315f97f7c86d973046691eaba950dc53f3678163ecf3add06b6d5659159e7ae287b38926011fa
data/Example.html CHANGED
@@ -5,6 +5,8 @@
5
5
  <small>Small</small>
6
6
  <strong>Strong</strong>
7
7
  <u>Underline</u>
8
+ <kbd>CTRL+C</kbd>
9
+ <mark>Highlighted text</mark>
8
10
  <h1>Heading</h1>
9
11
  <h2>Heading</h2>
10
12
  <h3>Heading</h3>
@@ -40,30 +42,30 @@
40
42
 
41
43
  <div class="push-md--bottom">
42
44
  <div>
43
- <input type="checkbox" id="option1" name="option1" value="1" class="checkbox" checked>
45
+ <input type="checkbox" id="option1" name="option1" value="1" checked>
44
46
  <label for="option1" class="u-display-ib">Option 1</label>
45
47
  </div>
46
48
  <div>
47
- <input type="checkbox" id="option2" name="option2" value="2" class="checkbox">
49
+ <input type="checkbox" id="option2" name="option2" value="2">
48
50
  <label for="option2" class="u-display-ib">Option 2</label>
49
51
  </div>
50
52
  <div>
51
- <input type="checkbox" id="option3" name="option3" value="3" class="checkbox">
53
+ <input type="checkbox" id="option3" name="option3" value="3">
52
54
  <label for="option3" class="u-display-ib">Option 3</label>
53
55
  </div>
54
56
  </div>
55
57
 
56
58
  <div class="push-md--bottom">
57
59
  <div>
58
- <input type="radio" id="radio1" name="radio" value="1" class="radio" checked>
60
+ <input type="radio" id="radio1" name="radio" value="1" checked>
59
61
  <label for="radio1" class="u-display-ib">Option 1</label>
60
62
  </div>
61
63
  <div>
62
- <input type="radio" id="radio2" name="radio" value="2" class="radio">
64
+ <input type="radio" id="radio2" name="radio" value="2">
63
65
  <label for="radio2" class="u-display-ib">Option 2</label>
64
66
  </div>
65
67
  <div>
66
- <input type="radio" id="radio3" name="radio" value="3" class="radio">
68
+ <input type="radio" id="radio3" name="radio" value="3">
67
69
  <label for="radio3" class="u-display-ib">Option 3</label>
68
70
  </div>
69
71
  </div>
@@ -97,19 +99,27 @@
97
99
  </tbody>
98
100
  </table>
99
101
 
102
+ <details>
103
+ <summary class="txt--bold">Some details</summary>
104
+ <p>More info about the details.</p>
105
+ </details>
106
+
100
107
  <blockquote>
101
- <p class="flush"><em>Yeah!! Milligram is amazing.</em></p>
108
+ <p class="flush--bottom">Friends don’t spy; true friendship is about privacy, too.</p>
109
+ <cite>– Stephen King</cite>
102
110
  </blockquote>
103
111
 
104
112
  <pre><code>.milligram {
105
113
  color: #9b4dca;
106
114
  }</code></pre>
107
115
 
108
- <code>
109
- .milligram {
110
- color: #9b4dca;
111
- }
112
- </code>
116
+ <div class="push-md--bottom">
117
+ <code>
118
+ .milligram {
119
+ color: #9b4dca;
120
+ }
121
+ </code>
122
+ </div>
113
123
 
114
124
  <hr>
115
125
 
data/README.md CHANGED
@@ -70,7 +70,7 @@ Developers should be able to produce your own design, [Refactoring UI](https://r
70
70
  Add this to your application's Gemfile:
71
71
 
72
72
  ```ruby
73
- gem 'sass-zero'
73
+ gem "sass-zero"
74
74
  ```
75
75
 
76
76
  ## Usage
@@ -91,11 +91,11 @@ Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Vari
91
91
  .block {
92
92
  color: $red-300;
93
93
 
94
- &__elem {
94
+ &__element {
95
95
  color: $red-400;
96
96
  }
97
97
 
98
- &--mod {
98
+ &--modifier {
99
99
  color: $red-500;
100
100
  }
101
101
  }
@@ -7,22 +7,30 @@ $radius-input: $rounded;
7
7
  $radius-button: $rounded;
8
8
 
9
9
  :root {
10
- --color-bg--main: #{$white};
11
- --color-bg--surface: #{$gray-100};
12
- --color-primary: #{$gray-900};
13
- --color-text: #{$gray-900};
14
- --color-focus-ring: #{rgba($gray-900, $opacity-50)};
15
-
16
- --image-bg-select: url('data:image/svg+xml,<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6 8l4 4 4-4"/></svg>');
17
- --image-checked-checkbox: url('data:image/svg+xml,<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z"/></svg>');
18
- --image-checked-radio: url('data:image/svg+xml,<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/></svg>');
10
+ --color-bg--main: #{$white};
11
+ --color-bg--surface: #{$gray-100};
12
+ --color-bg--highlight: #{$gray-200};
13
+ --color-primary: #{$gray-900};
14
+ --color-text: #{$gray-900};
15
+ --color-focus-ring: #{rgba($black, $opacity-60)};
16
+ }
17
+
18
+ @media (prefers-color-scheme: dark) {
19
+ :root {
20
+ --color-bg--main: #{$gray-900};
21
+ --color-bg--surface: #{$gray-800};
22
+ --color-bg--highlight: #{$gray-700};
23
+ --color-primary: #{$white};
24
+ --color-text: #{$white};
25
+ --color-focus-ring: #{rgba($white, $opacity-60)};
26
+ }
19
27
  }
20
28
 
21
29
  html {
30
+ accent-color: var(--color-primary);
22
31
  background: var(--color-bg--main);
23
32
  color: var(--color-text);
24
33
  font-family: $font-family;
25
- font-size: 16px;
26
34
  }
27
35
 
28
36
  .btn {
@@ -62,20 +70,23 @@ html {
62
70
  }
63
71
 
64
72
  .input {
73
+ -webkit-appearance: none;
74
+
65
75
  resize: none;
66
76
  appearance: none;
67
- background-color: $transparent;
77
+ background-color: var(--color-bg--main);
68
78
  border-radius: $radius-input;
69
79
  border-width: $border;
70
80
  padding: $size-2 $size-3;
71
81
  width: $w-full;
72
82
 
73
83
  &--select {
74
- background-image: var(--image-bg-select);
75
- background-position: right $size-2 center;
84
+ background-image:
85
+ linear-gradient(45deg, transparent 49%, var(--color-text) 51%),
86
+ linear-gradient(135deg, var(--color-text) 51%, transparent 49%);
87
+ background-position: calc(100% - 20px), calc(100% - 15px);
76
88
  background-repeat: no-repeat;
77
- background-size: auto $size-5;
78
- padding-right: $size-8;
89
+ background-size: 5px 5px, 5px 5px;
79
90
  }
80
91
 
81
92
  &:focus {
@@ -84,32 +95,12 @@ html {
84
95
  }
85
96
  }
86
97
 
87
- .checkbox {
88
- border-radius: $rounded;
89
- @include input-selection(var(--color-primary));
90
-
91
- &:checked {
92
- background-image: var(--image-checked-checkbox);
93
- @include checked;
94
- }
98
+ input[type="checkbox"], input[type="radio"] {
99
+ transform: scale(1.2, 1.2);
100
+ margin: $size-1;
95
101
 
96
102
  &:focus {
97
- box-shadow: ring($color: var(--color-focus-ring));
98
- @include outline-none;
99
- }
100
- }
101
-
102
- .radio {
103
- border-radius: $rounded-full;
104
- @include input-selection(var(--color-primary));
105
-
106
- &:checked {
107
- background-image: var(--image-checked-radio);
108
- @include checked;
109
- }
110
-
111
- &:focus {
112
- box-shadow: ring($color: var(--color-focus-ring));
103
+ box-shadow: ring($width: 2px, $color: var(--color-focus-ring));
113
104
  @include outline-none;
114
105
  }
115
106
  }
@@ -119,12 +110,15 @@ blockquote {
119
110
  padding: $size-3 $size-4;
120
111
  }
121
112
 
113
+ cite {
114
+ font-size: $text-sm;
115
+ }
116
+
122
117
  code {
123
118
  background-color: var(--color-bg--surface);
124
119
  border-radius: $rounded;
125
120
  font-size: $text-sm;
126
- margin: $size-0 $size-1;
127
- padding: $size-1 $size-2;
121
+ padding: $size-1;
128
122
  white-space: nowrap;
129
123
  }
130
124
 
@@ -141,6 +135,21 @@ pre {
141
135
  }
142
136
  }
143
137
 
138
+ kbd {
139
+ background-color: var(--color-primary);
140
+ border-radius: $rounded;
141
+ font-size: $text-sm;
142
+ padding: $size-1;
143
+ color: var(--color-bg--main);
144
+ }
145
+
146
+ mark {
147
+ background-color: var(--color-bg--highlight);
148
+ border-radius: $rounded;
149
+ padding: $size-1;
150
+ color: inherit;
151
+ }
152
+
144
153
  hr {
145
154
  margin: $size-6 $size-0;
146
155
  }
@@ -173,10 +182,20 @@ fieldset, .input {
173
182
  margin-bottom: $size-6;
174
183
  }
175
184
 
176
- blockquote, figure, p, pre, table, ul, ol, dl {
185
+ table, details, blockquote, p, pre, ul, ol, dl {
177
186
  margin-bottom: $size-6;
178
187
  }
179
188
 
189
+ details {
190
+ padding: $size-2 $size-3;
191
+ background-color: var(--color-bg--surface);
192
+ border-left-width: $border-4;
193
+ }
194
+
195
+ summary {
196
+ cursor: pointer;
197
+ }
198
+
180
199
  table {
181
200
  width: $w-full;
182
201
  }
@@ -19,22 +19,6 @@
19
19
  overflow: hidden;
20
20
  }
21
21
 
22
- @mixin input-selection($color) {
23
- appearance: none;
24
- border-width: $border;
25
- color: $color;
26
- margin-bottom: -0.1rem;
27
- height: $size-4;
28
- width: $size-4;
29
- }
30
-
31
- @mixin checked {
32
- border-color: transparent;
33
- background-color: currentColor;
34
- background-position: center;
35
- background-repeat: no-repeat;
36
- }
37
-
38
22
  @mixin outline-none {
39
23
  outline: 2px solid transparent;
40
24
  outline-offset: 2px;
@@ -1,5 +1,5 @@
1
1
  module Sass
2
2
  module Zero
3
- VERSION = "0.0.55"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-zero",
3
- "version": "0.0.55",
3
+ "version": "1.0.0",
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: 0.0.55
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - lazaronixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
11
+ date: 2022-01-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: