pallote-css 0.4.0 → 0.6.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.
Files changed (41) hide show
  1. package/package.json +6 -20
  2. package/dist/pallote.min.css +0 -1
  3. package/dist/pallote.min.css.map +0 -1
  4. package/dist/pallote.min.js +0 -1
  5. package/dist/pallote.scss +0 -37
  6. package/dist/styles/common/_editor.scss +0 -181
  7. package/dist/styles/common/_fontface.scss +0 -31
  8. package/dist/styles/common/_functions.scss +0 -11
  9. package/dist/styles/common/_global.scss +0 -157
  10. package/dist/styles/common/_mixins.scss +0 -164
  11. package/dist/styles/common/_reset.scss +0 -145
  12. package/dist/styles/common/_variables.scss +0 -252
  13. package/dist/styles/components/_accordion.scss +0 -132
  14. package/dist/styles/components/_alert.scss +0 -188
  15. package/dist/styles/components/_breadcrumbs.scss +0 -70
  16. package/dist/styles/components/_button.scss +0 -186
  17. package/dist/styles/components/_buttons.scss +0 -52
  18. package/dist/styles/components/_card.scss +0 -316
  19. package/dist/styles/components/_divider.scss +0 -53
  20. package/dist/styles/components/_form.scss +0 -58
  21. package/dist/styles/components/_grid.scss +0 -127
  22. package/dist/styles/components/_input.scss +0 -328
  23. package/dist/styles/components/_link.scss +0 -51
  24. package/dist/styles/components/_list.scss +0 -59
  25. package/dist/styles/components/_nav.scss +0 -274
  26. package/dist/styles/components/_navbar.scss +0 -192
  27. package/dist/styles/components/_page.scss +0 -33
  28. package/dist/styles/components/_section.scss +0 -177
  29. package/dist/styles/components/_sidebar.scss +0 -61
  30. package/dist/styles/components/_snippet.scss +0 -85
  31. package/dist/styles/components/_status.scss +0 -60
  32. package/dist/styles/components/_switch.scss +0 -84
  33. package/dist/styles/components/_table.scss +0 -153
  34. package/dist/styles/components/_tabs.scss +0 -118
  35. package/dist/styles/components/_tag.scss +0 -79
  36. package/dist/styles/modules/_cookie.scss +0 -38
  37. package/dist/styles/utilities/_color.scss +0 -119
  38. package/dist/styles/utilities/_global.scss +0 -211
  39. package/dist/styles/utilities/_grid.scss +0 -124
  40. package/dist/styles/utilities/_layout.scss +0 -127
  41. package/dist/styles/utilities/_text.scss +0 -199
