sass-zero 0.0.40 → 0.0.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Example.html +12 -12
- data/README.md +6 -1
- data/app/assets/stylesheets/sass-zero/base.scss +0 -1
- data/app/assets/stylesheets/sass-zero/base/preflight.scss +15 -4
- data/app/assets/stylesheets/sass-zero/breadboard.scss +215 -0
- data/app/assets/stylesheets/sass-zero/mixins.scss +41 -16
- data/app/assets/stylesheets/sass-zero/utilities.scss +10 -0
- data/app/assets/stylesheets/sass-zero/utilities/align.scss +28 -0
- data/app/assets/stylesheets/sass-zero/utilities/animation.scss +59 -0
- data/app/assets/stylesheets/sass-zero/utilities/container.scss +36 -0
- data/app/assets/stylesheets/sass-zero/utilities/flex.scss +33 -21
- data/app/assets/stylesheets/sass-zero/utilities/layout.scss +40 -3
- data/app/assets/stylesheets/sass-zero/utilities/list.scss +22 -5
- data/app/assets/stylesheets/sass-zero/utilities/position.scss +2 -2
- data/app/assets/stylesheets/sass-zero/utilities/text.scss +88 -53
- data/app/assets/stylesheets/sass-zero/variables.scss +1 -0
- data/app/assets/stylesheets/sass-zero/variables/border.scss +4 -1
- data/app/assets/stylesheets/sass-zero/variables/breakpoints.scss +5 -4
- data/app/assets/stylesheets/sass-zero/variables/colors.scss +239 -118
- data/app/assets/stylesheets/sass-zero/variables/effects.scss +28 -4
- data/app/assets/stylesheets/sass-zero/variables/flex.scss +17 -1
- data/app/assets/stylesheets/sass-zero/variables/grid.scss +85 -0
- data/app/assets/stylesheets/sass-zero/variables/spacing.scss +16 -2
- data/app/assets/stylesheets/sass-zero/variables/transform.scss +9 -2
- data/app/assets/stylesheets/sass-zero/variables/typography.scss +18 -15
- data/app/assets/stylesheets/sass-zero/variables/width.scss +8 -3
- data/app/assets/stylesheets/sass-zero/variables/zindex.scss +1 -1
- data/lib/sass/zero/version.rb +1 -1
- data/package.json +1 -1
- metadata +8 -5
- data/app/assets/stylesheets/sass-zero/base/breadboard.scss +0 -191
- data/app/assets/stylesheets/sass-zero/base/variables.scss +0 -7
@@ -1,3 +1,13 @@
|
|
1
|
+
$color-txt: #18181b;
|
2
|
+
$color-txt--subtle: #3f3f46;
|
3
|
+
$color-txt--subtle-reversed: #fff;
|
4
|
+
$color-txt--decorated: #3b82f6;
|
5
|
+
|
6
|
+
$color-bg--highlight: #f4f4f5;
|
7
|
+
|
8
|
+
@import "sass-zero/utilities/align";
|
9
|
+
@import "sass-zero/utilities/animation";
|
10
|
+
@import "sass-zero/utilities/container";
|
1
11
|
@import "sass-zero/utilities/flex";
|
2
12
|
@import "sass-zero/utilities/flush";
|
3
13
|
@import "sass-zero/utilities/layout";
|
@@ -0,0 +1,28 @@
|
|
1
|
+
.align--top {
|
2
|
+
vertical-align: top;
|
3
|
+
}
|
4
|
+
|
5
|
+
.align--middle {
|
6
|
+
vertical-align: middle;
|
7
|
+
}
|
8
|
+
|
9
|
+
.align--bottom {
|
10
|
+
vertical-align: bottom;
|
11
|
+
}
|
12
|
+
|
13
|
+
.align--left {
|
14
|
+
text-align: left;
|
15
|
+
}
|
16
|
+
|
17
|
+
.align--center {
|
18
|
+
text-align: center;
|
19
|
+
}
|
20
|
+
|
21
|
+
.align--right {
|
22
|
+
text-align: right;
|
23
|
+
}
|
24
|
+
|
25
|
+
.centered {
|
26
|
+
margin-left: auto;
|
27
|
+
margin-right: auto
|
28
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
.animate-none {
|
2
|
+
animation: none;
|
3
|
+
}
|
4
|
+
|
5
|
+
.animate-spin {
|
6
|
+
animation: spin 1s linear infinite;
|
7
|
+
}
|
8
|
+
|
9
|
+
.animate-ping {
|
10
|
+
animation: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
|
11
|
+
}
|
12
|
+
|
13
|
+
.animate-pulse {
|
14
|
+
animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
|
15
|
+
}
|
16
|
+
|
17
|
+
.animate-bounce {
|
18
|
+
animation: bounce 1s infinite;
|
19
|
+
}
|
20
|
+
|
21
|
+
@keyframes spin {
|
22
|
+
from {
|
23
|
+
transform: rotate(0deg);
|
24
|
+
}
|
25
|
+
to {
|
26
|
+
transform: rotate(360deg);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
@keyframes ping {
|
31
|
+
0% {
|
32
|
+
transform: scale(1);
|
33
|
+
opacity: 1;
|
34
|
+
}
|
35
|
+
75%, 100% {
|
36
|
+
transform: scale(2);
|
37
|
+
opacity: 0;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
@keyframes pulse {
|
42
|
+
0%, 100% {
|
43
|
+
opacity: 1;
|
44
|
+
}
|
45
|
+
50% {
|
46
|
+
opacity: .5;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
@keyframes bounce {
|
51
|
+
0%, 100% {
|
52
|
+
transform: translateY(-25%);
|
53
|
+
animationTimingFunction: cubic-bezier(0.8, 0, 1, 1);
|
54
|
+
}
|
55
|
+
50% {
|
56
|
+
transform: translateY(0);
|
57
|
+
animationTimingFunction: cubic-bezier(0, 0, 0.2, 1);
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
@import "sass-zero/variables/breakpoints";
|
2
|
+
@import "sass-zero/mixins";
|
3
|
+
|
4
|
+
.container {
|
5
|
+
@include make-container;
|
6
|
+
}
|
7
|
+
|
8
|
+
@media (min-width: $breakpoint-sm) {
|
9
|
+
.container {
|
10
|
+
max-width: $breakpoint-sm;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
@media (min-width: $breakpoint-md) {
|
15
|
+
.container {
|
16
|
+
max-width: $breakpoint-md;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
@media (min-width: $breakpoint-lg) {
|
21
|
+
.container {
|
22
|
+
max-width: $breakpoint-lg;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
@media (min-width: $breakpoint-xl) {
|
27
|
+
.container {
|
28
|
+
max-width: $breakpoint-xl;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@media (min-width: $breakpoint-2xl) {
|
33
|
+
.container {
|
34
|
+
max-width: $breakpoint-2xl;
|
35
|
+
}
|
36
|
+
}
|
@@ -1,31 +1,43 @@
|
|
1
1
|
.flex {
|
2
2
|
display: flex;
|
3
|
+
}
|
3
4
|
|
4
|
-
|
5
|
-
|
6
|
-
|
5
|
+
.i-flex {
|
6
|
+
display: inline-flex;
|
7
|
+
}
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
9
|
+
.flex--column {
|
10
|
+
flex-direction: column;
|
11
|
+
}
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
13
|
+
.flex--justify-center {
|
14
|
+
justify-content: center;
|
15
|
+
}
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
17
|
+
.flex--justify-between {
|
18
|
+
justify-content: space-between;
|
19
|
+
}
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
.flex--items-center {
|
22
|
+
align-items: center;
|
23
|
+
}
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
.flex--wrap {
|
26
|
+
flex-wrap: wrap;
|
27
|
+
}
|
28
|
+
|
29
|
+
.flex-item--grow {
|
30
|
+
flex-grow: 1;
|
31
|
+
}
|
32
|
+
|
33
|
+
.flex-item--no-shrink {
|
34
|
+
flex-shrink: 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
.flex-item--fill {
|
38
|
+
flex: 1;
|
39
|
+
}
|
27
40
|
|
28
|
-
|
29
|
-
|
30
|
-
}
|
41
|
+
.flex-item--align-center {
|
42
|
+
align-self: center;
|
31
43
|
}
|
@@ -6,13 +6,26 @@
|
|
6
6
|
width: 100%;
|
7
7
|
}
|
8
8
|
|
9
|
+
.u-full-height {
|
10
|
+
height:100%
|
11
|
+
}
|
12
|
+
|
9
13
|
.u-min-width {
|
10
14
|
min-width: 0;
|
11
15
|
}
|
12
16
|
|
13
17
|
.u-disabled {
|
14
18
|
pointer-events: none;
|
15
|
-
opacity: $opacity-
|
19
|
+
opacity: $opacity-30;
|
20
|
+
}
|
21
|
+
|
22
|
+
.u-off-screen {
|
23
|
+
position: absolute;
|
24
|
+
left: -9999em;
|
25
|
+
}
|
26
|
+
|
27
|
+
.u-overflow-auto {
|
28
|
+
overflow: auto;
|
16
29
|
}
|
17
30
|
|
18
31
|
.u-unscrollable {
|
@@ -35,9 +48,25 @@
|
|
35
48
|
display: none !important;
|
36
49
|
}
|
37
50
|
|
38
|
-
.u-
|
39
|
-
|
51
|
+
.u-visibility-hidden {
|
52
|
+
visibility: hidden;
|
53
|
+
}
|
54
|
+
|
55
|
+
.u-pointer-events-n {
|
56
|
+
pointer-events: none;
|
57
|
+
}
|
58
|
+
|
59
|
+
.u-margin-centered {
|
40
60
|
margin-left: auto;
|
61
|
+
margin-right: auto;
|
62
|
+
}
|
63
|
+
|
64
|
+
.u-wrap {
|
65
|
+
display: block;
|
66
|
+
}
|
67
|
+
|
68
|
+
.u-nowrap {
|
69
|
+
white-space: nowrap;
|
41
70
|
}
|
42
71
|
|
43
72
|
.u-clearfix {
|
@@ -68,6 +97,14 @@
|
|
68
97
|
clear: right;
|
69
98
|
}
|
70
99
|
|
100
|
+
.u-hide {
|
101
|
+
display: none;
|
102
|
+
}
|
103
|
+
|
104
|
+
.u-hide-focus {
|
105
|
+
outline: none !important;
|
106
|
+
}
|
107
|
+
|
71
108
|
@media (max-width: $breakpoint-md - 1) {
|
72
109
|
.u-hide\@small {
|
73
110
|
display: none;
|
@@ -2,23 +2,40 @@
|
|
2
2
|
@import "sass-zero/mixins";
|
3
3
|
|
4
4
|
.list--unindented {
|
5
|
-
padding-left: $size-
|
5
|
+
padding-left: $size-4;
|
6
|
+
}
|
7
|
+
|
8
|
+
.list--flush {
|
9
|
+
padding-left: $size-0;
|
6
10
|
}
|
7
11
|
|
8
12
|
.list--unbulleted {
|
9
|
-
|
13
|
+
padding-left: $size-0;
|
14
|
+
list-style: none;
|
10
15
|
}
|
11
16
|
|
12
17
|
.list--spaced {
|
13
18
|
@include space-y($size-2);
|
14
19
|
}
|
15
20
|
|
16
|
-
.list--
|
17
|
-
padding: $size-
|
21
|
+
.list--inside-bulleted {
|
22
|
+
padding-left: $size-0;
|
23
|
+
list-style-position: inside;
|
24
|
+
}
|
25
|
+
|
26
|
+
.list--ruled-top {
|
18
27
|
border-top-width: $border;
|
19
28
|
}
|
20
29
|
|
30
|
+
.list--inline {
|
31
|
+
@include space-x($size-2);
|
32
|
+
}
|
33
|
+
|
21
34
|
.list--inline > li {
|
22
|
-
margin-right: $size-2;
|
23
35
|
display: inline-block;
|
24
36
|
}
|
37
|
+
|
38
|
+
.list--ruled > li {
|
39
|
+
padding: $size-4 $size-2;
|
40
|
+
border-top-width: $border;
|
41
|
+
}
|
@@ -1,46 +1,38 @@
|
|
1
1
|
@import "sass-zero/variables/typography";
|
2
2
|
@import "sass-zero/variables/spacing";
|
3
|
-
@import "sass-zero/variables/colors";
|
4
3
|
@import "sass-zero/mixins";
|
5
4
|
|
6
|
-
.txt--
|
7
|
-
font-
|
8
|
-
}
|
9
|
-
|
10
|
-
.txt--sm {
|
11
|
-
font-size: $text-sm;
|
12
|
-
}
|
13
|
-
|
14
|
-
.txt--md {
|
15
|
-
font-size: $text-base;
|
5
|
+
.txt--normal {
|
6
|
+
font-weight: $font-normal !important;
|
16
7
|
}
|
17
8
|
|
18
|
-
.txt--
|
19
|
-
font-
|
9
|
+
.txt--bold {
|
10
|
+
font-weight: $font-bold;
|
20
11
|
}
|
21
12
|
|
22
|
-
.txt--
|
23
|
-
|
13
|
+
.txt--underline {
|
14
|
+
text-decoration: underline;
|
24
15
|
}
|
25
16
|
|
26
|
-
.txt--
|
27
|
-
|
17
|
+
.txt--uppercase {
|
18
|
+
text-transform: uppercase;
|
28
19
|
}
|
29
20
|
|
30
|
-
.txt--
|
31
|
-
|
21
|
+
.txt--subtle {
|
22
|
+
color: $color-txt--subtle;
|
32
23
|
}
|
33
24
|
|
34
|
-
.txt--
|
35
|
-
|
25
|
+
.txt--subtle-reversed {
|
26
|
+
color: $color-txt--subtle-reversed;
|
36
27
|
}
|
37
28
|
|
38
|
-
.txt--
|
39
|
-
|
29
|
+
.txt--full-contrast {
|
30
|
+
color: $color-txt;
|
40
31
|
}
|
41
32
|
|
42
|
-
.txt--
|
43
|
-
font-size: $text-
|
33
|
+
.txt--meta {
|
34
|
+
font-size: $text-sm;
|
35
|
+
color: $color-txt--subtle;
|
44
36
|
}
|
45
37
|
|
46
38
|
.txt--nowrap {
|
@@ -51,6 +43,10 @@
|
|
51
43
|
word-wrap: break-word;
|
52
44
|
}
|
53
45
|
|
46
|
+
.txt--break-words-alt {
|
47
|
+
word-break: break-word;
|
48
|
+
}
|
49
|
+
|
54
50
|
.txt--break-all {
|
55
51
|
word-break: break-all;
|
56
52
|
}
|
@@ -59,61 +55,100 @@
|
|
59
55
|
@include ellipsis;
|
60
56
|
}
|
61
57
|
|
62
|
-
.txt--
|
63
|
-
|
58
|
+
.txt--dimmed {
|
59
|
+
opacity: $opacity-75;
|
64
60
|
}
|
65
61
|
|
66
|
-
.txt--
|
67
|
-
|
62
|
+
.txt--very-dimmed {
|
63
|
+
opacity: $opacity-50;
|
68
64
|
}
|
69
65
|
|
70
|
-
.txt--
|
71
|
-
color: $
|
66
|
+
.txt--highlight {
|
67
|
+
background-color: $color-bg--highlight;
|
68
|
+
border-radius: $rounded-full;
|
69
|
+
padding: $size-0 $size-1;
|
72
70
|
}
|
73
71
|
|
74
|
-
.txt--
|
75
|
-
|
72
|
+
.txt--overflow-hidden {
|
73
|
+
overflow: hidden;
|
76
74
|
}
|
77
75
|
|
78
|
-
.txt--
|
79
|
-
|
76
|
+
.txt--xs {
|
77
|
+
font-size: $text-xs;
|
78
|
+
line-height: $leading-4;
|
80
79
|
}
|
81
80
|
|
82
|
-
.txt--
|
83
|
-
|
81
|
+
.txt--sm {
|
82
|
+
font-size: $text-sm;
|
83
|
+
line-height: $leading-5;
|
84
|
+
}
|
85
|
+
|
86
|
+
.txt--md {
|
87
|
+
font-size: $text-base;
|
88
|
+
line-height: $leading-6;
|
89
|
+
}
|
90
|
+
|
91
|
+
.txt--lg {
|
92
|
+
font-size: $text-lg;
|
93
|
+
line-height: $leading-7;
|
94
|
+
}
|
95
|
+
|
96
|
+
.txt--xl {
|
97
|
+
font-size: $text-xl;
|
98
|
+
line-height: $leading-7;
|
84
99
|
}
|
85
100
|
|
86
|
-
.
|
87
|
-
|
101
|
+
.txt--2xl {
|
102
|
+
font-size: $text-2xl;
|
103
|
+
line-height: $leading-8;
|
88
104
|
}
|
89
105
|
|
90
|
-
.
|
91
|
-
|
106
|
+
.txt--3xl {
|
107
|
+
font-size: $text-3xl;
|
108
|
+
line-height: $leading-9;
|
92
109
|
}
|
93
110
|
|
94
|
-
.
|
95
|
-
|
111
|
+
.txt--4xl {
|
112
|
+
font-size: $text-4xl;
|
113
|
+
line-height: $leading-10;
|
96
114
|
}
|
97
115
|
|
98
|
-
.
|
99
|
-
|
116
|
+
.txt--5xl {
|
117
|
+
font-size: $text-5xl;
|
118
|
+
line-height: $leading-none;
|
100
119
|
}
|
101
120
|
|
102
|
-
.
|
103
|
-
|
121
|
+
.txt--6xl {
|
122
|
+
font-size: $text-6xl;
|
123
|
+
line-height: $leading-none;
|
104
124
|
}
|
105
125
|
|
106
|
-
.
|
107
|
-
|
126
|
+
.txt--7xl {
|
127
|
+
font-size: $text-7xl;
|
128
|
+
line-height: $leading-none;
|
129
|
+
}
|
130
|
+
|
131
|
+
.txt--8xl {
|
132
|
+
font-size: $text-8xl;
|
133
|
+
line-height: $leading-none;
|
134
|
+
}
|
135
|
+
|
136
|
+
.txt--9xl {
|
137
|
+
font-size: $text-9xl;
|
138
|
+
line-height: $leading-none;
|
108
139
|
}
|
109
140
|
|
110
141
|
.decorated {
|
111
|
-
color: $
|
142
|
+
color: $color-txt--decorated;
|
112
143
|
text-decoration: underline;
|
113
144
|
}
|
114
145
|
|
115
146
|
.decorated--subtle {
|
116
|
-
color: $
|
117
|
-
|
118
|
-
|
147
|
+
color: $color-txt--subtle;
|
148
|
+
text-decoration: underline;
|
149
|
+
}
|
150
|
+
|
151
|
+
.undecorated {
|
152
|
+
color: inherit;
|
153
|
+
text-decoration: none;
|
119
154
|
}
|