@oardi/css-utils 0.77.0 → 0.78.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.
- package/package.json +1 -1
- package/scss/mixins/breakpoints.scss +3 -3
- package/scss/utilities.scss +13 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '
|
|
2
|
+
@use '../theme.scss' as theme;
|
|
3
3
|
|
|
4
4
|
@mixin media($size) {
|
|
5
5
|
$bps: map.get(theme.$theme, breakpoints);
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
@content;
|
|
10
10
|
}
|
|
11
11
|
} @else {
|
|
12
|
-
@error "Breakpoint `#{$size}`
|
|
12
|
+
@error "Breakpoint `#{$size}` not found!";
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// usage
|
|
17
|
-
// @use '
|
|
17
|
+
// @use '@oardi/css-utils/scss/mixins/breakpoints' as bp;
|
|
18
18
|
// @include bp.media(md) {
|
|
19
19
|
// dosomething;
|
|
20
20
|
// }
|
package/scss/utilities.scss
CHANGED
|
@@ -13,6 +13,8 @@ $-widths: (
|
|
|
13
13
|
auto: auto,
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
+
$-overflow-wrap-values: normal, break-word, anywhere;
|
|
17
|
+
|
|
16
18
|
@layer utilities {
|
|
17
19
|
// positions
|
|
18
20
|
@each $value in map.get(theme.$theme, positions) {
|
|
@@ -207,6 +209,10 @@ $-widths: (
|
|
|
207
209
|
}
|
|
208
210
|
}
|
|
209
211
|
|
|
212
|
+
.min-w-0 {
|
|
213
|
+
min-width: 0;
|
|
214
|
+
}
|
|
215
|
+
|
|
210
216
|
@each $name, $value in $-widths {
|
|
211
217
|
.w-#{$name} {
|
|
212
218
|
width: $value;
|
|
@@ -248,6 +254,13 @@ $-widths: (
|
|
|
248
254
|
overflow-y: scroll;
|
|
249
255
|
}
|
|
250
256
|
|
|
257
|
+
// overflow wraps
|
|
258
|
+
@each $value in $-overflow-wrap-values {
|
|
259
|
+
.overflow-wrap-#{$value} {
|
|
260
|
+
overflow-wrap: $value;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
251
264
|
.no-scroll {
|
|
252
265
|
overflow: hidden;
|
|
253
266
|
overscroll-behavior: none;
|