@maalbuquerque/tailsass 1.0.0

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.
@@ -0,0 +1,384 @@
1
+ @use 'modifiers' as *;
2
+
3
+ $displays: (
4
+ inline: (
5
+ display: inline
6
+ ),
7
+ block: (
8
+ display: block
9
+ ),
10
+ inline-block: (
11
+ display: inline-block
12
+ ),
13
+ flow-root: (
14
+ display: flow-root
15
+ ),
16
+ flex: (
17
+ display: flex
18
+ ),
19
+ inline-flex: (
20
+ display: inline-flex
21
+ ),
22
+ grid: (
23
+ display: grid
24
+ ),
25
+ inline-grid: (
26
+ display: inline-grid
27
+ ),
28
+ contents: (
29
+ display: contents
30
+ ),
31
+ table: (
32
+ display: table
33
+ ),
34
+ inline-table: (
35
+ display: inline-table
36
+ ),
37
+ table-caption: (
38
+ display: table-caption
39
+ ),
40
+ table-cell: (
41
+ display: table-cell
42
+ ),
43
+ table-column: (
44
+ display: table-column
45
+ ),
46
+ table-column-group: (
47
+ display: table-column-group
48
+ ),
49
+ table-footer-group: (
50
+ display: table-footer-group
51
+ ),
52
+ table-header-group: (
53
+ display: table-header-group
54
+ ),
55
+ table-row-group: table-row-group,
56
+ table-row: (
57
+ display: table-row
58
+ ),
59
+ list-item: (
60
+ display: list-item
61
+ ),
62
+ hidden: (
63
+ display: none
64
+ ),
65
+ flex-none: (
66
+ flex: none
67
+ ),
68
+ flex-row: (
69
+ flex-direction: row
70
+ ),
71
+ flex-col: (
72
+ flex-direction: column
73
+ ),
74
+ flex-row-reverse: (
75
+ flex-direction: row-reverse
76
+ ),
77
+ flex-col-reverse: (
78
+ flex-direction: column-reverse
79
+ ),
80
+ flex-wrap: (
81
+ flex-wrap: wrap
82
+ ),
83
+ flex-nowrap: (
84
+ flex-wrap: nowrap
85
+ ),
86
+ flex-wrap-reverse: (
87
+ flex-wrap: wrap-reverse
88
+ ),
89
+ flex-auto: (
90
+ flex: auto
91
+ ),
92
+ flex-initial: (
93
+ flex: 0 auto
94
+ ),
95
+ grow-0: (
96
+ flex-grow: 0
97
+ ),
98
+ grow: (
99
+ flex-grow: 1
100
+ ),
101
+ shrink-0: (
102
+ flex-shrink: 0
103
+ ),
104
+ shrink: (
105
+ flex-shrink: 1
106
+ ),
107
+ float-left: (
108
+ float: left
109
+ ),
110
+ float-right: (
111
+ float: right
112
+ ),
113
+ float-none: (
114
+ float: none
115
+ ),
116
+ float-start: (
117
+ float: inline-start
118
+ ),
119
+ float-end: (
120
+ float: inline-end
121
+ ),
122
+ clear-left: (
123
+ clear: left
124
+ ),
125
+ clear-right: (
126
+ clear: right
127
+ ),
128
+ clear-both: (
129
+ clear: both
130
+ ),
131
+ clear-none: (
132
+ clear: none
133
+ ),
134
+ clear-start: (
135
+ clear: inline-start
136
+ ),
137
+ clear-end: (
138
+ clear: inline-end
139
+ ),
140
+ visible: (
141
+ visibility: visible
142
+ ),
143
+ invisible: (
144
+ visibility: hidden
145
+ ),
146
+ collapse: (
147
+ visibility: collapse
148
+ ),
149
+ justify-start: (
150
+ justify-content: flex-start
151
+ ),
152
+ justify-end: (
153
+ justify-content: flex-end
154
+ ),
155
+ justify-center: (
156
+ justify-content: center
157
+ ),
158
+ justify-between: (
159
+ justify-content: space-between
160
+ ),
161
+ justify-around: (
162
+ justify-content: space-around
163
+ ),
164
+ justify-evenly: (
165
+ justify-content: space-evenly
166
+ ),
167
+ justify-stretch: (
168
+ justify-content: stretch
169
+ ),
170
+ justify-items-start: (
171
+ justify-items: start
172
+ ),
173
+ justify-items-end: (
174
+ justify-items: end
175
+ ),
176
+ justify-items-center: (
177
+ justify-items: center
178
+ ),
179
+ justify-items-stretch: (
180
+ justify-items: stretch
181
+ ),
182
+ justify-self-start: (
183
+ justify-self: start
184
+ ),
185
+ justify-self-end: (
186
+ justify-self: end
187
+ ),
188
+ justify-self-center: (
189
+ justify-self: center
190
+ ),
191
+ justify-self-auto: (
192
+ justify-self: auto
193
+ ),
194
+ justify-self-stretch: (
195
+ justify-self: stretch
196
+ ),
197
+ content-normal: (
198
+ align-content: normal
199
+ ),
200
+ content-start: (
201
+ align-content: flex-start
202
+ ),
203
+ content-end: (
204
+ align-content: flex-end
205
+ ),
206
+ content-center: (
207
+ align-content: center
208
+ ),
209
+ content-between: (
210
+ align-content: space-between
211
+ ),
212
+ content-around: (
213
+ align-content: space-around
214
+ ),
215
+ content-evenly: (
216
+ align-content: space-evenly
217
+ ),
218
+ content-stretch: (
219
+ align-content: stretch
220
+ ),
221
+ items-start: (
222
+ align-items: flex-start
223
+ ),
224
+ items-end: (
225
+ align-items: flex-end
226
+ ),
227
+ items-center: (
228
+ align-items: center
229
+ ),
230
+ items-stretch: (
231
+ align-items: stretch
232
+ ),
233
+ items-baseline: (
234
+ align-items: baseline
235
+ ),
236
+ self-start: (
237
+ align-self: start
238
+ ),
239
+ self-end: (
240
+ align-self: end
241
+ ),
242
+ self-center: (
243
+ align-self: center
244
+ ),
245
+ self-auto: (
246
+ align-self: auto
247
+ ),
248
+ self-stretch: (
249
+ align-self: stretch
250
+ ),
251
+ self-baseline: (
252
+ align-self: baseline
253
+ ),
254
+ place-content-start: (
255
+ place-content: start
256
+ ),
257
+ place-content-end: (
258
+ place-content: end
259
+ ),
260
+ place-content-center: (
261
+ place-content: center
262
+ ),
263
+ place-content-between: (
264
+ place-content: space-between
265
+ ),
266
+ place-content-around: (
267
+ place-content: space-around
268
+ ),
269
+ place-content-evenly: (
270
+ place-content: space-evenly
271
+ ),
272
+ place-content-stretch: (
273
+ place-content: stretch
274
+ ),
275
+ place-items-start: (
276
+ place-items: start
277
+ ),
278
+ place-items-end: (
279
+ place-items: end
280
+ ),
281
+ place-items-center: (
282
+ place-items: center
283
+ ),
284
+ place-items-stretch: (
285
+ place-items: stretch
286
+ ),
287
+ place-items-baseline: (
288
+ place-items: baseline
289
+ ),
290
+ place-self-start: (
291
+ place-self: start
292
+ ),
293
+ place-self-end: (
294
+ place-self: end
295
+ ),
296
+ place-self-center: (
297
+ place-self: center
298
+ ),
299
+ place-self-auto: (
300
+ place-self: auto
301
+ ),
302
+ place-self-stretch: (
303
+ place-self: stretch
304
+ ),
305
+ sr-only: (
306
+ position: absolute,
307
+ width: 1px,
308
+ height: 1px,
309
+ padding: 0,
310
+ margin: -1px,
311
+ overflow: hidden,
312
+ clip: rect(0, 0, 0, 0),
313
+ white-space: nowrap,
314
+ border: 0
315
+ ),
316
+ );
317
+
318
+ @mixin apply-displays($prefix: '.') {
319
+ @each $display, $value in $displays {
320
+ #{$prefix}#{$display} {
321
+ @each $key, $value in $value {
322
+ #{$key}: $value;
323
+ }
324
+ }
325
+ }
326
+ @for $i from 1 through 12 {
327
+ #{$prefix}columns-#{$i} {
328
+ columns: $i;
329
+ }
330
+ #{$prefix}grid-cols-#{$i} {
331
+ grid-template-columns: repeat($i, minmax(0, 1fr));
332
+ }
333
+ #{$prefix}grid-rows-#{$i} {
334
+ grid-template-rows: repeat($i, minmax(0, 1fr));
335
+ }
336
+ #{$prefix}col-span-#{$i} {
337
+ grid-column: span $i / span $i;
338
+ }
339
+ #{$prefix}col-start-#{$i} {
340
+ grid-column-start: $i;
341
+ }
342
+ #{$prefix}col-end-#{$i} {
343
+ grid-column-end: $i;
344
+ }
345
+ #{$prefix}row-span-#{$i} {
346
+ grid-row: span $i / span $i;
347
+ }
348
+ #{$prefix}row-start-#{$i} {
349
+ grid-row-start: $i;
350
+ }
351
+ #{$prefix}row-end-#{$i} {
352
+ grid-row-end: $i;
353
+ }
354
+ #{$prefix}flex-#{$i} {
355
+ flex: $i;
356
+ }
357
+ #{$prefix}order-#{$i} {
358
+ order: $i;
359
+ }
360
+ #{$prefix}z-#{$i * 10} {
361
+ z-index: $i * 10;
362
+ }
363
+ }
364
+ #{$prefix}col-span-full {
365
+ grid-column: 1 / -1;
366
+ }
367
+ #{$prefix}row-span-full {
368
+ grid-row: 1 / -1;
369
+ }
370
+ #{$prefix}col-auto {
371
+ grid-column: auto;
372
+ }
373
+ #{$prefix}row-auto {
374
+ grid-row: auto;
375
+ }
376
+ }
377
+
378
+ @include apply-displays('.');
379
+
380
+ @each $breakpoint, $value in $breakpoints {
381
+ @media (min-width: $value) {
382
+ @include apply-displays(bp-prefix($breakpoint));
383
+ }
384
+ }
@@ -0,0 +1,15 @@
1
+ @use 'modifiers' as *;
2
+
3
+ @mixin apply-opacity($prefix: '.', $postfix: '') {
4
+ @for $i from 0 through 10 {
5
+ #{$prefix}opacity-#{$i * 10}#{$postfix} {
6
+ opacity: calc($i * 0.1);
7
+ }
8
+ }
9
+ }
10
+
11
+ @include apply-opacity('.');
12
+
13
+ @each $state in $states {
14
+ @include apply-opacity('.#{$state}\\:', ':#{$state}');
15
+ }
@@ -0,0 +1,23 @@
1
+ $list-styles: (
2
+ disc: (
3
+ list-style-type: disc
4
+ ),
5
+ decimal: (
6
+ list-style-type: decimal
7
+ ),
8
+ none: (
9
+ list-style-type: none
10
+ )
11
+ );
12
+
13
+ @mixin apply-list-styles($prefix: '.') {
14
+ @each $style, $value in $list-styles {
15
+ #{$prefix}list-#{$style} {
16
+ @each $key, $value in $value {
17
+ #{$key}: $value;
18
+ }
19
+ }
20
+ }
21
+ };
22
+
23
+ @include apply-list-styles('.');
@@ -0,0 +1,31 @@
1
+ @use 'sass:string';
2
+
3
+ $breakpoints: (
4
+ xs: 480px,
5
+ sm: 640px,
6
+ md: 768px,
7
+ lg: 1024px,
8
+ xl: 1280px,
9
+ '2xl': 1536px,
10
+ '3xl': 1920px
11
+ );
12
+
13
+ $states: hover, focus, active;
14
+
15
+ $color-schemes: light, dark;
16
+
17
+ // CSS identifiers cannot start with a digit unless escaped (e.g. 2xl → \32 xl).
18
+ @function escape-ident($name) {
19
+ $str: #{$name};
20
+ $first: string.slice($str, 1, 1);
21
+
22
+ @if string.index('0123456789', $first) != null {
23
+ @return '\\3' + $first + ' ' + string.slice($str, 2);
24
+ }
25
+
26
+ @return $str;
27
+ }
28
+
29
+ @function bp-prefix($breakpoint) {
30
+ @return '.#{escape-ident($breakpoint)}\\:';
31
+ }
@@ -0,0 +1,29 @@
1
+ @use 'modifiers' as *;
2
+
3
+ $overflows: (
4
+ overflow-auto: auto,
5
+ overflow-hidden: hidden,
6
+ overflow-visible: visible,
7
+ overflow-clip: clip,
8
+ overflow-scroll: scroll,
9
+ overflow-x-auto: auto-x,
10
+ overflow-y-auto: auto-y,
11
+ overflow-x-hidden: hidden-x,
12
+ overflow-y-hidden: hidden-y,
13
+ overflow-x-visible: visible-x,
14
+ overflow-y-visible: visible-y,
15
+ overflow-x-clip: clip-x,
16
+ overflow-y-clip: clip-y,
17
+ overflow-x-scroll: scroll-x,
18
+ overflow-y-scroll: scroll-y
19
+ );
20
+
21
+ @mixin apply-overflows($prefix: '.') {
22
+ @each $overflow, $value in $overflows {
23
+ #{$prefix}#{$overflow} {
24
+ overflow: $value;
25
+ }
26
+ }
27
+ }
28
+
29
+ @include apply-overflows('.');
@@ -0,0 +1,26 @@
1
+ @use 'variables';
2
+ @use 'modifiers' as *;
3
+
4
+ $positions: (
5
+ static: static,
6
+ relative: relative,
7
+ absolute: absolute,
8
+ fixed: fixed,
9
+ sticky: sticky
10
+ );
11
+
12
+ @mixin apply-positions($prefix: '.') {
13
+ @each $position, $value in $positions {
14
+ #{$prefix}#{$position} {
15
+ position: $value;
16
+ }
17
+ }
18
+ }
19
+
20
+ @include apply-positions('.');
21
+
22
+ @each $breakpoint, $value in $breakpoints {
23
+ @media (min-width: $value) {
24
+ @include apply-positions(bp-prefix($breakpoint));
25
+ }
26
+ }
@@ -0,0 +1,149 @@
1
+ *,
2
+ ::after,
3
+ ::before,
4
+ ::backdrop,
5
+ ::file-selector-button {
6
+ margin: 0;
7
+ padding: 0;
8
+ box-sizing: border-box;
9
+ border: 0 solid;
10
+ }
11
+
12
+ html {
13
+ font-family:
14
+ system-ui,
15
+ 'Segoe UI',
16
+ Roboto,
17
+ Helvetica,
18
+ Arial,
19
+ sans-serif,
20
+ 'Apple Color Emoji',
21
+ 'Segoe UI Emoji';
22
+ line-height: 1.15;
23
+ -webkit-text-size-adjust: 100%;
24
+ tab-size: 4;
25
+ }
26
+
27
+ body {
28
+ margin: 0;
29
+ }
30
+
31
+ b,
32
+ strong {
33
+ font-weight: bolder;
34
+ }
35
+
36
+ code,
37
+ kbd,
38
+ samp,
39
+ pre {
40
+ font-family:
41
+ ui-monospace,
42
+ SFMono-Regular,
43
+ Consolas,
44
+ 'Liberation Mono',
45
+ Menlo,
46
+ monospace;
47
+ font-size: 1em;
48
+ }
49
+
50
+ small {
51
+ font-size: 80%;
52
+ }
53
+
54
+ sub,
55
+ sup {
56
+ font-size: 75%;
57
+ line-height: 0;
58
+ position: relative;
59
+ vertical-align: baseline;
60
+ }
61
+
62
+ sub {
63
+ bottom: -0.25em;
64
+ }
65
+
66
+ sup {
67
+ top: -0.5em;
68
+ }
69
+
70
+ table {
71
+ border-color: currentcolor;
72
+ }
73
+
74
+ button,
75
+ input,
76
+ optgroup,
77
+ select,
78
+ textarea {
79
+ font-family: inherit; /* 1 */
80
+ font-size: 100%; /* 1 */
81
+ line-height: 1.15; /* 1 */
82
+ margin: 0; /* 2 */
83
+ }
84
+
85
+ button,
86
+ [type='button'],
87
+ [type='reset'],
88
+ [type='submit'] {
89
+ appearance: button;
90
+ -webkit-appearance: button;
91
+ }
92
+
93
+ legend {
94
+ padding: 0;
95
+ }
96
+
97
+ progress {
98
+ vertical-align: baseline;
99
+ }
100
+
101
+
102
+ ::-webkit-inner-spin-button,
103
+ ::-webkit-outer-spin-button {
104
+ height: auto;
105
+ }
106
+
107
+ [type='search'] {
108
+ appearance: textfield;
109
+ -webkit-appearance: textfield;
110
+ outline-offset: -2px;
111
+ }
112
+
113
+ ::-webkit-search-decoration {
114
+ -webkit-appearance: none;
115
+ }
116
+
117
+ ::-webkit-file-upload-button {
118
+ -webkit-appearance: button;
119
+ font: inherit;
120
+ }
121
+
122
+ summary {
123
+ display: list-item;
124
+ }
125
+
126
+ h1,
127
+ h2,
128
+ h3,
129
+ h4,
130
+ h5,
131
+ h6 { font-size: inherit; font-weight: inherit;}
132
+
133
+ ol,
134
+ ul,
135
+ menu {
136
+ list-style: none;
137
+ }
138
+
139
+ [hidden]:where(:not([hidden="until-found"])) {
140
+ display: none !important;
141
+ }
142
+
143
+ a {
144
+ all: unset; /* Resets all properties to their initial or inherited values */
145
+ display: revert; /* Ensures the display property reverts to its default for an anchor, which is inline */
146
+ text-decoration: initial; /* Reverts text-decoration to its default (underline) */
147
+ color: ihnerit; /* Reverts color to its default (usually blue) */
148
+ cursor: pointer; /* Ensures the cursor remains a pointer on hover */
149
+ }