sass-zero 1.4.1 → 1.5.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: 43fba23c8010823b3278387a11cfc2db218044e4cc61cf6219beeaaf060a6940
4
- data.tar.gz: 03e0c3a1c4fbc02616943b771985c7ed27c56fcceaa80fdd83d1e970304477b7
3
+ metadata.gz: d4f28268eed433b49ce2faf6cbf821f4b3639d8e0073bb43a5f95219bda912ef
4
+ data.tar.gz: 1899f21bad13617b8f7becd4e662de8dec0980b6cf3cdb3b3c9299b182a069f7
5
5
  SHA512:
6
- metadata.gz: a586b446208ff8e53a49b7672d5b4200307e62bbd535de22f4ea420c76232f8b958f17f177c923fa616cfd1d4319528951cbc936bced755e414c35668f5d4884
7
- data.tar.gz: cbaadf48fc3f0d2a2dd1044c58d57da8304faf0662c435aa9cc356ecaf9776b6086455fee9b486c1d779d8466eb25a44249614d8e856a74be2b698fd6f2e5e42
6
+ metadata.gz: 47b92d5ca3f467dc9fba7b92c443e6c3a77b0d1a8a01748b430c2bc5f8ba3e9eb686640fe0f86a47f41845b09060c4c138fbc48b3f54ebde275a36712a9d365e
7
+ data.tar.gz: d1ac0b359e459df0dccef494a7c17ee56ddc99ccebc577235f7b901d27585f5acc6b8a3f6911b34c4b822ebd24b262fab038f0778db3824ee030fed7910afb1c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sass-zero (1.4.1)
4
+ sass-zero (1.5.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -65,12 +65,19 @@ This can be useful for dealing with similar components, and positioning.
65
65
 
66
66
  ## Breadboard
67
67
 
68
- These default styles ensure that even without custom styling, the content is usable and understandable, if your development process is mostly reproducing Figma designs, you might don't need it.
68
+ These default styles ensure that even without custom styling, the content is usable and understandable, also you can use it as the baseline.
69
69
 
70
70
  - [Breadboard](app/assets/stylesheets/sass-zero/breadboard.scss)
71
- - [Screenshot](screenshot.png)
72
71
  - [Example](example.html)
73
72
 
73
+ ### Desktop
74
+
75
+ ![Screenshot Desktop](screenshot-desktop.png)
76
+
77
+ ### Dark mode
78
+
79
+ ![Screenshot Dark](screenshot-dark.png)
80
+
74
81
  ## Using variables
75
82
 
76
83
  Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Variables](app/assets/stylesheets/sass-zero/_variables.scss):
@@ -28,7 +28,7 @@
28
28
  */
29
29
 
30
30
  html {
31
- line-height: 1.5; /* 1 */
31
+ line-height: 1.4; /* 1 */
32
32
  -webkit-text-size-adjust: 100%; /* 2 */
33
33
  -moz-tab-size: 4; /* 3 */
34
34
  tab-size: 4; /* 3 */
@@ -11,18 +11,18 @@ $radius-secondary: $rounded;
11
11
  --color-bg--surface: #{$white};
12
12
  --color-bg--highlight: #{$gray-200};
13
13
  --color-border: #{$gray-300};
14
- --color-primary: #{$gray-800};
15
- --color-text: #{$gray-900};
14
+ --color-primary: #{$gray-600};
15
+ --color-text: #{$gray-700};
16
16
  }
17
17
 
18
18
  @media (prefers-color-scheme: dark) {
19
19
  :root {
20
- --color-bg--main: #{$gray-900};
21
- --color-bg--surface: #{$gray-800};
22
- --color-bg--highlight: #{$gray-700};
23
- --color-border: #{$gray-600};
24
- --color-primary: #{$white};
25
- --color-text: #{$white};
20
+ --color-bg--main: #{$blue-gray-900};
21
+ --color-bg--surface: #{$blue-gray-800};
22
+ --color-bg--highlight: #{$blue-gray-700};
23
+ --color-border: #{$blue-gray-300};
24
+ --color-primary: #{$blue-gray-200};
25
+ --color-text: #{$blue-gray-200};
26
26
  }
27
27
  }
28
28
 
