sass-zero 0.0.37 → 0.0.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/Example.html +7 -7
  3. data/README.md +3 -0
  4. data/app/assets/stylesheets/sass-zero/base.scss +0 -1
  5. data/app/assets/stylesheets/sass-zero/base/preflight.scss +14 -4
  6. data/app/assets/stylesheets/sass-zero/{base/breadboard.scss → breadboard.scss} +36 -33
  7. data/app/assets/stylesheets/sass-zero/mixins.scss +28 -15
  8. data/app/assets/stylesheets/sass-zero/utilities.scss +1 -0
  9. data/app/assets/stylesheets/sass-zero/utilities/animation.scss +59 -0
  10. data/app/assets/stylesheets/sass-zero/utilities/flex.scss +33 -21
  11. data/app/assets/stylesheets/sass-zero/utilities/layout.scss +11 -1
  12. data/app/assets/stylesheets/sass-zero/utilities/list.scss +20 -4
  13. data/app/assets/stylesheets/sass-zero/utilities/text.scss +59 -2
  14. data/app/assets/stylesheets/sass-zero/variables.scss +1 -0
  15. data/app/assets/stylesheets/sass-zero/variables/border.scss +4 -1
  16. data/app/assets/stylesheets/sass-zero/variables/breakpoints.scss +5 -4
  17. data/app/assets/stylesheets/sass-zero/variables/colors.scss +242 -100
  18. data/app/assets/stylesheets/sass-zero/variables/effects.scss +30 -4
  19. data/app/assets/stylesheets/sass-zero/variables/flex.scss +17 -1
  20. data/app/assets/stylesheets/sass-zero/variables/grid.scss +85 -0
  21. data/app/assets/stylesheets/sass-zero/variables/spacing.scss +16 -2
  22. data/app/assets/stylesheets/sass-zero/variables/transform.scss +9 -2
  23. data/app/assets/stylesheets/sass-zero/variables/typography.scss +18 -15
  24. data/app/assets/stylesheets/sass-zero/variables/width.scss +9 -3
  25. data/app/assets/stylesheets/sass-zero/variables/zindex.scss +1 -1
  26. data/lib/sass/zero/version.rb +1 -1
  27. data/package.json +1 -1
  28. metadata +10 -9
  29. data/app/assets/stylesheets/sass-zero/base/variables.scss +0 -7
@@ -1,10 +1,20 @@
1
1
  @import "sass-zero/variables/breakpoints";
2
+ @import "sass-zero/variables/effects";
2
3
  @import "sass-zero/mixins";
3
4
 
4
5
  .u-full-width {
5
6
  width: 100%;
6
7
  }
7
8
 
9
+ .u-min-width {
10
+ min-width: 0;
11
+ }
12
+
13
+ .u-disabled {
14
+ pointer-events: none;
15
+ opacity: $opacity-50;
16
+ }
17
+
8
18
  .u-unscrollable {
9
19
  overflow: hidden;
10
20
  }
@@ -27,7 +37,7 @@
27
37
 
28
38
  .u-centered {
29
39
  margin-right: auto;
30
- margin-left: auto;
40
+ margin-left: auto;
31
41
  }
32
42
 
