@nuvoui/core 1.2.0 → 1.2.2

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.
@@ -77,61 +77,63 @@
77
77
  @mixin overflow-y-auto { overflow-y: auto; }
78
78
 
79
79
 
80
- // Base Classes
81
- .hide { @include hide; }
82
- .show { @include show; }
83
- .block { @include block; }
84
- .inline { @include inline; }
85
- .inline-block { @include inline-block; }
86
- .visible { @include visible; }
87
- .invisible { @include invisible; }
88
- .collapse { @include collapse; }
89
- .contents { @include contents; }
90
- .overflow-hidden { @include overflow-hidden; }
91
- .overflow-visible { @include overflow-visible; }
92
- .overflow-scroll { @include overflow-scroll; }
93
- .overflow-auto { @include overflow-auto; }
94
- .overflow-x-hidden { @include overflow-x-hidden; }
95
- .overflow-y-hidden { @include overflow-y-hidden; }
96
- .overflow-x-scroll { @include overflow-x-scroll; }
97
- .overflow-y-scroll { @include overflow-y-scroll; }
98
- .overflow-x-auto { @include overflow-x-auto; }
99
- .overflow-y-auto { @include overflow-y-auto; }
100
-
101
-
102
- .d {
103
- &-tbl { @include d-tbl; }
104
- &-tbl-row { @include d-tbl-row; }
105
- &-tbl-cell { @include d-tbl-cell; }
106
- }
107
-
108
- // Responsive Variants
109
- @each $breakpoint, $width in $breakpoints {
110
- @media (min-width: #{$width}) {
111
- .hide\@#{$breakpoint} { @include hide; }
112
- .show\@#{$breakpoint} { @include show; }
113
- .block\@#{$breakpoint} { @include block; }
114
- .inline\@#{$breakpoint} { @include inline; }
115
- .inline-block\@#{$breakpoint} { @include inline-block; }
116
- .visible\@#{$breakpoint} { @include visible; }
117
- .invisible\@#{$breakpoint} { @include invisible; }
118
- .collapse\@#{$breakpoint} { @include collapse; }
119
- .contents\@#{$breakpoint} { @include contents; }
120
- .overflow-hidden\@#{$breakpoint} { @include overflow-hidden; }
121
- .overflow-visible\@#{$breakpoint} { @include overflow-visible; }
122
- .overflow-scroll\@#{$breakpoint} { @include overflow-scroll; }
123
- .overflow-auto\@#{$breakpoint} { @include overflow-auto; }
124
- .overflow-x-hidden\@#{$breakpoint} { @include overflow-x-hidden; }
125
- .overflow-y-hidden\@#{$breakpoint} { @include overflow-y-hidden; }
126
- .overflow-x-scroll\@#{$breakpoint} { @include overflow-x-scroll; }
127
- .overflow-y-scroll\@#{$breakpoint} { @include overflow-y-scroll; }
128
- .overflow-x-auto\@#{$breakpoint} { @include overflow-x-auto; }
129
- .overflow-y-auto\@#{$breakpoint} { @include overflow-y-auto; }
130
-
131
- .d {
132
- &-tbl\@#{$breakpoint} { @include d-tbl; }
133
- &-tbl-row\@#{$breakpoint} { @include d-tbl-row; }
134
- &-tbl-cell\@#{$breakpoint} { @include d-tbl-cell; }
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
- @media screen and (min-width: FN.get-breakpoint-value($breakpoint)) {
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
- $val: FN.get-breakpoint-value($breakpoint) - 0.01rm;
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) - 0.01rm;
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
- // Opacity Utilities
75
- @each $i in $percentages {
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
- // Responsive Variants for Opacity
94
- @each $breakpoint, $width in $breakpoints {
95
- @media (min-width: #{$width}) {
96
- @each $i in $percentages {
97
- .opacity-#{$i}\@#{$breakpoint} {
98
- opacity: math.div($i, 100);
99
- }
100
- .hover\:opacity-#{$i}\@#{$breakpoint}:hover {
101
- opacity: math.div($i, 100);
102
- }
103
- .focus\:opacity-#{$i}\@#{$breakpoint}:focus {
104
- opacity: math.div($i, 100);
105
- }
106
- .active\:opacity-#{$i}\@#{$breakpoint}:active {
107
- opacity: math.div($i, 100);
108
- }
109
- .group:hover .group-hover\:opacity-#{$i}\@#{$breakpoint} {
110
- opacity: math.div($i, 100);
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
- transition-property: opacity;
120
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
121
- transition-duration: 150ms;
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
+ }
@@ -171,42 +171,88 @@
171
171
 
172
172
 
173
173
 
174
+ // todo: Documentation
175
+ @mixin absolute-center {
176
+ & {
177
+ position: absolute;
178
+ left: 50%;
179
+ top: 50%;
180
+
181
+ --translate-x: -50%;
182
+ --translate-y: -50%;
183
+
184
+ transform: translateX(var(--translate-x)) translateY(var(--translate-y)) translateZ(var(--translate-z, 0)) rotate(var(--rotate, 0)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));
185
+ }
186
+ }
187
+
188
+ // todo: Documentation
189
+ // Fractional and percentage placements
190
+ $position-fractions: (
191
+ '25p': 25%,
192
+ '33p': 33.333%,
193
+ '50p': 50%,
194
+ '66p': 66.667%,
195
+ '75p': 75%,
196
+ "100p": 100%
197
+ );
198
+
199
+
200
+
174
201
  // -----------------------------------------------
175
202
  // UTILITY CLASSES
176
203
  // -----------------------------------------------
204
+ @if $generate-utility-classes {
205
+ // Position Classes
206
+ .static { @include static; }
207
+ .relative { @include relative; }
208
+ .absolute { @include absolute; }
209
+ .fixed { @include fixed; }
210
+ .sticky { @include sticky; }
211
+ .absolute-center { @include absolute-center; }
177
212
 
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
- }
213
+ @each $key, $value in $position-fractions {
214
+ .top-#{$key} { @include top($value); }
215
+ .right-#{$key} { @include right($value); }
216
+ .bottom-#{$key} { @include bottom($value); }
217
+ .left-#{$key} { @include left($value); }
218
+ }
192
219
 
193
- // -----------------------------------------------
194
- // RESPONSIVE CLASSES
195
- // -----------------------------------------------
220
+ // Placement Classes
221
+ @each $key, $value in $spacings {
222
+ .top-#{$key} { @include top($value); }
223
+ .right-#{$key} { @include right($value); }
224
+ .bottom-#{$key} { @include bottom($value); }
225
+ .left-#{$key} { @include left($value); }
226
+ }
227
+
228
+ // -----------------------------------------------
229
+ // RESPONSIVE CLASSES
230
+ // -----------------------------------------------
231
+
232
+ // Responsive Position Classes
233
+ @each $breakpoint, $width in $breakpoints {
234
+ @media (min-width: #{$width}) {
235
+ .static\@#{$breakpoint} {@include static;}
236
+ .relative\@#{$breakpoint} {@include relative;}
237
+ .absolute\@#{$breakpoint} {@include absolute;}
238
+ .fixed\@#{$breakpoint} {@include fixed;}
239
+ .sticky\@#{$breakpoint} {@include sticky;}
240
+ .absolute-center\@#{$breakpoint} { @include absolute-center; }
241
+
242
+ // Fractional responsive placements
243
+ @each $key, $value in $position-fractions {
244
+ .top-#{$key}\@#{$breakpoint} { @include top($value); }
245
+ .right-#{$key}\@#{$breakpoint} { @include right($value); }
246
+ .bottom-#{$key}\@#{$breakpoint} { @include bottom($value); }
247
+ .left-#{$key}\@#{$breakpoint} { @include left($value); }
248
+ }
196
249
 
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);}
250
+ @each $key, $value in $spacings {
251
+ .top-#{$key}\@#{$breakpoint} {@include top($value);}
252
+ .right-#{$key}\@#{$breakpoint} {@include right($value);}
253
+ .bottom-#{$key}\@#{$breakpoint} {@include bottom($value);}
254
+ .left-#{$key}\@#{$breakpoint} {@include left($value);}
255
+ }
210
256
  }
