@nuvoui/core 1.2.0 → 1.2.1
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.
- package/dist/nuvoui.css.map +1 -1
- package/dist/nuvoui.min.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/layouts/_container.scss +6 -3
- package/src/styles/layouts/_flex.scss +113 -111
- package/src/styles/layouts/_grid.scss +67 -65
- package/src/styles/mixins-map.scss +1 -913
- package/src/styles/themes/_theme.scss +91 -89
- package/src/styles/utilities/_alignment.scss +8 -6
- package/src/styles/utilities/_borders.scss +146 -145
- package/src/styles/utilities/_container-queries.scss +13 -11
- package/src/styles/utilities/_display.scss +57 -55
- package/src/styles/utilities/_media-queries.scss +22 -3
- package/src/styles/utilities/_opacity.scss +49 -43
- package/src/styles/utilities/_position.scss +33 -32
- package/src/styles/utilities/_shadows.scss +105 -99
- package/src/styles/utilities/_sizing.scss +53 -51
- package/src/styles/utilities/_spacing.scss +87 -85
- package/src/styles/utilities/_transitions.scss +76 -72
- package/src/styles/utilities/_typography.scss +20 -23
|
@@ -77,61 +77,63 @@
|
|
|
77
77
|
@mixin overflow-y-auto { overflow-y: auto; }
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.
|
|
83
|
-
.
|
|
84
|
-
.
|
|
85
|
-
.inline
|
|
86
|
-
.
|
|
87
|
-
.
|
|
88
|
-
.
|
|
89
|
-
.
|
|
90
|
-
.
|
|
91
|
-
.overflow-
|
|
92
|
-
.overflow-
|
|
93
|
-
.overflow-
|
|
94
|
-
.overflow-
|
|
95
|
-
.overflow-
|
|
96
|
-
.overflow-
|
|
97
|
-
.overflow-
|
|
98
|
-
.overflow-
|
|
99
|
-
.overflow-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
@
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
80
|
+
@if $generate-utility-classes {
|
|
81
|
+
// Base Classes
|
|
82
|
+
.hide { @include hide; }
|
|
83
|
+
.show { @include show; }
|
|
84
|
+
.block { @include block; }
|
|
85
|
+
.inline { @include inline; }
|
|
86
|
+
.inline-block { @include inline-block; }
|
|
87
|
+
.visible { @include visible; }
|
|
88
|
+
.invisible { @include invisible; }
|
|
89
|
+
.collapse { @include collapse; }
|
|
90
|
+
.contents { @include contents; }
|
|
91
|
+
.overflow-hidden { @include overflow-hidden; }
|
|
92
|
+
.overflow-visible { @include overflow-visible; }
|
|
93
|
+
.overflow-scroll { @include overflow-scroll; }
|
|
94
|
+
.overflow-auto { @include overflow-auto; }
|
|
95
|
+
.overflow-x-hidden { @include overflow-x-hidden; }
|
|
96
|
+
.overflow-y-hidden { @include overflow-y-hidden; }
|
|
97
|
+
.overflow-x-scroll { @include overflow-x-scroll; }
|
|
98
|
+
.overflow-y-scroll { @include overflow-y-scroll; }
|
|
99
|
+
.overflow-x-auto { @include overflow-x-auto; }
|
|
100
|
+
.overflow-y-auto { @include overflow-y-auto; }
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
.d {
|
|
104
|
+
&-tbl { @include d-tbl; }
|
|
105
|
+
&-tbl-row { @include d-tbl-row; }
|
|
106
|
+
&-tbl-cell { @include d-tbl-cell; }
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Responsive Variants
|
|
110
|
+
@each $breakpoint, $width in $breakpoints {
|
|
111
|
+
@media (min-width: #{$width}) {
|
|
112
|
+
.hide\@#{$breakpoint} { @include hide; }
|
|
113
|
+
.show\@#{$breakpoint} { @include show; }
|
|
114
|
+
.block\@#{$breakpoint} { @include block; }
|
|
115
|
+
.inline\@#{$breakpoint} { @include inline; }
|
|
116
|
+
.inline-block\@#{$breakpoint} { @include inline-block; }
|
|
117
|
+
.visible\@#{$breakpoint} { @include visible; }
|
|
118
|
+
.invisible\@#{$breakpoint} { @include invisible; }
|
|
119
|
+
.collapse\@#{$breakpoint} { @include collapse; }
|
|
120
|
+
.contents\@#{$breakpoint} { @include contents; }
|
|
121
|
+
.overflow-hidden\@#{$breakpoint} { @include overflow-hidden; }
|
|
122
|
+
.overflow-visible\@#{$breakpoint} { @include overflow-visible; }
|
|
123
|
+
.overflow-scroll\@#{$breakpoint} { @include overflow-scroll; }
|
|
124
|
+
.overflow-auto\@#{$breakpoint} { @include overflow-auto; }
|
|
125
|
+
.overflow-x-hidden\@#{$breakpoint} { @include overflow-x-hidden; }
|
|
126
|
+
.overflow-y-hidden\@#{$breakpoint} { @include overflow-y-hidden; }
|
|
127
|
+
.overflow-x-scroll\@#{$breakpoint} { @include overflow-x-scroll; }
|
|
128
|
+
.overflow-y-scroll\@#{$breakpoint} { @include overflow-y-scroll; }
|
|
129
|
+
.overflow-x-auto\@#{$breakpoint} { @include overflow-x-auto; }
|
|
130
|
+
.overflow-y-auto\@#{$breakpoint} { @include overflow-y-auto; }
|
|
131
|
+
|
|
132
|
+
.d {
|
|
133
|
+
&-tbl\@#{$breakpoint} { @include d-tbl; }
|
|
134
|
+
&-tbl-row\@#{$breakpoint} { @include d-tbl-row; }
|
|
135
|
+
&-tbl-cell\@#{$breakpoint} { @include d-tbl-cell; }
|
|
136
|
+
}
|
|
135
137
|
}
|
|
136
138
|
}
|
|
137
139
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Module: Media Queries
|
|
3
3
|
|
|
4
4
|
@use "sass:map";
|
|
5
|
+
@use "sass:math";
|
|
5
6
|
@use "sass:meta";
|
|
6
7
|
@use "../abstracts" as *;
|
|
7
8
|
@use "../abstracts/functions" as FN;
|
|
@@ -12,13 +13,25 @@
|
|
|
12
13
|
* @param {string} $type - The media query type (e.g. 'lg', 'md').
|
|
13
14
|
*/
|
|
14
15
|
@mixin media-up($breakpoint) {
|
|
15
|
-
|
|
16
|
+
$blueprint-value: FN.get-breakpoint-value($breakpoint);
|
|
17
|
+
$unit: math.unit($blueprint-value);
|
|
18
|
+
@if $unit == '' {
|
|
19
|
+
$blueprint-value: $blueprint-value * 1px;
|
|
20
|
+
$unit: 'px';
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media screen and (min-width: FN.get-breakpoint-value($blueprint-value)) {
|
|
16
24
|
@content;
|
|
17
25
|
}
|
|
18
26
|
}
|
|
19
27
|
|
|
20
28
|
@mixin media-down($breakpoint) {
|
|
21
|
-
$
|
|
29
|
+
$blueprint-value: FN.get-breakpoint-value($breakpoint);
|
|
30
|
+
$unit: math.unit($blueprint-value);
|
|
31
|
+
@if $unit == '' {
|
|
32
|
+
$blueprint-value: $blueprint-value * 1px;
|
|
33
|
+
}
|
|
34
|
+
$val: $blueprint-value - 0.01;
|
|
22
35
|
@media screen and (max-width: #{$val}) {
|
|
23
36
|
@content;
|
|
24
37
|
}
|
|
@@ -26,7 +39,13 @@
|
|
|
26
39
|
|
|
27
40
|
@mixin media-between($lower, $upper) {
|
|
28
41
|
$lower-val: FN.get-breakpoint-value($lower);
|
|
29
|
-
$upper-val: FN.get-breakpoint-value($upper)
|
|
42
|
+
$upper-val: FN.get-breakpoint-value($upper);
|
|
43
|
+
$unit: math.unit($upper-val);
|
|
44
|
+
@if $unit == '' {
|
|
45
|
+
$upper-val: $upper-val * 1px;
|
|
46
|
+
}
|
|
47
|
+
$upper-val: $blueprint-value - 0.01;
|
|
48
|
+
|
|
30
49
|
@media screen and (min-width: #{$lower-val}) and (max-width: #{$upper-val}) {
|
|
31
50
|
@content;
|
|
32
51
|
}
|
|
@@ -71,52 +71,58 @@
|
|
|
71
71
|
* @see transitions
|
|
72
72
|
*/
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
.opacity-#{$i} {
|
|
77
|
-
opacity: math.div($i, 100);
|
|
78
|
-
}
|
|
79
|
-
.hover\:opacity-#{$i}:hover {
|
|
80
|
-
opacity: math.div($i, 100);
|
|
81
|
-
}
|
|
82
|
-
.focus\:opacity-#{$i}:focus {
|
|
83
|
-
opacity: math.div($i, 100);
|
|
84
|
-
}
|
|
85
|
-
.active\:opacity-#{$i}:active {
|
|
86
|
-
opacity: math.div($i, 100);
|
|
87
|
-
}
|
|
88
|
-
.group:hover .group-hover\:opacity-#{$i} {
|
|
89
|
-
opacity: math.div($i, 100);
|
|
90
|
-
}
|
|
74
|
+
@mixin opacity($value) {
|
|
75
|
+
opacity: math.div($value, 100);
|
|
91
76
|
}
|
|
92
77
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
@
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
78
|
+
@if $generate-utility-classes {
|
|
79
|
+
// Opacity Utilities
|
|
80
|
+
@each $i in $percentages {
|
|
81
|
+
.opacity-#{$i} {
|
|
82
|
+
@include opacity ($i);
|
|
83
|
+
}
|
|
84
|
+
.hover\:opacity-#{$i}:hover {
|
|
85
|
+
@include opacity ($i);
|
|
86
|
+
}
|
|
87
|
+
.focus\:opacity-#{$i}:focus {
|
|
88
|
+
@include opacity ($i);
|
|
89
|
+
}
|
|
90
|
+
.active\:opacity-#{$i}:active {
|
|
91
|
+
@include opacity ($i);
|
|
92
|
+
}
|
|
93
|
+
.group:hover .group-hover\:opacity-#{$i} {
|
|
94
|
+
@include opacity ($i);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Responsive Variants for Opacity
|
|
99
|
+
@each $breakpoint, $width in $breakpoints {
|
|
100
|
+
@media (min-width: #{$width}) {
|
|
101
|
+
@each $i in $percentages {
|
|
102
|
+
.opacity-#{$i}\@#{$breakpoint} {
|
|
103
|
+
@include opacity ($i);
|
|
104
|
+
}
|
|
105
|
+
.hover\:opacity-#{$i}\@#{$breakpoint}:hover {
|
|
106
|
+
@include opacity ($i);
|
|
107
|
+
}
|
|
108
|
+
.focus\:opacity-#{$i}\@#{$breakpoint}:focus {
|
|
109
|
+
@include opacity ($i);
|
|
110
|
+
}
|
|
111
|
+
.active\:opacity-#{$i}\@#{$breakpoint}:active {
|
|
112
|
+
@include opacity ($i);
|
|
113
|
+
}
|
|
114
|
+
.group:hover .group-hover\:opacity-#{$i}\@#{$breakpoint} {
|
|
115
|
+
@include opacity ($i);
|
|
116
|
+
}
|
|
111
117
|
}
|
|
112
118
|
}
|
|
113
119
|
}
|
|
114
|
-
}
|
|
115
120
|
|
|
116
|
-
// Transition Opacity
|
|
117
|
-
// TODO move to transitons may be?
|
|
118
|
-
.transition-opacity {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
121
|
+
// Transition Opacity
|
|
122
|
+
// TODO move to transitons may be?
|
|
123
|
+
.transition-opacity {
|
|
124
|
+
transition-property: opacity;
|
|
125
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
126
|
+
transition-duration: 150ms;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -174,39 +174,40 @@
|
|
|
174
174
|
// -----------------------------------------------
|
|
175
175
|
// UTILITY CLASSES
|
|
176
176
|
// -----------------------------------------------
|
|
177
|
+
@if $generate-utility-classes {
|
|
178
|
+
// Position Classes
|
|
179
|
+
.static { @include static; }
|
|
180
|
+
.relative { @include relative; }
|
|
181
|
+
.absolute { @include absolute; }
|
|
182
|
+
.fixed { @include fixed; }
|
|
183
|
+
.sticky { @include sticky; }
|
|
184
|
+
|
|
185
|
+
// Placement Classes
|
|
186
|
+
@each $key, $value in $spacings {
|
|
187
|
+
.top-#{$key} { @include top($value); }
|
|
188
|
+
.right-#{$key} { @include right($value); }
|
|
189
|
+
.bottom-#{$key} { @include bottom($value); }
|
|
190
|
+
.left-#{$key} { @include left($value); }
|
|
191
|
+
}
|
|
177
192
|
|
|
178
|
-
//
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
// Responsive Position Classes
|
|
198
|
-
@each $breakpoint, $width in $breakpoints {
|
|
199
|
-
@media (min-width: #{$width}) {
|
|
200
|
-
.static\@#{$breakpoint} {@include static;}
|
|
201
|
-
.relative\@#{$breakpoint} {@include relative;}
|
|
202
|
-
.absolute\@#{$breakpoint} {@include absolute;}
|
|
203
|
-
.fixed\@#{$breakpoint} {@include fixed;}
|
|
204
|
-
.sticky\@#{$breakpoint} {@include sticky;}
|
|
205
|
-
@each $key, $value in $spacings {
|
|
206
|
-
.top-#{$key}\@#{$breakpoint} {@include top($value);}
|
|
207
|
-
.right-#{$key}\@#{$breakpoint} {@include right($value);}
|
|
208
|
-
.bottom-#{$key}\@#{$breakpoint} {@include bottom($value);}
|
|
209
|
-
.left-#{$key}\@#{$breakpoint} {@include left($value);}
|
|
193
|
+
// -----------------------------------------------
|
|
194
|
+
// RESPONSIVE CLASSES
|
|
195
|
+
// -----------------------------------------------
|
|
196
|
+
|
|
197
|
+
// Responsive Position Classes
|
|
198
|
+
@each $breakpoint, $width in $breakpoints {
|
|
199
|
+
@media (min-width: #{$width}) {
|
|
200
|
+
.static\@#{$breakpoint} {@include static;}
|
|
201
|
+
.relative\@#{$breakpoint} {@include relative;}
|
|
202
|
+
.absolute\@#{$breakpoint} {@include absolute;}
|
|
203
|
+
.fixed\@#{$breakpoint} {@include fixed;}
|
|
204
|
+
.sticky\@#{$breakpoint} {@include sticky;}
|
|
205
|
+
@each $key, $value in $spacings {
|
|
206
|
+
.top-#{$key}\@#{$breakpoint} {@include top($value);}
|
|
207
|
+
.right-#{$key}\@#{$breakpoint} {@include right($value);}
|
|
208
|
+
.bottom-#{$key}\@#{$breakpoint} {@include bottom($value);}
|
|
209
|
+
.left-#{$key}\@#{$breakpoint} {@include left($value);}
|
|
210
|
+
}
|
|
210
211
|
}
|
|
211
212
|
}
|
|
212
213
|
}
|
|
@@ -90,144 +90,150 @@ $shadow-sizes: (
|
|
|
90
90
|
$shadow-color;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
@mixin elevation($i){
|
|
94
|
+
@if $i == 1 {
|
|
95
|
+
@include shadow("sm");
|
|
96
|
+
} @else if $i == 2 {
|
|
97
|
+
@include shadow("md");
|
|
98
|
+
} @else if $i == 3 {
|
|
99
|
+
@include shadow("lg");
|
|
100
|
+
} @else if $i == 4 {
|
|
101
|
+
@include shadow("xl");
|
|
102
|
+
} @else if $i == 5 {
|
|
103
|
+
@include shadow("monster");
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
z-index: $i;
|
|
96
107
|
}
|
|
97
108
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
109
|
+
// Utility Classes
|
|
110
|
+
@if VAR.$generate-utility-classes {
|
|
111
|
+
.shadow-none {
|
|
112
|
+
box-shadow: none !important;
|
|
101
113
|
}
|
|
102
114
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
115
|
+
@each $size, $values in $shadow-sizes {
|
|
116
|
+
.shadow-#{$size} {
|
|
117
|
+
@include shadow($size);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Shadow with color variants
|
|
121
|
+
@each $color-name, $color-value in VAR.$shadow-colors {
|
|
122
|
+
@if $color-name != "default" {
|
|
123
|
+
.shadow-#{$size}-#{$color-name} {
|
|
124
|
+
@include shadow($size, $color-name);
|
|
125
|
+
}
|
|
108
126
|
}
|
|
109
127
|
}
|
|
110
|
-
}
|
|
111
128
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
129
|
+
.shadow-inset-#{$size} {
|
|
130
|
+
@include shadow-inset($size);
|
|
131
|
+
}
|
|
115
132
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
133
|
+
// Inset shadows with color variants
|
|
134
|
+
@each $color-name, $color-value in VAR.$shadow-colors {
|
|
135
|
+
@if $color-name != "default" {
|
|
136
|
+
.shadow-inset-#{$size}-#{$color-name} {
|
|
137
|
+
@include shadow-inset($size, $color-name);
|
|
138
|
+
}
|
|
121
139
|
}
|
|
122
140
|
}
|
|
123
|
-
}
|
|
124
141
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
142
|
+
// Hover shadows
|
|
143
|
+
.hover\:shadow-#{$size}:hover {
|
|
144
|
+
@include shadow($size);
|
|
145
|
+
}
|
|
129
146
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
147
|
+
// Hover shadows with color variants
|
|
148
|
+
@each $color-name, $color-value in VAR.$shadow-colors {
|
|
149
|
+
@if $color-name != "default" {
|
|
150
|
+
.hover\:shadow-#{$size}-#{$color-name}:hover {
|
|
151
|
+
@include shadow($size, $color-name);
|
|
152
|
+
}
|
|
135
153
|
}
|
|
136
154
|
}
|
|
137
|
-
}
|
|
138
155
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
156
|
+
// Focus shadows
|
|
157
|
+
.focus\:shadow-#{$size}:focus {
|
|
158
|
+
@include shadow($size);
|
|
159
|
+
}
|
|
143
160
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
161
|
+
// Focus shadows with color variants
|
|
162
|
+
@each $color-name, $color-value in VAR.$shadow-colors {
|
|
163
|
+
@if $color-name != "default" {
|
|
164
|
+
.focus\:shadow-#{$size}-#{$color-name}:focus {
|
|
165
|
+
@include shadow($size, $color-name);
|
|
166
|
+
}
|
|
149
167
|
}
|
|
150
168
|
}
|
|
151
|
-
}
|
|
152
169
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
170
|
+
// Active shadows
|
|
171
|
+
.active\:shadow-#{$size}:active {
|
|
172
|
+
@include shadow($size);
|
|
173
|
+
}
|
|
157
174
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
175
|
+
// Active shadows with color variants
|
|
176
|
+
@each $color-name, $color-value in VAR.$shadow-colors {
|
|
177
|
+
@if $color-name != "default" {
|
|
178
|
+
.active\:shadow-#{$size}-#{$color-name}:active {
|
|
179
|
+
@include shadow($size, $color-name);
|
|
180
|
+
}
|
|
163
181
|
}
|
|
164
182
|
}
|
|
165
183
|
}
|
|
166
|
-
}
|
|
167
184
|
|
|
168
|
-
// Responsive variants
|
|
169
|
-
@each $breakpoint, $width in VAR.$breakpoints {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
185
|
+
// Responsive variants
|
|
186
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
187
|
+
@media (min-width: #{$width}) {
|
|
188
|
+
@each $size, $values in $shadow-sizes {
|
|
189
|
+
// Regular shadows with breakpoints
|
|
190
|
+
.shadow-#{$size}\@#{$breakpoint} {
|
|
191
|
+
@include shadow($size);
|
|
192
|
+
}
|
|
176
193
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
194
|
+
// Shadows with color variants at breakpoints
|
|
195
|
+
@each $color-name, $color-value in VAR.$shadow-colors {
|
|
196
|
+
@if $color-name != "default" {
|
|
197
|
+
.shadow-#{$size}-#{$color-name}\@#{$breakpoint} {
|
|
198
|
+
@include shadow($size, $color-name);
|
|
199
|
+
}
|
|
182
200
|
}
|
|
183
201
|
}
|
|
184
|
-
}
|
|
185
202
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
203
|
+
// Hover shadows with breakpoints
|
|
204
|
+
.hover\:shadow-#{$size}\@#{$breakpoint}:hover {
|
|
205
|
+
@include shadow($size);
|
|
206
|
+
}
|
|
190
207
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
208
|
+
// Hover shadows with color variants at breakpoints
|
|
209
|
+
@each $color-name, $color-value in VAR.$shadow-colors {
|
|
210
|
+
@if $color-name != "default" {
|
|
211
|
+
.hover\:shadow-#{$size}-#{$color-name}\@#{$breakpoint}:hover {
|
|
212
|
+
@include shadow($size, $color-name);
|
|
213
|
+
}
|
|
196
214
|
}
|
|
197
215
|
}
|
|
198
|
-
}
|
|
199
216
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
217
|
+
// Focus shadows with breakpoints
|
|
218
|
+
.focus\:shadow-#{$size}\@#{$breakpoint}:focus {
|
|
219
|
+
@include shadow($size);
|
|
220
|
+
}
|
|
204
221
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
222
|
+
// Focus shadows with color variants at breakpoints
|
|
223
|
+
@each $color-name, $color-value in VAR.$shadow-colors {
|
|
224
|
+
@if $color-name != "default" {
|
|
225
|
+
.focus\:shadow-#{$size}-#{$color-name}\@#{$breakpoint}:focus {
|
|
226
|
+
@include shadow($size, $color-name);
|
|
227
|
+
}
|
|
210
228
|
}
|
|
211
229
|
}
|
|
212
230
|
}
|
|
213
231
|
}
|
|
214
232
|
}
|
|
215
|
-
}
|
|
216
233
|
|
|
217
|
-
@for $i from 1 through 5 {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
@include shadow("sm");
|
|
221
|
-
} @else if $i == 2 {
|
|
222
|
-
@include shadow("md");
|
|
223
|
-
} @else if $i == 3 {
|
|
224
|
-
@include shadow("lg");
|
|
225
|
-
} @else if $i == 4 {
|
|
226
|
-
@include shadow("xl");
|
|
227
|
-
} @else if $i == 5 {
|
|
228
|
-
@include shadow("monster");
|
|
234
|
+
@for $i from 1 through 5 {
|
|
235
|
+
.elevation-#{$i} {
|
|
236
|
+
@include elevation($i);
|
|
229
237
|
}
|
|
230
|
-
|
|
231
|
-
z-index: $i;
|
|
232
238
|
}
|
|
233
239
|
}
|