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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +9 -2
- data/app/assets/stylesheets/sass-zero/base.scss +1 -1
- data/app/assets/stylesheets/sass-zero/breadboard.scss +19 -19
- data/app/assets/stylesheets/sass-zero/utilities/_flex.scss +2 -2
- data/app/assets/stylesheets/sass-zero/variables/_sizing.scss +1 -1
- data/app/assets/stylesheets/sass-zero/variables/_typography.scss +1 -1
- data/example.html +3 -3
- data/lib/sass_zero/version.rb +1 -1
- data/screenshot-dark.png +0 -0
- data/screenshot-desktop.png +0 -0
- metadata +4 -3
- data/screenshot.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4f28268eed433b49ce2faf6cbf821f4b3639d8e0073bb43a5f95219bda912ef
|
4
|
+
data.tar.gz: 1899f21bad13617b8f7becd4e662de8dec0980b6cf3cdb3b3c9299b182a069f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47b92d5ca3f467dc9fba7b92c443e6c3a77b0d1a8a01748b430c2bc5f8ba3e9eb686640fe0f86a47f41845b09060c4c138fbc48b3f54ebde275a36712a9d365e
|
7
|
+
data.tar.gz: d1ac0b359e459df0dccef494a7c17ee56ddc99ccebc577235f7b901d27585f5acc6b8a3f6911b34c4b822ebd24b262fab038f0778db3824ee030fed7910afb1c
|
data/Gemfile.lock
CHANGED
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,
|
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):
|
@@ -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-
|
15
|
-
--color-text: #{$gray-
|
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-
|
24
|
-
--color-primary: #{$
|
25
|
-
--color-text: #{$
|
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.
|
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-
|
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-
|
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-
|
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-
|
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-
|
236
|
+
font-size: $text-2xl;
|
237
237
|
}
|
238
238
|
|
239
239
|
h3, .hdg--large {
|
240
|
-
font-size: $text-
|
240
|
+
font-size: $text-lg;
|
241
241
|
}
|
242
242
|
|
243
243
|
h4, .hdg--medium {
|
244
|
-
font-size: $text-
|
244
|
+
font-size: $text-base;
|
245
245
|
}
|
246
246
|
|
247
247
|
h5, .hdg--small {
|
248
|
-
font-size: $text-
|
248
|
+
font-size: $text-sm;
|
249
249
|
}
|
250
250
|
|
251
251
|
h6, .hdg--x-small {
|
252
|
-
font-size: $text-
|
252
|
+
font-size: $text-xs;
|
253
253
|
}
|
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.
|
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="
|
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>
|
data/lib/sass_zero/version.rb
CHANGED
data/screenshot-dark.png
ADDED
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
|
+
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-
|
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
|