211
257
  }
212
258
  }
@@ -90,144 +90,150 @@ $shadow-sizes: (
90
90
  $shadow-color;
91
91
  }
92
92
 
93
- // Utility Classes
94
- .shadow-none {
95
- box-shadow: none !important;
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
- @each $size, $values in $shadow-sizes {
99
- .shadow-#{$size} {
100
- @include shadow($size);
109
+ // Utility Classes
110
+ @if VAR.$generate-utility-classes {
111
+ .shadow-none {
112
+ box-shadow: none !important;
101
113
  }
102
114
 
103
- // Shadow with color variants
104
- @each $color-name, $color-value in VAR.$shadow-colors {
105
- @if $color-name != "default" {
106
- .shadow-#{$size}-#{$color-name} {
107
- @include shadow($size, $color-name);
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
- .shadow-inset-#{$size} {
113
- @include shadow-inset($size);
114
- }
129
+ .shadow-inset-#{$size} {
130
+ @include shadow-inset($size);
131
+ }
115
132
 
116
- // Inset shadows with color variants
117
- @each $color-name, $color-value in VAR.$shadow-colors {
118
- @if $color-name != "default" {
119
- .shadow-inset-#{$size}-#{$color-name} {
120
- @include shadow-inset($size, $color-name);
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
- // Hover shadows
126
- .hover\:shadow-#{$size}:hover {
127
- @include shadow($size);
128
- }
142
+ // Hover shadows
143
+ .hover\:shadow-#{$size}:hover {
144
+ @include shadow($size);
145
+ }
129
146
 
130
- // Hover shadows with color variants
131
- @each $color-name, $color-value in VAR.$shadow-colors {
132
- @if $color-name != "default" {
133
- .hover\:shadow-#{$size}-#{$color-name}:hover {
134
- @include shadow($size, $color-name);
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
- // Focus shadows
140
- .focus\:shadow-#{$size}:focus {
141
- @include shadow($size);
142
- }
156
+ // Focus shadows
157
+ .focus\:shadow-#{$size}:focus {
158
+ @include shadow($size);
159
+ }
143
160
 
144
- // Focus shadows with color variants
145
- @each $color-name, $color-value in VAR.$shadow-colors {
146
- @if $color-name != "default" {
147
- .focus\:shadow-#{$size}-#{$color-name}:focus {
148
- @include shadow($size, $color-name);
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
- // Active shadows
154
- .active\:shadow-#{$size}:active {
155
- @include shadow($size);
156
- }
170
+ // Active shadows
171
+ .active\:shadow-#{$size}:active {
172
+ @include shadow($size);
173
+ }
157
174
 
158
- // Active shadows with color variants
159
- @each $color-name, $color-value in VAR.$shadow-colors {
160
- @if $color-name != "default" {
161
- .active\:shadow-#{$size}-#{$color-name}:active {
162
- @include shadow($size, $color-name);
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
- @media (min-width: #{$width}) {
171
- @each $size, $values in $shadow-sizes {
172
- // Regular shadows with breakpoints
173
- .shadow-#{$size}\@#{$breakpoint} {
174
- @include shadow($size);
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
- // Shadows with color variants at breakpoints
178
- @each $color-name, $color-value in VAR.$shadow-colors {
179
- @if $color-name != "default" {
180
- .shadow-#{$size}-#{$color-name}\@#{$breakpoint} {
181
- @include shadow($size, $color-name);
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
- // Hover shadows with breakpoints
187
- .hover\:shadow-#{$size}\@#{$breakpoint}:hover {
188
- @include shadow($size);
189
- }
203
+ // Hover shadows with breakpoints
204
+ .hover\:shadow-#{$size}\@#{$breakpoint}:hover {
205
+ @include shadow($size);
206
+ }
190
207
 
191
- // Hover shadows with color variants at breakpoints
192
- @each $color-name, $color-value in VAR.$shadow-colors {
193
- @if $color-name != "default" {
194
- .hover\:shadow-#{$size}-#{$color-name}\@#{$breakpoint}:hover {
195
- @include shadow($size, $color-name);
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
- // Focus shadows with breakpoints
201
- .focus\:shadow-#{$size}\@#{$breakpoint}:focus {
202
- @include shadow($size);
203
- }
217
+ // Focus shadows with breakpoints
218
+ .focus\:shadow-#{$size}\@#{$breakpoint}:focus {
219
+ @include shadow($size);
220
+ }
204
221
 
205
- // Focus shadows with color variants at breakpoints
206
- @each $color-name, $color-value in VAR.$shadow-colors {
207
- @if $color-name != "default" {
208
- .focus\:shadow-#{$size}-#{$color-name}\@#{$breakpoint}:focus {
209
- @include shadow($size, $color-name);
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
- .elevation-#{$i} {
219
- @if $i == 1 {
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
  }