@@ -45,7 +45,7 @@ html {
45
45
  border-radius: $radius-primary;
46
46
  border-width: $border;
47
47
  display: inline-block;
48
- padding: $size-1 $size-3;
48
+ padding: $size-1-5 $size-3;
49
49
  font-weight: $font-medium;
50
50
  cursor: pointer;
51
51
 
@@ -113,7 +113,7 @@ html {
113
113
  }
114
114
 
115
115
  [type="checkbox"], [type="radio"] {
116
- transform: scale(1.35); margin: $size-1;
116
+ transform: scale(1.36); margin: $size-1;
117
117
  }
118
118
 
119
119
  blockquote {
@@ -146,20 +146,20 @@ kbd {
146
146
  background-color: var(--color-primary);
147
147
  border-radius: $rounded;
148
148
  font-size: $text-sm;
149
- padding: $size-1;
149
+ padding: $size-0-5;
150
150
  color: var(--color-bg--main);
151
151
  }
152
152
 
153
153
  mark {
154
154
  background-color: var(--color-bg--highlight);
155
155
  border-radius: $rounded;
156
- padding: $size-1;
156
+ padding: $size-0-5;
157
157
  color: inherit;
158
158
  }
159
159
 
160
160
  hr {
161
161
  border-color: var(--color-primary);
162
- margin: $size-5 $size-0;
162
+ margin: $size-8 $size-0;
163
163
  }
164
164
 
165
165
  menu, ul, ol {
@@ -220,7 +220,7 @@ table {
220
220
 
221
221
  td, th {
222
222
  border-bottom-width: $border;
223
- padding: $size-2-5;
223
+ padding: $size-3;
224
224
  text-align: left;
225
225
  }
226
226
 
@@ -233,21 +233,21 @@ h1, .hdg--xx-large {
233
233
  }
234
234
 
235
235
  h2, .hdg--x-large {
236
- font-size: $text-3xl;
236
+ font-size: $text-2xl;
237
237
  }
238
238
 
239
239
  h3, .hdg--large {
240
- font-size: $text-2xl;
240
+ font-size: $text-lg;
241
241
  }
242
242
 
243
243
  h4, .hdg--medium {
244
- font-size: $text-xl;
244
+ font-size: $text-base;
245
245
  }
246
246
 
247
247
  h5, .hdg--small {
248
- font-size: $text-lg;
248
+ font-size: $text-sm;
249
249
  }
250
250
 
251
251
  h6, .hdg--x-small {
252
- font-size: $text-base;
252
+ font-size: $text-xs;
253
253
  }
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  .flex--gap {
33
- gap: $size-3;
33
+ gap: $size-2-5;
34
34
  }
35
35
 
36
36
  .i-flex {
@@ -72,7 +72,7 @@
72
72
 
73
73
  .flex--column\@md {
74
74
  flex-direction: column;
75
- }
75
+ }
76
76
 
77
77
  .flex--centered\@md {
78
78
  justify-content: center;
@@ -42,6 +42,6 @@ $size-map: (
42
42
  "xs": $size-1,
43
43
  "sm": $size-2-5,
44
44
  "md": $size-5,
45
- "lg": $size-9,
45
+ "lg": $size-8,
46
46
  "xl": $size-10
47
47
  );
@@ -40,7 +40,7 @@ $font-black: 900;
40
40
  $leading-none: 1;
41
41
  $leading-tight: 1.25;
42
42
  $leading-snug: 1.375;
43
- $leading-normal: 1.5;
43
+ $leading-normal: 1.4;
44
44
  $leading-relaxed: 1.625;
45
45
  $leading-loose: 2;
46
46
  $leading-3: .75rem;
data/example.html CHANGED
@@ -1,7 +1,7 @@
1
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 1rem (16px) over 1.5 line height (24px)</p>
4
+ <p>The base type is 1rem (16px) over 1.4 line height</p>
5
5
  <a href="#" class="txt--underline">Anchor</a>
6
6
  <em>Emphasis</em>
7
7
  <small>Small</small>
@@ -104,7 +104,7 @@
104
104
  </div>
105
105
  </fieldset>
106
106
 
107
- <input type="submit" value="Send" class="btn btn--primary">
107
+ <input type="submit" value="Save changes" class="btn btn--primary">
108
108
  </form>
109
109
 
110
110
  <table>
@@ -145,7 +145,7 @@
145
145
  </ol>
146
146
 
147
147
  <dl>
148
- <dt>Description lists</dt>
148
+ <dt class="push-xs--bottom">Description lists</dt>
149
149
  <dd>A description list is perfect for defining terms.</dd>
150
150
  <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem.</dd>
151
151
  </dl>
@@ -1,5 +1,5 @@
1
1
  module Sass
2
2
  module Zero
3
- VERSION = "1.4.1"
3
+ VERSION = "1.5.1"
4
4
  end
5
5
  end
Binary file
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.1
4
+ version: 1.5.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-14 00:00:00.000000000 Z
11
+ date: 2023-07-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -63,7 +63,8 @@ files:
63
63
  - lib/sass_zero.rb
64
64
  - lib/sass_zero/version.rb
65
65
  - sass-zero.gemspec
66
- - screenshot.png
66
+ - screenshot-dark.png
67
+ - screenshot-desktop.png
67
68
  homepage: http://github.com/lazaronixon/sass-zero
68
69
  licenses:
69
70
  - MIT
data/screenshot.png DELETED
Binary file