sass-zero 1.0.0 → 1.0.4
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/README.md +7 -0
- data/app/assets/stylesheets/sass-zero/base/preflight.scss +9 -0
- data/app/assets/stylesheets/sass-zero/breadboard.scss +10 -6
- data/app/assets/stylesheets/sass-zero/utilities/animation.scss +3 -3
- data/app/assets/stylesheets/sass-zero/utilities/pull.scss +5 -1
- data/app/assets/stylesheets/sass-zero/utilities/push.scss +7 -1
- data/app/assets/stylesheets/sass-zero/variables/border.scss +1 -1
- data/app/assets/stylesheets/sass-zero/variables/effects.scss +10 -10
- data/app/assets/stylesheets/sass-zero/variables/filters.scss +103 -0
- data/app/assets/stylesheets/sass-zero/variables/flex.scss +2 -2
- data/app/assets/stylesheets/sass-zero/variables/grid.scss +6 -6
- data/app/assets/stylesheets/sass-zero/variables/spacing.scss +9 -1
- data/app/assets/stylesheets/sass-zero/variables.scss +1 -0
- data/lib/sass/zero/version.rb +1 -1
- data/package.json +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 639d2237bb436847c5d444782c9711f2d7a1266c9298dab7b00cdd4858bb86ce
|
4
|
+
data.tar.gz: dc62528f5f7360aa95de46fe05d1e1e57262295128b22dd3609468a7cf02c9d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbb3e1d5d494a8f74d0e5d6a9c8746325204468aad8b55359e0b4481ab0519b5c385697902736f07240e68a797c356c53e7a0cfa3436ca402ba2782ca3abc950
|
7
|
+
data.tar.gz: efee3e53a12963984a7d437663e90cd98409bd3bdfd68c0179e13bd54a30b1f98af02f8a44d16eb0af5933f76d2b003c6a9f0ef49954170aa2f877f81a246900
|
data/README.md
CHANGED
@@ -39,6 +39,7 @@ Developers should be able to produce your own design, [Refactoring UI](https://r
|
|
39
39
|
- [Breakpoint](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/breakpoints.scss)
|
40
40
|
- [Colors](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/colors.scss)
|
41
41
|
- [Effects](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/effects.scss)
|
42
|
+
- [Filters](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/filters.scss)
|
42
43
|
- [Flex](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/flex.scss)
|
43
44
|
- [Grid](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/grid.scss)
|
44
45
|
- [Spacing](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/spacing.scss)
|
@@ -101,6 +102,12 @@ Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Vari
|
|
101
102
|
}
|
102
103
|
```
|
103
104
|
|
105
|
+
```html
|
106
|
+
<div class="block block--modifier">
|
107
|
+
<div class="block__element" />
|
108
|
+
</div>
|
109
|
+
```
|
110
|
+
|
104
111
|
## References
|
105
112
|
|
106
113
|
- [SASS](https://sass-lang.com)
|
@@ -260,3 +260,12 @@ video {
|
|
260
260
|
[hidden] {
|
261
261
|
display: none;
|
262
262
|
}
|
263
|
+
|
264
|
+
/**
|
265
|
+
* Unfortunate hack until https://bugs.webkit.org/show_bug.cgi?id=198959 is fixed.
|
266
|
+
* This sucks because users can't change line-height with a utility on date inputs now.
|
267
|
+
* Reference: https://github.com/twbs/bootstrap/pull/31993
|
268
|
+
*/
|
269
|
+
::-webkit-date-and-time-value {
|
270
|
+
min-height: 1.5em;
|
271
|
+
}
|
@@ -38,7 +38,7 @@ html {
|
|
38
38
|
border-width: $border;
|
39
39
|
display: inline-block;
|
40
40
|
font-weight: $font-bold;
|
41
|
-
padding: $size-2 $size-
|
41
|
+
padding: $size-2 $size-3;
|
42
42
|
cursor: pointer;
|
43
43
|
|
44
44
|
&--primary {
|
@@ -110,10 +110,6 @@ blockquote {
|
|
110
110
|
padding: $size-3 $size-4;
|
111
111
|
}
|
112
112
|
|
113
|
-
cite {
|
114
|
-
font-size: $text-sm;
|
115
|
-
}
|
116
|
-
|
117
113
|
code {
|
118
114
|
background-color: var(--color-bg--surface);
|
119
115
|
border-radius: $rounded;
|
@@ -182,7 +178,7 @@ fieldset, .input {
|
|
182
178
|
margin-bottom: $size-6;
|
183
179
|
}
|
184
180
|
|
185
|
-
table, details, blockquote, p, pre, ul, ol, dl {
|
181
|
+
table, details, blockquote, figure, p, pre, ul, ol, dl {
|
186
182
|
margin-bottom: $size-6;
|
187
183
|
}
|
188
184
|
|
@@ -192,6 +188,10 @@ details {
|
|
192
188
|
border-left-width: $border-4;
|
193
189
|
}
|
194
190
|
|
191
|
+
details[open] > summary {
|
192
|
+
margin-bottom: $size-1;
|
193
|
+
}
|
194
|
+
|
195
195
|
summary {
|
196
196
|
cursor: pointer;
|
197
197
|
}
|
@@ -234,3 +234,7 @@ h5, .hdg--lg {
|
|
234
234
|
h6, .hdg--base {
|
235
235
|
font-size: $text-base;
|
236
236
|
}
|
237
|
+
|
238
|
+
figcaption, cite {
|
239
|
+
font-size: $text-sm;
|
240
|
+
}
|
@@ -7,11 +7,11 @@
|
|
7
7
|
}
|
8
8
|
|
9
9
|
.animate-ping {
|
10
|
-
animation: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
|
10
|
+
animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
11
11
|
}
|
12
12
|
|
13
13
|
.animate-pulse {
|
14
|
-
animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
|
14
|
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
15
15
|
}
|
16
16
|
|
17
17
|
.animate-bounce {
|
@@ -43,7 +43,7 @@
|
|
43
43
|
opacity: 1;
|
44
44
|
}
|
45
45
|
50% {
|
46
|
-
opacity: .5;
|
46
|
+
opacity: 0.5;
|
47
47
|
}
|
48
48
|
}
|
49
49
|
|
@@ -2,7 +2,11 @@
|
|
2
2
|
|
3
3
|
// *******************************************************************
|
4
4
|
// Pull Utilities
|
5
|
-
//
|
5
|
+
// .pull-[xs|md|lg|xl|2xl|3xl]--top
|
6
|
+
// .pull-[xs|md|lg|xl|2xl|3xl]--right
|
7
|
+
// .pull-[xs|md|lg|xl|2xl|3xl]--bottom
|
8
|
+
// .pull-[xs|md|lg|xl|2xl|3xl]--left
|
9
|
+
// .pull-[xs|md|lg|xl|2xl|3xl]--sides
|
6
10
|
// *******************************************************************
|
7
11
|
@each $scale, $size in $size-map {
|
8
12
|
.pull-#{$scale}--top {
|
@@ -2,7 +2,13 @@
|
|
2
2
|
|
3
3
|
// *******************************************************************
|
4
4
|
// Push Utilities
|
5
|
-
//
|
5
|
+
// .push-[xs|md|lg|xl|2xl|3xl]
|
6
|
+
// .push-[xs|md|lg|xl|2xl|3xl]--top
|
7
|
+
// .push-[xs|md|lg|xl|2xl|3xl]--right
|
8
|
+
// .push-[xs|md|lg|xl|2xl|3xl]--bottom
|
9
|
+
// .push-[xs|md|lg|xl|2xl|3xl]--left
|
10
|
+
// .push-[xs|md|lg|xl|2xl|3xl]--ends
|
11
|
+
// .push-[xs|md|lg|xl|2xl|3xl]--sides
|
6
12
|
// *******************************************************************
|
7
13
|
@each $scale, $size in $size-map {
|
8
14
|
.push-#{$scale} {
|
@@ -15,7 +15,7 @@ $rounded-full: 9999px;
|
|
15
15
|
|
16
16
|
// *******************************************************************
|
17
17
|
// Border Width
|
18
|
-
//
|
18
|
+
// Variables for controlling the width of an element's borders.
|
19
19
|
// border-width: $border;
|
20
20
|
// *******************************************************************
|
21
21
|
$border-0: 0;
|
@@ -3,18 +3,18 @@
|
|
3
3
|
// Variables for controlling the box shadow of an element.
|
4
4
|
// box-shadow: $shadow;
|
5
5
|
// *******************************************************************
|
6
|
-
$shadow-sm:
|
7
|
-
$shadow:
|
8
|
-
$shadow-md:
|
9
|
-
$shadow-lg:
|
10
|
-
$shadow-xl:
|
11
|
-
$shadow-2xl:
|
12
|
-
$shadow-inner:
|
13
|
-
$shadow-none:
|
6
|
+
$shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
7
|
+
$shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
8
|
+
$shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
9
|
+
$shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
10
|
+
$shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
11
|
+
$shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
12
|
+
$shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
|
13
|
+
$shadow-none: none;
|
14
14
|
|
15
15
|
// *******************************************************************
|
16
16
|
// Opacity
|
17
|
-
//
|
17
|
+
// Variables for controlling the opacity of an element.
|
18
18
|
// opacity: $opacity-25;
|
19
19
|
// *******************************************************************
|
20
20
|
$opacity-0: 0;
|
@@ -35,7 +35,7 @@ $opacity-100: 1;
|
|
35
35
|
|
36
36
|
// *******************************************************************
|
37
37
|
// Ring
|
38
|
-
//
|
38
|
+
// Function for creating outline rings with box-shadows.
|
39
39
|
// box-shadow: ring($width: 4px);
|
40
40
|
// *******************************************************************
|
41
41
|
@function ring($width: 3px, $color: rgba($blue-500, 0.5), $offset-width: 0px, $offset-color: $white, $inset: false) {
|
@@ -0,0 +1,103 @@
|
|
1
|
+
// *******************************************************************
|
2
|
+
// Blur
|
3
|
+
// Variables for applying blur filters to an element.
|
4
|
+
// filter: $blur; backdrop-filter: $blur;
|
5
|
+
// *******************************************************************
|
6
|
+
$blur-none: blur(0);
|
7
|
+
$blur-sm: blur(4px);
|
8
|
+
$blur: blur(8px);
|
9
|
+
$blur-md: blur(12px);
|
10
|
+
$blur-lg: blur(16px);
|
11
|
+
$blur-xl: blur(24px);
|
12
|
+
$blur-2xl: blur(40px);
|
13
|
+
$blur-3xl: blur(64px);
|
14
|
+
|
15
|
+
// *******************************************************************
|
16
|
+
// Brightness
|
17
|
+
// Variables for applying brightness filters to an element.
|
18
|
+
// filter: $brightness-50; backdrop-filter: $brightness-50;
|
19
|
+
// *******************************************************************
|
20
|
+
$brightness-0: brightness(0);
|
21
|
+
$brightness-50: brightness(0.5);
|
22
|
+
$brightness-75: brightness(0.75);
|
23
|
+
$brightness-90: brightness(0.9);
|
24
|
+
$brightness-95: brightness(0.95);
|
25
|
+
$brightness-100: brightness(1);
|
26
|
+
$brightness-105: brightness(1.05);
|
27
|
+
$brightness-110: brightness(1.1);
|
28
|
+
$brightness-125: brightness(1.25);
|
29
|
+
$brightness-150: brightness(1.5);
|
30
|
+
$brightness-200: brightness(2);
|
31
|
+
|
32
|
+
// *******************************************************************
|
33
|
+
// Contrast
|
34
|
+
// Variables for applying brightness filters to an element.
|
35
|
+
// filter: $contrast-50; backdrop-filter: $contrast-50;
|
36
|
+
// *******************************************************************
|
37
|
+
$contrast-0: contrast(0);
|
38
|
+
$contrast-50: contrast(0.5);
|
39
|
+
$contrast-75: contrast(0.75);
|
40
|
+
$contrast-100: contrast(1);
|
41
|
+
$contrast-125: contrast(1.25);
|
42
|
+
$contrast-150: contrast(1.5);
|
43
|
+
$contrast-200: contrast(2);
|
44
|
+
|
45
|
+
// *******************************************************************
|
46
|
+
// Drop Shadow
|
47
|
+
// Variables for applying drop-shadow filters to an element.
|
48
|
+
// filter: $drop-shadow; backdrop-filter: $drop-shadow;
|
49
|
+
// *******************************************************************
|
50
|
+
$drop-shadow-none: drop-shadow(0 0 #0000);
|
51
|
+
$drop-shadow-sm: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
|
52
|
+
$drop-shadow: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
|
53
|
+
$drop-shadow-md: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
|
54
|
+
$drop-shadow-lg: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
|
55
|
+
$drop-shadow-xl: drop-shadow(0 20px 13px rgba(0, 0, 0, 0.03)) drop-shadow(0 8px 5px rgba(0, 0, 0, 0.08));
|
56
|
+
$drop-shadow-2xl: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
|
57
|
+
|
58
|
+
// *******************************************************************
|
59
|
+
// Grayscale
|
60
|
+
// Variables for applying grayscale filters to an element.
|
61
|
+
// filter: $grayscale; backdrop-filter: $grayscale;
|
62
|
+
// *******************************************************************
|
63
|
+
$grayscale-0: grayscale(0);
|
64
|
+
$grayscale: grayscale(100%);
|
65
|
+
|
66
|
+
// *******************************************************************
|
67
|
+
// Hue Rotate
|
68
|
+
// Variables for applying hue-rotate filters to an element.
|
69
|
+
// filter: $hue-rotate-30; backdrop-filter: $hue-rotate-30;
|
70
|
+
// *******************************************************************
|
71
|
+
$hue-rotate-0: hue-rotate(0deg);
|
72
|
+
$hue-rotate-15: hue-rotate(15deg);
|
73
|
+
$hue-rotate-30: hue-rotate(30deg);
|
74
|
+
$hue-rotate-60: hue-rotate(60deg);
|
75
|
+
$hue-rotate-90: hue-rotate(90deg);
|
76
|
+
$hue-rotate-180: hue-rotate(180deg);
|
77
|
+
|
78
|
+
// *******************************************************************
|
79
|
+
// Invert
|
80
|
+
// Variables for applying invert filters to an element.
|
81
|
+
// filter: $invert; backdrop-filter: $invert;
|
82
|
+
// *******************************************************************
|
83
|
+
$invert-0: invert(0);
|
84
|
+
$invert: invert(100%);
|
85
|
+
|
86
|
+
// *******************************************************************
|
87
|
+
// Saturate
|
88
|
+
// Variables for applying saturation filters to an element.
|
89
|
+
// filter: $saturate-50; backdrop-filter: $saturate-50;
|
90
|
+
// *******************************************************************
|
91
|
+
$saturate-0: saturate(0);
|
92
|
+
$saturate-50: saturate(0.5);
|
93
|
+
$saturate-100: saturate(1);
|
94
|
+
$saturate-150: saturate(1.5);
|
95
|
+
$saturate-200: saturate(2);
|
96
|
+
|
97
|
+
// *******************************************************************
|
98
|
+
// Sepia
|
99
|
+
// Variables for applying sepia filters to an element.
|
100
|
+
// filter: $sepia; backdrop-filter: $sepia;
|
101
|
+
// *******************************************************************
|
102
|
+
$sepia-0: sepia(0);
|
103
|
+
$sepia: sepia(100%);
|
@@ -10,7 +10,7 @@ $flex-none: none;
|
|
10
10
|
|
11
11
|
// *******************************************************************
|
12
12
|
// Flex Grow
|
13
|
-
//
|
13
|
+
// Variables for controlling how flex items grow.
|
14
14
|
// flex-grow: $flex-grow-0;
|
15
15
|
// *******************************************************************
|
16
16
|
$flex-grow-0: 0;
|
@@ -18,7 +18,7 @@ $flex-grow: 1;
|
|
18
18
|
|
19
19
|
// *******************************************************************
|
20
20
|
// Flex Shrink
|
21
|
-
//
|
21
|
+
// Variables for controlling how flex items shrink.
|
22
22
|
// flex-shrink: $flex-shrink-0;
|
23
23
|
// *******************************************************************
|
24
24
|
$flex-shrink-0: 0;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// *******************************************************************
|
2
2
|
// Grid Template Columns
|
3
|
-
//
|
3
|
+
// Variables for specifying the columns in a grid layout.
|
4
4
|
// grid-template-columns: $grid-cols-1;
|
5
5
|
// *******************************************************************
|
6
6
|
$grid-cols-1: repeat(1, minmax(0, 1fr));
|
@@ -19,7 +19,7 @@ $grid-cols-none: none;
|
|
19
19
|
|
20
20
|
// *******************************************************************
|
21
21
|
// Grid Column Start / End
|
22
|
-
//
|
22
|
+
// Variables for controlling how elements are sized and placed across grid columns.
|
23
23
|
// grid-column: $col-span-1;
|
24
24
|
// *******************************************************************
|
25
25
|
$col-auto: auto;
|
@@ -39,7 +39,7 @@ $col-span-full: 1 / -1;
|
|
39
39
|
|
40
40
|
// *******************************************************************
|
41
41
|
// Grid Template Rows
|
42
|
-
//
|
42
|
+
// Variables for specifying the rows in a grid layout.
|
43
43
|
// grid-template-rows: $grid-rows-1;
|
44
44
|
// *******************************************************************
|
45
45
|
$grid-rows-1: repeat(1, minmax(0, 1fr));
|
@@ -52,7 +52,7 @@ $grid-rows-none: none;
|
|
52
52
|
|
53
53
|
// *******************************************************************
|
54
54
|
// Grid Row Start / End
|
55
|
-
//
|
55
|
+
// Variables for controlling how elements are sized and placed across grid rows.
|
56
56
|
// grid-row: $row-span-1;
|
57
57
|
// *******************************************************************
|
58
58
|
$row-auto: auto;
|
@@ -66,7 +66,7 @@ $row-span-full: 1 / -1;
|
|
66
66
|
|
67
67
|
// *******************************************************************
|
68
68
|
// Grid Auto Columns
|
69
|
-
//
|
69
|
+
// Variables for controlling the size of implicitly-created grid columns.
|
70
70
|
// grid-auto-columns: $auto-cols-auto;
|
71
71
|
// *******************************************************************
|
72
72
|
$auto-cols-auto: auto;
|
@@ -76,7 +76,7 @@ $auto-cols-fr: minmax(0, 1fr);
|
|
76
76
|
|
77
77
|
// *******************************************************************
|
78
78
|
// Grid Auto Rows
|
79
|
-
//
|
79
|
+
// Variables for controlling the size of implicitly-created grid rows.
|
80
80
|
// grid-auto-rows: $auto-rows-auto;
|
81
81
|
// *******************************************************************
|
82
82
|
$auto-rows-auto: auto;
|
@@ -35,4 +35,12 @@ $size-72: 18rem;
|
|
35
35
|
$size-80: 20rem;
|
36
36
|
$size-96: 24rem;
|
37
37
|
|
38
|
-
$size-map: (
|
38
|
+
$size-map: (
|
39
|
+
"xs": $size-2,
|
40
|
+
"sm": $size-4,
|
41
|
+
"md": $size-6,
|
42
|
+
"lg": $size-12,
|
43
|
+
"xl": $size-16,
|
44
|
+
"2xl": $size-24,
|
45
|
+
"3xl": $size-32
|
46
|
+
);
|
data/lib/sass/zero/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "sass-zero",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.4",
|
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
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lazaronixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- app/assets/stylesheets/sass-zero/variables/breakpoints.scss
|
46
46
|
- app/assets/stylesheets/sass-zero/variables/colors.scss
|
47
47
|
- app/assets/stylesheets/sass-zero/variables/effects.scss
|
48
|
+
- app/assets/stylesheets/sass-zero/variables/filters.scss
|
48
49
|
- app/assets/stylesheets/sass-zero/variables/flex.scss
|
49
50
|
- app/assets/stylesheets/sass-zero/variables/grid.scss
|
50
51
|
- app/assets/stylesheets/sass-zero/variables/height.scss
|