@@ -1,119 +0,0 @@
1
- @use 'sass:list';
2
- @use '../common/variables';
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // fill
6
- // stroke
7
- // —————————————————————————————————————————————————————————————————
8
-
9
- // —————————————————————————————————————————————————————————————————
10
- // fill
11
- // —————————————————————————————————————————————————————————————————
12
-
13
- @mixin fill($colors...) {
14
-
15
- @each $i in $colors {
16
- .fill-#{list.nth($i, 1)} {
17
- color: list.nth($i, 3) !important;
18
- background-color: list.nth($i, 2) !important;
19
-
20
- .card_title {
21
- color: list.nth($i, 3) !important;
22
- }
23
- }
24
- }
25
- }
26
-
27
- @include fill (
28
- "main" variables.$main variables.$text,
29
- "contrast" variables.$contrast variables.$text-contrast,
30
-
31
- "grey90" variables.$grey-90 variables.$text-contrast,
32
- "grey80" variables.$grey-80 variables.$text-contrast,
33
- "grey70" variables.$grey-70 variables.$text-contrast,
34
- "grey60" variables.$grey-60 variables.$text-contrast,
35
- "grey50" variables.$grey-50 variables.$text-contrast,
36
- "grey40" variables.$grey-40 variables.$text,
37
- "grey30" variables.$grey-30 variables.$text,
38
- "grey20" variables.$grey-20 variables.$text,
39
- "grey10" variables.$grey-10 variables.$text,
40
- "grey5" variables.$grey-5 variables.$text,
41
-
42
- "default" variables.$background-default variables.$text,
43
- "paper" variables.$background-paper variables.$text,
44
-
45
- "primaryLight" variables.$primary-light variables.$text,
46
- "primary" variables.$primary variables.$text-contrast,
47
- "primaryDark" variables.$primary-dark variables.$text-contrast,
48
- "secondaryLight" variables.$secondary-light variables.$text,
49
- "secondary" variables.$secondary variables.$text-contrast,
50
- "secondaryDark" variables.$secondary-dark variables.$text-contrast,
51
-
52
- "successLight" variables.$success-light variables.$text,
53
- "success" variables.$success variables.$text-contrast,
54
- "successDark" variables.$success-dark variables.$text-contrast,
55
- "infoLight" variables.$info-light variables.$text,
56
- "info" variables.$info variables.$text-contrast,
57
- "infoDark" variables.$info-dark variables.$text-contrast,
58
- "warningLight" variables.$warning-light variables.$text,
59
- "warning" variables.$warning variables.$text,
60
- "warningDark" variables.$warning-dark variables.$text-contrast,
61
- "errorLight" variables.$error-light variables.$text,
62
- "error" variables.$error variables.$text-contrast,
63
- "errorDark" variables.$error-dark variables.$text-contrast,
64
-
65
- "border" variables.$border-color variables.$text
66
- );
67
-
68
- // —————————————————————————————————————————————————————————————————
69
- // stroke
70
- // —————————————————————————————————————————————————————————————————
71
-
72
- @mixin stroke($colors...) {
73
- @each $i in $colors {
74
- .stroke-#{list.nth($i, 1)} {
75
- border: 1px solid list.nth($i, 2) !important;
76
- }
77
- }
78
- }
79
-
80
- @include stroke (
81
- "main" variables.$main,
82
- "contrast" variables.$contrast,
83
-
84
- "grey90" variables.$grey-90,
85
- "grey80" variables.$grey-80,
86
- "grey70" variables.$grey-70,
87
- "grey60" variables.$grey-60,
88
- "grey50" variables.$grey-50,
89
- "grey40" variables.$grey-40,
90
- "grey30" variables.$grey-30,
91
- "grey20" variables.$grey-20,
92
- "grey10" variables.$grey-10,
93
- "grey5" variables.$grey-5 ,
94
-
95
- "default" variables.$background-default,
96
- "paper" variables.$background-paper,
97
-
98
- "primaryLight" variables.$primary-light,
99
- "primary" variables.$primary,
100
- "primaryDark" variables.$primary-dark,
101
- "secondaryLight" variables.$secondary-light,
102
- "secondary" variables.$secondary,
103
- "secondaryDark" variables.$secondary-dark,
104
-
105
- "successLight" variables.$success-light,
106
- "success" variables.$success,
107
- "successDark" variables.$success-dark,
108
- "infoLight" variables.$info-light,
109
- "info" variables.$info,
110
- "infoDark" variables.$info-dark,
111
- "warningLight" variables.$warning-light,
112
- "warning" variables.$warning,
113
- "warningDark" variables.$warning-dark,
114
- "errorLight" variables.$error-light,
115
- "error" variables.$error,
116
- "errorDark" variables.$error-dark,
117
-
118
- "border" variables.$border-color
119
- );
@@ -1,211 +0,0 @@
1
- @use '../common/mixins';
2
- @use '../common/variables';
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // responsive
6
- // spacing and size
7
- // position
8
- // display
9
- // border
10
- // border-radius
11
- // —————————————————————————————————————————————————————————————————
12
-
13
- // —————————————————————————————————————————————————————————————————
14
- // responsive
15
- // —————————————————————————————————————————————————————————————————
16
-
17
- .hide {
18
-
19
- &-desktop { @include mixins.responsive(down, desktop) { display: none !important; } }
20
- &-laptop { @include mixins.responsive(down, laptop) { display: none !important; } }
21
- &-tablet { @include mixins.responsive(down, tablet) { display: none !important; } }
22
- &-mobile { @include mixins.responsive(down, mobile) { display: none !important; } }
23
- &-mobileSm { @include mixins.responsive(down, mobile-sm) { display: none !important; } }
24
- &-touch { @include mixins.responsive-touch { display: none !important; } }
25
- }
26
-
27
- .show {
28
-
29
- &-desktop { @include mixins.responsive(up, desktop) { display: none !important; } }
30
- &-laptop { @include mixins.responsive(up, laptop) { display: none !important; } }
31
- &-tablet { @include mixins.responsive(up, tablet) { display: none !important; } }
32
- &-mobile { @include mixins.responsive(up, mobile) { display: none !important; } }
33
- &-mobileSm { @include mixins.responsive(up, mobile-sm) { display: none !important; } }
34
- &-touch { @include mixins.responsive-click { display: none !important; } }
35
- }
36
-
37
- // —————————————————————————————————————————————————————————————————
38
- // spacing and size
39
- // —————————————————————————————————————————————————————————————————
40
-
41
- .w-full { width: 100% !important; }
42
- .w-fit { width: fit-content !important; }
43
-
44
- .h-full { height: 100% !important; }
45
- .h-fit { height: fit-content !important; }
46
-
47
- .m-auto { margin: auto !important; }
48
- .mt-auto { margin-top: auto !important; }
49
- .mr-auto { margin-right: auto !important; }
50
- .mb-auto { margin-bottom: auto !important; }
51
- .ml-auto { margin-left: auto !important; }
52
- .mv-auto { margin-top: auto !important; margin-bottom: auto !important; }
53
- .mh-auto { margin-right: auto !important; margin-left: auto !important; }
54
-
55
- // from .25rem to 5rem, every quarter
56
-
57
- $fractions: ( "¼": 0.25, "½": 0.5, "¾": 0.75 );
58
-
59
- @for $i from 0 through 5 {
60
- .w-#{$i} { width: #{$i}rem !important; }
61
- .h-#{$i} { height: #{$i}rem !important; }
62
-
63
- .m-#{$i} { margin: #{$i}rem !important; }
64
- .mt-#{$i} { margin-top: #{$i}rem !important; }
65
- .mr-#{$i} { margin-right: #{$i}rem !important; }
66
- .mb-#{$i} { margin-bottom: #{$i}rem !important; }
67
- .ml-#{$i} { margin-left: #{$i}rem !important; }
68
- .mv-#{$i} { margin-top: #{$i}rem !important; margin-bottom: #{$i}rem !important; }
69
- .mh-#{$i} { margin-right: #{$i}rem !important; margin-left: #{$i}rem !important; }
70
-
71
- .p-#{$i} { padding: #{$i}rem !important; }
72
- .pt-#{$i} { padding-top: #{$i}rem !important; }
73
- .pr-#{$i} { padding-right: #{$i}rem !important; }
74
- .pb-#{$i} { padding-bottom: #{$i}rem !important; }
75
- .pl-#{$i} { padding-left: #{$i}rem !important; }
76
- .pv-#{$i} { padding-top: #{$i}rem !important; padding-bottom: #{$i}rem !important; }
77
- .ph-#{$i} { padding-right: #{$i}rem !important; padding-left: #{$i}rem !important; }
78
-
79
- @each $symbol, $value in $fractions {
80
-
81
- @if $i == 0 {
82
- .w-#{$symbol} { width: #{$i + $value}rem !important; }
83
- .h-#{$symbol} { height: #{$i + $value}rem !important; }
84
-
85
- .m-#{$symbol} { margin: #{$i + $value}rem !important; }
86
- .mt-#{$symbol} { margin-top: #{$i + $value}rem !important; }
87
- .mr-#{$symbol} { margin-right: #{$i + $value}rem !important; }
88
- .mb-#{$symbol} { margin-bottom: #{$i + $value}rem !important; }
89
- .ml-#{$symbol} { margin-left: #{$i + $value}rem !important; }
90
- .mv-#{$symbol} { margin-top: #{$i + $value}rem !important; margin-bottom: #{$i + $value}rem !important; }
91
- .mh-#{$symbol} { margin-right: #{$i + $value}rem !important; margin-left: #{$i + $value}rem !important; }
92
-
93
- .p-#{$symbol} { padding: #{$i + $value}rem !important; }
94
- .pt-#{$symbol} { padding-top: #{$i + $value}rem !important; }
95
- .pr-#{$symbol} { padding-right: #{$i + $value}rem !important; }
96
- .pb-#{$symbol} { padding-bottom: #{$i + $value}rem !important; }
97
- .pl-#{$symbol} { padding-left: #{$i + $value}rem !important; }
98
- .pv-#{$symbol} { padding-top: #{$i + $value}rem !important; padding-bottom: #{$i + $value}rem !important; }
99
- .ph-#{$symbol} { padding-right: #{$i + $value}rem !important; padding-left: #{$i + $value}rem !important; }
100
-
101
- } @else {
102
- .w-#{$i}#{$symbol} { width: #{$i + $value}rem !important; }
103
- .h-#{$i}#{$symbol} { height: #{$i + $value}rem !important; }
104
-
105
- .m-#{$i}#{$symbol} { margin: #{$i + $value}rem !important; }
106
- .mt-#{$i}#{$symbol} { margin-top: #{$i + $value}rem !important; }
107
- .mr-#{$i}#{$symbol} { margin-right: #{$i + $value}rem !important; }
108
- .mb-#{$i}#{$symbol} { margin-bottom: #{$i + $value}rem !important; }
109
- .ml-#{$i}#{$symbol} { margin-left: #{$i + $value}rem !important; }
110
- .mv-#{$i}#{$symbol} { margin-top: #{$i + $value}rem !important; margin-bottom: #{$i + $value}rem !important; }
111
- .mh-#{$i}#{$symbol} { margin-right: #{$i + $value}rem !important; margin-left: #{$i + $value}rem !important; }
112
-
113
- .p-#{$i}#{$symbol} { padding: #{$i + $value}rem !important; }
114
- .pt-#{$i}#{$symbol} { padding-top: #{$i + $value}rem !important; }
115
- .pr-#{$i}#{$symbol} { padding-right: #{$i + $value}rem !important; }
116
- .pb-#{$i}#{$symbol} { padding-bottom: #{$i + $value}rem !important; }
117
- .pl-#{$i}#{$symbol} { padding-left: #{$i + $value}rem !important; }
118
- .pv-#{$i}#{$symbol} { padding-top: #{$i + $value}rem !important; padding-bottom: #{$i + $value}rem !important; }
119
- .ph-#{$i}#{$symbol} { padding-right: #{$i + $value}rem !important; padding-left: #{$i + $value}rem !important; }
120
- }
121
- }
122
- }
123
-
124
- // from 6 to 20 rem, only integer
125
-
126
- @for $i from 6 through 20 {
127
- .w-#{$i} { width: #{$i}rem !important; }
128
- .h-#{$i} { height: #{$i}rem !important; }
129
-
130
- .m-#{$i} { margin: #{$i}rem !important; }
131
- .mt-#{$i} { margin-top: #{$i}rem !important; }
132
- .mr-#{$i} { margin-right: #{$i}rem !important; }
133
- .mb-#{$i} { margin-bottom: #{$i}rem !important; }
134
- .ml-#{$i} { margin-left: #{$i}rem !important; }
135
- .mv-#{$i} { margin-top: #{$i}rem !important; margin-bottom: #{$i}rem !important; }
136
- .mh-#{$i} { margin-right: #{$i}rem !important; margin-left: #{$i}rem !important; }
137
-
138
- .p-#{$i} { padding: #{$i}rem !important; }
139
- .pt-#{$i} { padding-top: #{$i}rem !important; }
140
- .pr-#{$i} { padding-right: #{$i}rem !important; }
141
- .pb-#{$i} { padding-bottom: #{$i}rem !important; }
142
- .pl-#{$i} { padding-left: #{$i}rem !important; }
143
- .pv-#{$i} { padding-top: #{$i}rem !important; padding-bottom: #{$i}rem !important; }
144
- .ph-#{$i} { padding-right: #{$i}rem !important; padding-left: #{$i}rem !important; }
145
- }
146
-
147
- // —————————————————————————————————————————————————————————————————
148
- // position
149
- // —————————————————————————————————————————————————————————————————
150
-
151
- .pos {
152
-
153
- &-absolute { position: absolute !important; }
154
- &-relative { position: relative !important; }
155
- &-fixed { position: relative !important; }
156
- &-sticky { position: relative !important; }
157
- }
158
-
159
- // —————————————————————————————————————————————————————————————————
160
- // display
161
- // —————————————————————————————————————————————————————————————————
162
-
163
- // general display
164
-
165
- .dis-flex { display: flex !important; }
166
- .dis-inlineFlex { display: inline-flex !important; }
167
- .dis-block { display: block !important; }
168
- .dis-inlineBlock { display: inline-block !important; }
169
-
170
- // flexbasis
171
-
172
- .fb {
173
-
174
- &-content { flex-basis: content !important; }
175
- &-0 { flex-basis: 0 !important; }
176
- &-1 { flex-basis: 1 !important; }
177
- }
178
-
179
- // flex-grow
180
-
181
- .fg {
182
-
183
- &-0 { flex-grow: 0 !important; }
184
- &-1 { flex-grow: 1 !important; }
185
- }
186
-
187
- // flex-shrink
188
-
189
- .fs {
190
-
191
- &-0 { flex-shrink: 0 !important; }
192
- &-1 { flex-shrink: 1 !important; }
193
- }
194
-
195
- // —————————————————————————————————————————————————————————————————
196
- // border
197
- // —————————————————————————————————————————————————————————————————
198
-
199
- .b-1 { border: variables.$border; }
200
- .bt-1 { border-top: variables.$border; }
201
- .br-1 { border-right: variables.$border; }
202
- .bb-1 { border-bottom: variables.$border; }
203
- .bl-1 { border-left: variables.$border; }
204
-
205
- // —————————————————————————————————————————————————————————————————
206
- // border-radius
207
- // —————————————————————————————————————————————————————————————————
208
-
209
- .br-sm { border-radius: variables.$border-radius-sm; }
210
- .br-md { border-radius: variables.$border-radius-md; }
211
- .br-lg { border-radius: variables.$border-radius-lg; }
@@ -1,124 +0,0 @@
1
- @use '../common/mixins';
2
- @use '../common/variables';
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // elements
6
- // wrap
7
- // direction
8
- // justify
9
- // items
10
- // self
11
- // gap and col
12
- // —————————————————————————————————————————————————————————————————
13
-
14
- // —————————————————————————————————————————————————————————————————
15
- // elements
16
- // —————————————————————————————————————————————————————————————————
17
-
18
- .flex {
19
- display: flex;
20
- box-sizing: border-box;
21
- flex-direction: row;
22
- flex-wrap: wrap;
23
- }
24
-
25
- // —————————————————————————————————————————————————————————————————
26
- // wrap
27
- // —————————————————————————————————————————————————————————————————
28
-
29
- // have children wrap automatically
30
- .flex-wrap {
31
-
32
- > .flex {
33
- flex: 1 0 0;
34
-
35
- > * {
36
- width: 100%;
37
- }
38
- }
39
- }
40
-
41
- // —————————————————————————————————————————————————————————————————
42
- // direction
43
- // —————————————————————————————————————————————————————————————————
44
-
45
- .direction-column { flex-direction: column; }
46
- .direction-columnReverse { flex-direction: column-reverse; }
47
- .direction-row { flex-direction: row; flex-wrap: wrap; }
48
- .direction-rowReverse { flex-direction: row-reverse; flex-wrap: wrap; }
49
-
50
- // —————————————————————————————————————————————————————————————————
51
- // justify
52
- // —————————————————————————————————————————————————————————————————
53
-
54
- .justify-center { justify-content: center;}
55
- .justify-end { justify-content: flex-end;}
56
- .justify-start { justify-content: flex-start;}
57
- .justify-spaceAround { justify-content: space-around;}
58
- .justify-spaceBetween { justify-content: space-between;}
59
- .justify-spaceEvenly { justify-content: space-evenly;}
60
-
61
- // —————————————————————————————————————————————————————————————————
62
- // items
63
- // —————————————————————————————————————————————————————————————————
64
-
65
- .items-stretch { align-items: stretch; }
66
- .items-center { align-items: center; }
67
- .items-end { align-items: flex-end; }
68
- .items-start { align-items: flex-start; }
69
- .items-baseline { align-items: baseline; }
70
-
71
- // —————————————————————————————————————————————————————————————————
72
- // self
73
- // —————————————————————————————————————————————————————————————————
74
-
75
- .self-stretch { align-self: stretch; }
76
- .self-center { align-self: center; }
77
- .self-end { align-self: flex-end; }
78
- .self-start { align-self: flex-start; }
79
- .self-baseline { align-self: baseline; }
80
-
81
- // —————————————————————————————————————————————————————————————————
82
- // gap and col
83
- // —————————————————————————————————————————————————————————————————
84
-
85
- $columns: 12;
86
- $breakpoints: (
87
- xs: mobile-sm,
88
- sm: mobile,
89
- md: tablet,
90
- lg: laptop,
91
- xl: desktop
92
- );
93
-
94
- @for $i from 1 through $columns {
95
- .col-#{$i} {
96
- width: variables.$col * $i;
97
- }
98
- }
99
-
100
- [class*="col-"] {
101
- width: 100%;
102
- }
103
-
104
- @for $i from 1 through $columns {
105
- .gap-#{$i} {
106
- gap: #{$i * .25}rem;
107
-
108
- @for $j from 1 through $columns {
109
- > .col-#{$j} {
110
- width: calc((variables.$col * $j) - (#{$i * .25}rem * (($columns / $j - 1) / ($columns / $j))));
111
- }
112
- }
113
-
114
- @each $suffix, $breakpoint in $breakpoints {
115
- @include mixins.responsive(up, $breakpoint) {
116
- @for $j from 1 through $columns {
117
- > .col-#{$suffix}-#{$j} {
118
- width: calc((variables.$col * $j) - (#{$i * .25}rem * (($columns / $j - 1) / ($columns / $j))));
119
- }
120
- }
121
- }
122
- }
123
- }
124
- }
@@ -1,127 +0,0 @@
1
- @use "../common/mixins";
2
- @use "../common/variables";
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // elements
6
- // wrap
7
- // direction
8
- // justify
9
- // items
10
- // self
11
- // gap and col
12
- // —————————————————————————————————————————————————————————————————
13
-
14
- // —————————————————————————————————————————————————————————————————
15
- // elements
16
- // —————————————————————————————————————————————————————————————————
17
-
18
- .flex,
19
- .flex_item {
20
- display: flex;
21
- box-sizing: border-box;
22
- flex-direction: row;
23
- flex-wrap: wrap;
24
- }
25
-
26
- // —————————————————————————————————————————————————————————————————
27
- // wrap
28
- // —————————————————————————————————————————————————————————————————
29
-
30
- // have children wrap automatically
31
- .flex-wrap {
32
- justify-content: center;
33
-
34
- > .flex_item {
35
- flex: 1 0 0;
36
-
37
- > * {
38
- width: 100%;
39
- }
40
- }
41
- }
42
-
43
- // —————————————————————————————————————————————————————————————————
44
- // direction
45
- // —————————————————————————————————————————————————————————————————
46
-
47
- .flex-column { flex-direction: column; }
48
- .flex-columnReverse { flex-direction: column-reverse; }
49
- .flex-row { flex-direction: row; flex-wrap: wrap; }
50
- .flex-rowReverse { flex-direction: row-reverse; flex-wrap: wrap; }
51
-
52
- // —————————————————————————————————————————————————————————————————
53
- // justify
54
- // —————————————————————————————————————————————————————————————————
55
-
56
- .flex-jc-center { justify-content: center;}
57
- .flex-jc-end { justify-content: flex-end;}
58
- .flex-jc-start { justify-content: flex-start;}
59
- .flex-jc-spaceAround { justify-content: space-around;}
60
- .flex-jc-spaceBetween { justify-content: space-between;}
61
- .flex-jc-spaceEvenly { justify-content: space-evenly;}
62
-
63
- // —————————————————————————————————————————————————————————————————
64
- // items
65
- // —————————————————————————————————————————————————————————————————
66
-
67
- .flex-ai-stretch { align-items: stretch; }
68
- .flex-ai-center { align-items: center; }
69
- .flex-ai-end { align-items: flex-end; }
70
- .flex-ai-start { align-items: flex-start; }
71
- .flex-ai-baseline { align-items: baseline; }
72
-
73
- // —————————————————————————————————————————————————————————————————
74
- // self
75
- // —————————————————————————————————————————————————————————————————
76
-
77
- .flex-as-stretch { align-self: stretch; }
78
- .flex-as-center { align-self: center; }
79
- .flex-as-end { align-self: flex-end; }
80
- .flex-as-start { align-self: flex-start; }
81
- .flex-as-baseline { align-self: baseline; }
82
-
83
- // —————————————————————————————————————————————————————————————————
84
- // gap and col
85
- // —————————————————————————————————————————————————————————————————
86
-
87
- $columns: 12;
88
- $breakpoints: (
89
- xs: mobile-sm,
90
- sm: mobile,
91
- md: tablet,
92
- lg: laptop,
93
- xl: desktop
94
- );
95
-
96
- @for $i from 1 through $columns {
97
- .col-#{$i} {
98
- width: variables.$col * $i;
99
- }
100
- }
101
-
102
- [class*="gap-"],
103
- [class*="col-"] {
104
- width: 100%;
105
- }
106
-
107
- @for $i from 1 through $columns {
108
- .gap-#{$i} {
109
- gap: #{$i * .25}rem;
110
-
111
- @for $j from 1 through $columns {
112
- > .col-#{$j} {
113
- width: calc((variables.$col * $j) - (#{$i * .25}rem * (($columns / $j - 1) / ($columns / $j))));
114
- }
115
- }
116
-
117
- @each $suffix, $breakpoint in $breakpoints {
118
- @include mixins.responsive(up, $breakpoint) {
119
- @for $j from 1 through $columns {
120
- > .col-#{$suffix}-#{$j} {
121
- width: calc((variables.$col * $j) - (#{$i * .25}rem * (($columns / $j - 1) / ($columns / $j))));
122
- }
123
- }
124
- }
125
- }
126
- }
127
- }