sass-zero 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,231 @@
1
+ @import "sass-zero/variables";
2
+
3
+ /**
4
+ * Manually forked from SUIT CSS Base: https://github.com/suitcss/base
5
+ * A thin layer on top of normalize.css that provides a starting point more
6
+ * suitable for web applications.
7
+ */
8
+
9
+ /**
10
+ * Removes the default spacing and border for appropriate elements.
11
+ */
12
+
13
+ blockquote,
14
+ dl,
15
+ dd,
16
+ h1,
17
+ h2,
18
+ h3,
19
+ h4,
20
+ h5,
21
+ h6,
22
+ hr,
23
+ figure,
24
+ p,
25
+ pre {
26
+ margin: 0;
27
+ }
28
+
29
+ button {
30
+ background-color: transparent;
31
+ background-image: none;
32
+ padding: 0;
33
+ }
34
+
35
+ /**
36
+ * Work around a Firefox/IE bug where the transparent `button` background
37
+ * results in a loss of the default `button` focus styles.
38
+ */
39
+
40
+ button:focus {
41
+ outline: 1px dotted;
42
+ outline: 5px auto -webkit-focus-ring-color;
43
+ }
44
+
45
+ fieldset {
46
+ margin: 0;
47
+ padding: 0;
48
+ }
49
+
50
+ ol,
51
+ ul {
52
+ list-style: none;
53
+ margin: 0;
54
+ padding: 0;
55
+ }
56
+
57
+ /**
58
+ * Tailwind custom reset styles
59
+ */
60
+
61
+ /**
62
+ * 1. Use the user's configured `sans` font-family (with Tailwind's default
63
+ * sans-serif font stack as a fallback) as a sane default.
64
+ * 2. Use Tailwind's default "normal" line-height so the user isn't forced
65
+ * to override it to ensure consistency even when using the default theme.
66
+ */
67
+
68
+ html {
69
+ font-family: $font-sans; /* 1 */
70
+ line-height: 1.5; /* 2 */
71
+ }
72
+
73
+ /**
74
+ * 1. Prevent padding and border from affecting element width.
75
+ *
76
+ * We used to set this in the html element and inherit from
77
+ * the parent element for everything else. This caused issues
78
+ * in shadow-dom-enhanced elements like <details> where the content
79
+ * is wrapped by a div with box-sizing set to `content-box`.
80
+ *
81
+ * https://github.com/mozdevs/cssremedy/issues/4
82
+ *
83
+ *
84
+ * 2. Allow adding a border to an element by just adding a border-width.
85
+ *
86
+ * By default, the way the browser specifies that an element should have no
87
+ * border is by setting it's border-style to `none` in the user-agent
88
+ * stylesheet.
89
+ *
90
+ * In order to easily add borders to elements by just setting the `border-width`
91
+ * property, we change the default border-style for all elements to `solid`, and
92
+ * use border-width to hide them instead. This way our `border` utilities only
93
+ * need to set the `border-width` property instead of the entire `border`
94
+ * shorthand, making our border utilities much more straightforward to compose.
95
+ *
96
+ * https://github.com/tailwindcss/tailwindcss/pull/116
97
+ */
98
+
99
+ *,
100
+ ::before,
101
+ ::after {
102
+ box-sizing: border-box; /* 1 */
103
+ border-width: 0; /* 2 */
104
+ border-style: solid; /* 2 */
105
+ border-color: $gray-300; /* 2 */
106
+ }
107
+
108
+ /*
109
+ * Ensure horizontal rules are visible by default
110
+ */
111
+
112
+ hr {
113
+ border-top-width: 1px;
114
+ }
115
+
116
+ /**
117
+ * Undo the `border-style: none` reset that Normalize applies to images so that
118
+ * our `border-{width}` utilities have the expected effect.
119
+ *
120
+ * The Normalize reset is unnecessary for us since we default the border-width
121
+ * to 0 on all elements.
122
+ *
123
+ * https://github.com/tailwindcss/tailwindcss/issues/362
124
+ */
125
+
126
+ img {
127
+ border-style: solid;
128
+ }
129
+
130
+ textarea {
131
+ resize: vertical;
132
+ }
133
+
134
+ input::placeholder,
135
+ textarea::placeholder {
136
+ color: #a0aec0;
137
+ }
138
+
139
+ button,
140
+ [role="button"] {
141
+ cursor: pointer;
142
+ }
143
+
144
+ table {
145
+ border-collapse: collapse;
146
+ }
147
+
148
+ h1,
149
+ h2,
150
+ h3,
151
+ h4,
152
+ h5,
153
+ h6 {
154
+ font-size: inherit;
155
+ font-weight: inherit;
156
+ }
157
+
158
+ /**
159
+ * Reset links to optimize for opt-in styling instead of
160
+ * opt-out.
161
+ */
162
+
163
+ a {
164
+ color: inherit;
165
+ text-decoration: inherit;
166
+ }
167
+
168
+ /**
169
+ * Reset form element properties that are easy to forget to
170
+ * style explicitly so you don't inadvertently introduce
171
+ * styles that deviate from your design system. These styles
172
+ * supplement a partial reset that is already applied by
173
+ * normalize.css.
174
+ */
175
+
176
+ button,
177
+ input,
178
+ optgroup,
179
+ select,
180
+ textarea {
181
+ padding: 0;
182
+ line-height: inherit;
183
+ color: inherit;
184
+ }
185
+
186
+ /**
187
+ * Use the configured 'mono' font family for elements that
188
+ * are expected to be rendered with a monospace font, falling
189
+ * back to the system monospace stack if there is no configured
190
+ * 'mono' font family.
191
+ */
192
+
193
+ pre,
194
+ code,
195
+ kbd,
196
+ samp {
197
+ font-family: $font-mono;
198
+ }
199
+
200
+ /**
201
+ * Make replaced elements `display: block` by default as that's
202
+ * the behavior you want almost all of the time. Inspired by
203
+ * CSS Remedy, with `svg` added as well.
204
+ *
205
+ * https://github.com/mozdevs/cssremedy/issues/14
206
+ */
207
+
208
+ img,
209
+ svg,
210
+ video,
211
+ canvas,
212
+ audio,
213
+ iframe,
214
+ embed,
215
+ object {
216
+ display: block;
217
+ vertical-align: middle;
218
+ }
219
+
220
+ /**
221
+ * Constrain images and videos to the parent width and preserve
222
+ * their instrinsic aspect ratio.
223
+ *
224
+ * https://github.com/mozdevs/cssremedy/issues/14
225
+ */
226
+
227
+ img,
228
+ video {
229
+ max-width: 100%;
230
+ height: auto;
231
+ }
@@ -0,0 +1,3 @@
1
+ @import "base/normalize";
2
+ @import "base/preflight";
3
+ @import "base/breadboard";
@@ -0,0 +1,49 @@
1
+ // ************************************************
2
+ // Float
3
+ // ************************************************
4
+ @mixin clearfix {
5
+ &:after {
6
+ content: "";
7
+ display: table;
8
+ clear: both;
9
+ }
10
+ }
11
+
12
+ // ************************************************
13
+ // Word Break
14
+ // ************************************************
15
+ @mixin break-normal {
16
+ word-break: normal;
17
+ overflow-wrap: normal
18
+ }
19
+
20
+ @mixin truncate {
21
+ overflow: hidden;
22
+ text-overflow: ellipsis;
23
+ white-space: nowrap;
24
+ }
25
+
26
+ // ************************************************
27
+ // Font Smoothing
28
+ // ************************************************
29
+ @mixin antialiased {
30
+ -webkit-font-smoothing: antialiased;
31
+ -moz-osx-font-smoothing: grayscale;
32
+ }
33
+
34
+ @mixin subpixel-antialiased {
35
+ -webkit-font-smoothing: auto;
36
+ -moz-osx-font-smoothing: auto;
37
+ }
38
+
39
+ // ************************************************
40
+ // Container
41
+ // ************************************************
42
+ @mixin make-container($padding, $max-width) {
43
+ width: 100%;
44
+ padding-right: $padding;
45
+ padding-left: $padding;
46
+ margin-right: auto;
47
+ margin-left: auto;
48
+ max-width: $max-width;
49
+ }
@@ -0,0 +1,22 @@
1
+ // *******************************************************************
2
+ // Border Style
3
+ // Variables for controlling the style of an element's borders.
4
+ // border-radius: $rounded-none;
5
+ // *******************************************************************
6
+ $rounded-none: 0;
7
+ $rounded-sm: 0.125rem;
8
+ $rounded: 0.25rem;
9
+ $rounded-md: 0.375rem;
10
+ $rounded-lg: 0.5rem;
11
+ $rounded-full: 9999px;
12
+
13
+ // *******************************************************************
14
+ // Border Width
15
+ // Utilities for controlling the width of an element's borders.
16
+ // border-width: $border;
17
+ // *******************************************************************
18
+ $border: 1px;
19
+ $border-0: 0;
20
+ $border-2: 2px;
21
+ $border-4: 4px;
22
+ $border-8: 8px;
@@ -0,0 +1,9 @@
1
+ // *******************************************************************
2
+ // Breakpoints
3
+ // Customizing the default breakpoints for your project.
4
+ // @media (min-width: $breakpoint-md) { }
5
+ // *******************************************************************
6
+ $breakpoint-sm: 640px;
7
+ $breakpoint-md: 768px;
8
+ $breakpoint-lg: 1024px;
9
+ $breakpoint-xl: 1280px;
@@ -0,0 +1,108 @@
1
+ // *******************************************************************
2
+ // Default color palette
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
+ // *******************************************************************
5
+ $transparent: 'transparent';
6
+
7
+ $black: #000;
8
+ $white: #fff;
9
+
10
+ $gray-100: #f7fafc;
11
+ $gray-200: #edf2f7;
12
+ $gray-300: #e2e8f0;
13
+ $gray-400: #cbd5e0;
14
+ $gray-500: #a0aec0;
15
+ $gray-600: #718096;
16
+ $gray-700: #4a5568;
17
+ $gray-800: #2d3748;
18
+ $gray-900: #1a202c;
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;
@@ -0,0 +1,26 @@
1
+ // *******************************************************************
2
+ // Box Shadow
3
+ // Variables for controlling the box shadow of an element.
4
+ // box-shadow: $shadow;
5
+ // *******************************************************************
6
+ $shadow-xs: 0 0 0 1px rgba(0, 0, 0, 0.05);
7
+ $shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
8
+ $shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
9
+ $shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
10
+ $shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
11
+ $shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
12
+ $shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
13
+ $shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
14
+ $shadow-outline: 0 0 0 3px rgba(66, 153, 225, 0.5);
15
+ $shadow-none: none;
16
+
17
+ // *******************************************************************
18
+ // Opacity
19
+ // Utilities for controlling the opacity of an element.
20
+ // opacity: $opacity-25;
21
+ // *******************************************************************
22
+ $opacity-0: 0;
23
+ $opacity-25: 0.25;
24
+ $opacity-50: 0.50;
25
+ $opacity-75: 0.75;
26
+ $opacity-100: 1;
@@ -0,0 +1,9 @@
1
+ // *******************************************************************
2
+ // Flex
3
+ // Variables for controlling how flex items both grow and shrink.
4
+ // flex: $$flex-1;
5
+ // *******************************************************************
6
+ $flex-1: 1 1 0%;
7
+ $flex-auto: 1 1 auto;
8
+ $flex-initial: 0 1 auto;
9
+ $flex-none: none;
@@ -0,0 +1,28 @@
1
+ // *******************************************************************
2
+ // Default spacing scale
3
+ // By default, Tailwind includes a generous and comprehensive numeric spacing scale.
4
+ // Use as gap, padding, margin, width, height, transform
5
+ // *******************************************************************
6
+ $size-0: 0;
7
+ $size-1: 0.25rem;
8
+ $size-2: 0.5rem;
9
+ $size-3: 0.75rem;
10
+ $size-4: 1rem;
11
+ $size-5: 1.25rem;
12
+ $size-6: 1.5rem;
13
+ $size-8: 2rem;
14
+ $size-10: 2.5rem;
15
+ $size-12: 3rem;
16
+ $size-16: 4rem;
17
+ $size-20: 5rem;
18
+ $size-24: 6rem;
19
+ $size-32: 8rem;
20
+ $size-40: 10rem;
21
+ $size-48: 12rem;
22
+ $size-56: 14rem;
23
+ $size-64: 16rem;
24
+ $size-px: 1px;
25
+
26
+ $size-auto: auto;
27
+ $size-full: 100%;
28
+ $size-screen: 100vw;
@@ -0,0 +1,35 @@
1
+ // *******************************************************************
2
+ // Scale
3
+ // Variables for scaling elements with transform.
4
+ // transform: scale($scale-0);
5
+ // *******************************************************************
6
+ $scale-0: 0;
7
+ $scale-50: 0.50;
8
+ $scale-75: 0.75;
9
+ $scale-90: 0.90;
10
+ $scale-95: 95;
11
+ $scale-100: 1;
12
+ $scale-105: 1.05;
13
+ $scale-110: 1.10;
14
+ $scale-125: 1.25;
15
+ $scale-150: 1.50;
16
+
17
+ // *******************************************************************
18
+ // Rotate
19
+ // Variables for rotating elements with transform.
20
+ // transform: rotate($rotate-45);
21
+ // *******************************************************************
22
+ $rotate-0: 0;
23
+ $rotate-45: 45deg;
24
+ $rotate-90: 90deg;
25
+ $rotate-180: 180deg;
26
+
27
+ // *******************************************************************
28
+ // Skew
29
+ // Variables for skewing elements with transform.
30
+ // transform: skew($skew-3);
31
+ // *******************************************************************
32
+ $skew-0: 0;
33
+ $skew-3: 3deg;
34
+ $skew-6: 6deg;
35
+ $skew-12: 12deg;
@@ -0,0 +1,36 @@
1
+ // *******************************************************************
2
+ // Transition Property
3
+ // Variables for controlling which CSS properties transition.
4
+ // transition-property: $transition;
5
+ // *******************************************************************
6
+ $transition-none: none;
7
+ $transition-all: all;
8
+ $transition: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
9
+ $transition-colors: background-color, border-color, color, fill, stroke;
10
+ $transition-opacity: opacity;
11
+ $transition-shadow: box-shadow;
12
+ $transition-transform: transform;
13
+
14
+ // *******************************************************************
15
+ // Transition Duration
16
+ // Variables for controlling the duration of CSS transitions.
17
+ // transition-duration: $duration-75;
18
+ // *******************************************************************
19
+ $duration-75: 75ms;
20
+ $duration-100: 100ms;
21
+ $duration-150: 150ms;
22
+ $duration-200: 200ms;
23
+ $duration-300: 300ms;
24
+ $duration-500: 500ms;
25
+ $duration-700: 700ms;
26
+ $duration-1000: 1000ms;
27
+
28
+ // *******************************************************************
29
+ // Transition Timing Function
30
+ // Variables for controlling the easing of CSS transitions.
31
+ // transition-timing-function: $ease-linear;
32
+ // *******************************************************************
33
+ $ease-linear: linear;
34
+ $ease-in: cubic-bezier(0.4, 0, 1, 1);
35
+ $ease-out: cubic-bezier(0, 0, 0.2, 1);
36
+ $ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
@@ -0,0 +1,72 @@
1
+ // *******************************************************************
2
+ // Font Family
3
+ // Variables for controlling the font family of an element.
4
+ // font-family: $font-sans;
5
+ // *******************************************************************
6
+
7
+ $font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
8
+ $font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
9
+ $font-mono: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
10
+
11
+ // *******************************************************************
12
+ // Font Size
13
+ // Variables for controlling the font size of an element.
14
+ // font-size: $text-xs;
15
+ // *******************************************************************
16
+ $text-xs: 0.75rem;
17
+ $text-sm: 0.875rem;
18
+ $text-base: 1rem;
19
+ $text-lg: 1.125rem;
20
+ $text-xl: 1.25rem;
21
+ $text-2xl: 1.5rem;
22
+ $text-3xl: 1.875rem;
23
+ $text-4xl: 2.25rem;
24
+ $text-5xl: 3rem;
25
+ $text-6xl: 4rem;
26
+
27
+ // *******************************************************************
28
+ // Font Weight
29
+ // Variables for controlling the font weight of an element.
30
+ // font-weight: $font-hairline;
31
+ // *******************************************************************
32
+ $font-hairline: 100;
33
+ $font-thin: 200;
34
+ $font-light: 200;
35
+ $font-normal: 400;
36
+ $font-medium: 500;
37
+ $font-semibold: 600;
38
+ $font-bold: 700;
39
+ $font-extrabold: 800;
40
+ $font-black: 900;
41
+
42
+ // *******************************************************************
43
+ // Line Height
44
+ // Variables for controlling the leading (line height) of an element.
45
+ // line-height: $leading-tight;
46
+ // *******************************************************************
47
+ $leading-none: 1;
48
+ $leading-tight: 1.25;
49
+ $leading-snug: 1.375;
50
+ $leading-normal: 1.5;
51
+ $leading-relaxed: 1.625;
52
+ $leading-loose: 1.2;
53
+ $leading-3: .75rem;
54
+ $leading-4: 1rem;
55
+ $leading-5: 1.25rem;
56
+ $leading-6: 1.5rem;
57
+ $leading-7: 1.75rem;
58
+ $leading-8: 2rem;
59
+ $leading-9: 2.25rem;
60
+ $leading-10: 2.5rem;
61
+
62
+ // *******************************************************************
63
+ // Letter Spacing
64
+ // Variables for controlling the tracking (letter spacing) of an element.
65
+ // letter-spacing: $tracking-tighter;
66
+ // *******************************************************************
67
+ $tracking-tighter: -0.05em;
68
+ $tracking-tight: -0.025em;
69
+ $tracking-normal: 0;
70
+ $tracking-wide: 0.025em;
71
+ $tracking-wider: 0.05em;
72
+ $tracking-widest: 0.1em;