33
43
  .u-clearfix {
@@ -1,15 +1,31 @@
1
1
  @import "sass-zero/variables/spacing";
2
+ @import "sass-zero/variables/colors";
3
+ @import "sass-zero/mixins";
2
4
 
3
5
  .list--unindented {
4
6
  padding-left: $size-8;
5
7
  }
6
8
 
7
9
  .list--unbulleted {
8
- list-style: none;
10
+ list-style: none;
9
11
  }
10
12
 
11
- .list--inline li {
12
- margin-bottom: $size-0;
13
- margin-right: $size-2;
13
+ .list--spaced {
14
+ @include space-y($size-2);
15
+ }
16
+
17
+ .list--boxed {
18
+ background-color: $gray-200;
19
+ padding: $size-4;
20
+ border-radius: $rounded;
21
+ }
22
+
23
+ .list--ruled > li {
24
+ padding: $size-3 $size-4;
25
+ border-top-width: $border;
26
+ }
27
+
28
+ .list--inline > li {
29
+ margin-right: $size-2;
14
30
  display: inline-block;
15
31
  }
@@ -1,35 +1,72 @@
1
1
  @import "sass-zero/variables/typography";
2
2
  @import "sass-zero/variables/spacing";
3
- @import "sass-zero/variables/border";
4
3
  @import "sass-zero/variables/colors";
4
+ @import "sass-zero/variables/border";
5
5
  @import "sass-zero/mixins";
6
6
 
7
7
  .txt--xs {
8
8
  font-size: $text-xs;
9
+ line-height: $leading-4;
9
10
  }
10
11
 
11
12
  .txt--sm {
12
13
  font-size: $text-sm;
14
+ line-height: $leading-5;
13
15
  }
14
16
 
15
17
  .txt--md {
16
18
  font-size: $text-base;
19
+ line-height: $leading-6;
17
20
  }
18
21
 
19
22
  .txt--lg {
20
23
  font-size: $text-lg;
24
+ line-height: $leading-7;
21
25
  }
22
26
 
23
27
  .txt--xl {
24
28
  font-size: $text-xl;
29
+ line-height: $leading-7;
25
30
  }
26
31
 
27
32
  .txt--2xl {
28
33
  font-size: $text-2xl;
34
+ line-height: $leading-8;
29
35
  }
30
36
 
31
37
  .txt--3xl {
32
38
  font-size: $text-3xl;
39
+ line-height: $leading-9;
40
+ }
41
+
42
+ .txt--4xl {
43
+ font-size: $text-4xl;
44
+ line-height: $leading-10;
45
+ }
46
+
47
+ .txt--5xl {
48
+ font-size: $text-5xl;
49
+ line-height: $leading-4;
50
+ }
51
+
52
+ .txt--6xl {
53
+ font-size: $text-6xl;
54
+ line-height: $leading-4;
55
+ }
56
+
57
+ .txt--7xl {
58
+ font-size: $text-7xl;
59
+ line-height: $leading-4;
60
+ }
61
+
62
+ .txt--8xl {
63
+ font-size: $text-8xl;
64
+ line-height: $leading-4;
65
+ }
66
+
67
+ .txt--9xl {
68
+ font-size: $text-9xl;
69
+ line-height: $leading-4;
33
70
  }
34
71
 
35
72
  .txt--nowrap {
@@ -40,6 +77,10 @@
40
77
  word-wrap: break-word;
41
78
  }
42
79
 
80
+ .txt--break-words-alt {
81
+ word-break: break-word;
82
+ }
83
+
43
84
  .txt--break-all {
44
85
  word-break: break-all;
45
86
  }
@@ -49,7 +90,7 @@
49
90
  }
50
91
 
51
92
  .txt--normal {
52
- font-weight: $font-normal;
93
+ font-weight: $font-normal !important;
53
94
  }
54
95
 
55
96
  .txt--bold {
@@ -72,6 +113,12 @@
72
113
  text-transform: uppercase;
73
114
  }
74
115
 
116
+ .txt--highlight {
117
+ background-color: $gray-200;
118
+ border-radius: $rounded-full;
119
+ padding: $size-0 $size-1;
120
+ }
121
+
75
122
  .align--top {
76
123
  vertical-align: top;
77
124
  }
@@ -95,3 +142,13 @@
95
142
  .align--right {
96
143
  text-align: right;
97
144
  }
145
+
146
+ .decorated {
147
+ color: $blue-500;
148
+ text-decoration: underline;
149
+ }
150
+
151
+ .decorated--subtle {
152
+ color: $gray-700;
153
+ text-decoration: underline;
154
+ }
@@ -3,6 +3,7 @@
3
3
  @import "variables/colors";
4
4
  @import "variables/effects";
5
5
  @import "variables/flex";
6
+ @import "variables/grid";
6
7
  @import "variables/spacing";
7
8
  @import "variables/transition";
8
9
  @import "variables/transform";
@@ -8,6 +8,9 @@ $rounded-sm: 0.125rem;
8
8
  $rounded: 0.25rem;
9
9
  $rounded-md: 0.375rem;
10
10
  $rounded-lg: 0.5rem;
11
+ $rounded-xl: 0.75rem;
12
+ $rounded-2xl: 1rem;
13
+ $rounded-3xl: 1.5rem;
11
14
  $rounded-full: 9999px;
12
15
 
13
16
  // *******************************************************************
@@ -15,8 +18,8 @@ $rounded-full: 9999px;
15
18
  // Utilities for controlling the width of an element's borders.
16
19
  // border-width: $border;
17
20
  // *******************************************************************
18
- $border: 1px;
19
21
  $border-0: 0;
20
22
  $border-2: 2px;
21
23
  $border-4: 4px;
22
24
  $border-8: 8px;
25
+ $border: 1px;
@@ -3,7 +3,8 @@
3
3
  // Customizing the default breakpoints for your project.
4
4
  // @media (min-width: $breakpoint-md) { }
5
5
  // *******************************************************************
6
- $breakpoint-sm: 640px;
7
- $breakpoint-md: 768px;
8
- $breakpoint-lg: 1024px;
9
- $breakpoint-xl: 1280px;
6
+ $breakpoint-sm: 640px;
7
+ $breakpoint-md: 768px;
8
+ $breakpoint-lg: 1024px;
9
+ $breakpoint-xl: 1280px;
10
+ $breakpoint-2xl: 1536px;
@@ -2,107 +2,249 @@
2
2
  // Default color palette
3
3
  // sass-zero includes a generous palette of great-looking, well-balanced colors that are perfect for prototyping or for kicking off a brand new project.
4
4
  // *******************************************************************
5
- $transparent: 'transparent';
5
+ $transparent: transparent;
6
6
 
7
7
  $black: #000;
8
8
  $white: #fff;
9
9
 
10
- $gray-100: #f7fafc !default;
11
- $gray-200: #edf2f7 !default;
12
- $gray-300: #e2e8f0 !default;
13
- $gray-400: #cbd5e0 !default;
14
- $gray-500: #a0aec0 !default;
15
- $gray-600: #718096 !default;
16
- $gray-700: #4a5568 !default;
17
- $gray-800: #2d3748 !default;
18
- $gray-900: #1a202c !default;
19
-
20
- $red-100: #fff5f5;
21
- $red-200: #fed7d7;
22
- $red-300: #feb2b2;
23
- $red-400: #fc8181;
24
- $red-500: #f56565;
25
- $red-600: #e53e3e;
26
- $red-700: #c53030;
27
- $red-800: #9b2c2c;
28
- $red-900: #742a2a;
29
-
30
- $orange-100: #fffaf0;
31
- $orange-200: #feebc8;
32
- $orange-300: #fbd38d;
33
- $orange-400: #f6ad55;
34
- $orange-500: #ed8936;
35
- $orange-600: #dd6b20;
36
- $orange-700: #c05621;
37
- $orange-800: #9c4221;
38
- $orange-900: #7b341e;
39
-
40
- $yellow-100: #fffff0;
41
- $yellow-200: #fefcbf;
42
- $yellow-300: #faf089;
43
- $yellow-400: #f6e05e;
44
- $yellow-500: #ecc94b;
45
- $yellow-600: #d69e2e;
46
- $yellow-700: #b7791f;
47
- $yellow-800: #975a16;
48
- $yellow-900: #744210;
49
-
50
- $green-100: #f0fff4;
51
- $green-200: #c6f6d5;
52
- $green-300: #9ae6b4;
53
- $green-400: #68d391;
54
- $green-500: #48bb78;
55
- $green-600: #38a169;
56
- $green-700: #2f855a;
57
- $green-800: #276749;
58
- $green-900: #22543d;
59
-
60
- $teal-100: #e6fffa;
61
- $teal-200: #b2f5ea;
62
- $teal-300: #81e6d9;
63
- $teal-400: #4fd1c5;
64
- $teal-500: #38b2ac;
65
- $teal-600: #319795;
66
- $teal-700: #2c7a7b;
67
- $teal-800: #285e61;
68
- $teal-900: #234e52;
69
-
70
- $blue-100: #ebf8ff;
71
- $blue-200: #bee3f8;
72
- $blue-300: #90cdf4;
73
- $blue-400: #63b3ed;
74
- $blue-500: #4299e1;
75
- $blue-600: #3182ce;
76
- $blue-700: #2b6cb0;
77
- $blue-800: #2c5282;
78
- $blue-900: #2a4365;
79
-
80
- $indigo-100: #ebf4ff;
81
- $indigo-200: #c3dafe;
82
- $indigo-300: #a3bffa;
83
- $indigo-400: #7f9cf5;
84
- $indigo-500: #667eea;
85
- $indigo-600: #5a67d8;
86
- $indigo-700: #4c51bf;
87
- $indigo-800: #434190;
88
- $indigo-900: #3c366b;
89
-
90
- $purple-100: #faf5ff;
91
- $purple-200: #e9d8fd;
92
- $purple-300: #d6bcfa;
93
- $purple-400: #b794f4;
94
- $purple-500: #9f7aea;
95
- $purple-600: #805ad5;
96
- $purple-700: #6b46c1;
97
- $purple-800: #553c9a;
98
- $purple-900: #44337a;
99
-
100
- $pink-100: #fff5f7;
101
- $pink-200: #fed7e2;
102
- $pink-300: #fbb6ce;
103
- $pink-400: #f687b3;
104
- $pink-500: #ed64a6;
105
- $pink-600: #d53f8c;
106
- $pink-700: #b83280;
107
- $pink-800: #97266d;
108
- $pink-900: #702459;
10
+ $rose-50: #fff1f2;
11
+ $rose-100: #ffe4e6;
12
+ $rose-200: #fecdd3;
13
+ $rose-300: #fda4af;
14
+ $rose-400: #fb7185;
15
+ $rose-500: #f43f5e;
16
+ $rose-600: #e11d48;
17
+ $rose-700: #be123c;
18
+ $rose-800: #9f1239;
19
+ $rose-900: #881337;
20
+
21
+ $pink-50: #fdf2f8;
22
+ $pink-100: #fce7f3;
23
+ $pink-200: #fbcfe8;
24
+ $pink-300: #f9a8d4;
25
+ $pink-400: #f472b6;
26
+ $pink-500: #ec4899;
27
+ $pink-600: #db2777;
28
+ $pink-700: #be185d;
29
+ $pink-800: #9d174d;
30
+ $pink-900: #831843;
31
+
32
+ $fuchsia-50: #fdf4ff;
33
+ $fuchsia-100: #fae8ff;
34
+ $fuchsia-200: #f5d0fe;
35
+ $fuchsia-300: #f0abfc;
36
+ $fuchsia-400: #e879f9;
37
+ $fuchsia-500: #d946ef;
38
+ $fuchsia-600: #c026d3;
39
+ $fuchsia-700: #a21caf;
40
+ $fuchsia-800: #86198f;
41
+ $fuchsia-900: #701a75;
42
+
43
+ $purple-50: #faf5ff;
44
+ $purple-100: #f3e8ff;
45
+ $purple-200: #e9d5ff;
46
+ $purple-300: #d8b4fe;
47
+ $purple-400: #c084fc;
48
+ $purple-500: #a855f7;
49
+ $purple-600: #9333ea;
50
+ $purple-700: #7e22ce;
51
+ $purple-800: #6b21a8;
52
+ $purple-900: #581c87;
53
+
54
+ $violet-50: #f5f3ff;
55
+ $violet-100: #ede9fe;
56
+ $violet-200: #ddd6fe;
57
+ $violet-300: #c4b5fd;
58
+ $violet-400: #a78bfa;
59
+ $violet-500: #8b5cf6;
60
+ $violet-600: #7c3aed;
61
+ $violet-700: #6d28d9;
62
+ $violet-800: #5b21b6;
63
+ $violet-900: #4c1d95;
64
+
65
+ $indigo-50: #eef2ff;
66
+ $indigo-100: #e0e7ff;
67
+ $indigo-200: #c7d2fe;
68
+ $indigo-300: #a5b4fc;
69
+ $indigo-400: #818cf8;
70
+ $indigo-500: #6366f1;
71
+ $indigo-600: #4f46e5;
72
+ $indigo-700: #4338ca;
73
+ $indigo-800: #3730a3;
74
+ $indigo-900: #312e81;
75
+
76
+ $blue-50: #eff6ff;
77
+ $blue-100: #dbeafe;
78
+ $blue-200: #bfdbfe;
79
+ $blue-300: #93c5fd;
80
+ $blue-400: #60a5fa;
81
+ $blue-500: #3b82f6;
82
+ $blue-600: #2563eb;
83
+ $blue-700: #1d4ed8;
84
+ $blue-800: #1e40af;
85
+ $blue-900: #1e3a8a;
86
+
87
+ $light-blue-50: #f0f9ff;
88
+ $light-blue-100: #e0f2fe;
89
+ $light-blue-200: #bae6fd;
90
+ $light-blue-300: #7dd3fc;
91
+ $light-blue-400: #38bdf8;
92
+ $light-blue-500: #0ea5e9;
93
+ $light-blue-600: #0284c7;
94
+ $light-blue-700: #0369a1;
95
+ $light-blue-800: #075985;
96
+ $light-blue-900: #0c4a6e;
97
+
98
+ $cyan-50: #ecfeff;
99
+ $cyan-100: #cffafe;
100
+ $cyan-200: #a5f3fc;
101
+ $cyan-300: #67e8f9;
102
+ $cyan-400: #22d3ee;
103
+ $cyan-500: #06b6d4;
104
+ $cyan-600: #0891b2;
105
+ $cyan-700: #0e7490;
106
+ $cyan-800: #155e75;
107
+ $cyan-900: #164e63;
108
+
109
+ $teal-50: #f0fdfa;
110
+ $teal-100: #ccfbf1;
111
+ $teal-200: #99f6e4;
112
+ $teal-300: #5eead4;
113
+ $teal-400: #2dd4bf;
114
+ $teal-500: #14b8a6;
115
+ $teal-600: #0d9488;
116
+ $teal-700: #0f766e;
117
+ $teal-800: #115e59;
118
+ $teal-900: #134e4a;
119
+
120
+ $emerald-50: #ecfdf5;
121
+ $emerald-100: #d1fae5;
122
+ $emerald-200: #a7f3d0;
123
+ $emerald-300: #6ee7b7;
124
+ $emerald-400: #34d399;
125
+ $emerald-500: #10b981;
126
+ $emerald-600: #059669;
127
+ $emerald-700: #047857;
128
+ $emerald-800: #065f46;
129
+ $emerald-900: #064e3b;
130
+
131
+ $green-50: #f0fdf4;
132
+ $green-100: #dcfce7;
133
+ $green-200: #bbf7d0;
134
+ $green-300: #86efac;
135
+ $green-400: #4ade80;
136
+ $green-500: #22c55e;
137
+ $green-600: #16a34a;
138
+ $green-700: #15803d;
139
+ $green-800: #166534;
140
+ $green-900: #14532d;
141
+
142
+ $lime-50: #f7fee7;
143
+ $lime-100: #ecfccb;
144
+ $lime-200: #d9f99d;
145
+ $lime-300: #bef264;
146
+ $lime-400: #a3e635;
147
+ $lime-500: #84cc16;
148
+ $lime-600: #65a30d;
149
+ $lime-700: #4d7c0f;
150
+ $lime-800: #3f6212;
151
+ $lime-900: #365314;
152
+
153
+ $yellow-50: #fefce8;
154
+ $yellow-100: #fef9c3;
155
+ $yellow-200: #fef08a;
156
+ $yellow-300: #fde047;
157
+ $yellow-400: #facc15;
158
+ $yellow-500: #eab308;
159
+ $yellow-600: #ca8a04;
160
+ $yellow-700: #a16207;
161
+ $yellow-800: #854d0e;
162
+ $yellow-900: #713f12;
163
+
164
+ $amber-50: #fffbeb;
165
+ $amber-100: #fef3c7;
166
+ $amber-200: #fde68a;
167
+ $amber-300: #fcd34d;
168
+ $amber-400: #fbbf24;
169
+ $amber-500: #f59e0b;
170
+ $amber-600: #d97706;
171
+ $amber-700: #b45309;
172
+ $amber-800: #92400e;
173
+ $amber-900: #78350f;
174
+
175
+ $orange-50: #fff7ed;
176
+ $orange-100: #ffedd5;
177
+ $orange-200: #fed7aa;
178
+ $orange-300: #fdba74;
179
+ $orange-400: #fb923c;
180
+ $orange-500: #f97316;
181
+ $orange-600: #ea580c;
182
+ $orange-700: #c2410c;
183
+ $orange-800: #9a3412;
184
+ $orange-900: #7c2d12;
185
+
186
+ $red-50: #fef2f2;
187
+ $red-100: #fee2e2;
188
+ $red-200: #fecaca;
189
+ $red-300: #fca5a5;
190
+ $red-400: #f87171;
191
+ $red-500: #ef4444;
192
+ $red-600: #dc2626;
193
+ $red-700: #b91c1c;
194
+ $red-800: #991b1b;
195
+ $red-900: #7f1d1d;
196
+
197
+ $warm-gray-50: #fafaf9;
198
+ $warm-gray-100: #f5f5f4;
199
+ $warm-gray-200: #e7e5e4;
200
+ $warm-gray-300: #d6d3d1;
201
+ $warm-gray-400: #a8a29e;
202
+ $warm-gray-500: #78716c;
203
+ $warm-gray-600: #57534e;
204
+ $warm-gray-700: #44403c;
205
+ $warm-gray-800: #292524;
206
+ $warm-gray-900: #1c1917;
207
+
208
+ $true-gray-50: #fafafa;
209
+ $true-gray-100: #f5f5f5;
210
+ $true-gray-200: #e5e5e5;
211
+ $true-gray-300: #d4d4d4;
212
+ $true-gray-400: #a3a3a3;
213
+ $true-gray-500: #737373;
214
+ $true-gray-600: #525252;
215
+ $true-gray-700: #404040;
216
+ $true-gray-800: #262626;
217
+ $true-gray-900: #171717;
218
+
219
+ $gray-50: #fafafa;
220
+ $gray-100: #f4f4f5;
221
+ $gray-200: #e4e4e7;
222
+ $gray-300: #d4d4d8;
223
+ $gray-400: #a1a1aa;
224
+ $gray-500: #71717a;
225
+ $gray-600: #52525b;
226
+ $gray-700: #3f3f46;
227
+ $gray-800: #27272a;
228
+ $gray-900: #18181b;
229
+
230
+ $cool-gray-50: #f9fafb;
231
+ $cool-gray-100: #f3f4f6;
232
+ $cool-gray-200: #e5e7eb;
233
+ $cool-gray-300: #d1d5db;
234
+ $cool-gray-400: #9ca3af;
235
+ $cool-gray-500: #6b7280;
236
+ $cool-gray-600: #4b5563;
237
+ $cool-gray-700: #374151;
238
+ $cool-gray-800: #1f2937;
239
+ $cool-gray-900: #111827;
240
+
241
+ $blue-gray-50: #f8fafc;
242
+ $blue-gray-100: #f1f5f9;
243
+ $blue-gray-200: #e2e8f0;
244
+ $blue-gray-300: #cbd5e1;
245
+ $blue-gray-400: #94a3b8;
246
+ $blue-gray-500: #64748b;
247
+ $blue-gray-600: #475569;
248
+ $blue-gray-700: #334155;
249
+ $blue-gray-800: #1e293b;
250
+ $blue-gray-900: #0f172a;