@oardi/css-utils 0.118.0 → 0.120.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 +13 -1
- package/readme.md +16 -0
- package/scss/mixins/breakpoints.scss +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oardi/css-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.120.0",
|
|
4
4
|
"author": "Ardian Shala",
|
|
5
5
|
"homepage": "https://css-utils.oardi.com",
|
|
6
6
|
"description": "Powerful set of semantic css classes with support for breakpoints, directions and spacings",
|
|
@@ -16,6 +16,18 @@
|
|
|
16
16
|
"sass": "./scss/index.scss",
|
|
17
17
|
"default": "./scss/index.scss"
|
|
18
18
|
},
|
|
19
|
+
"./breakpoints": {
|
|
20
|
+
"sass": "./scss/mixins/breakpoints.scss",
|
|
21
|
+
"default": "./scss/mixins/breakpoints.scss"
|
|
22
|
+
},
|
|
23
|
+
"./theme": {
|
|
24
|
+
"sass": "./scss/theme.scss",
|
|
25
|
+
"default": "./scss/theme.scss"
|
|
26
|
+
},
|
|
27
|
+
"./components/*": {
|
|
28
|
+
"sass": "./scss/components/*.scss",
|
|
29
|
+
"default": "./scss/components/*.scss"
|
|
30
|
+
},
|
|
19
31
|
"./scss/*": "./scss/*"
|
|
20
32
|
},
|
|
21
33
|
"files": [
|
package/readme.md
CHANGED
|
@@ -70,6 +70,22 @@ Responsive utilities are mobile-first. Classes without a breakpoint apply at eve
|
|
|
70
70
|
|
|
71
71
|
Display utilities intentionally override the grid container at their active breakpoint. For example, `class="grid d-lg-block"` uses the grid below `lg` and switches to block layout from `lg` upward.
|
|
72
72
|
|
|
73
|
+
For custom responsive SCSS, import the breakpoint mixins without loading the library's CSS again:
|
|
74
|
+
|
|
75
|
+
```scss
|
|
76
|
+
@use '@oardi/css-utils/breakpoints' as bp;
|
|
77
|
+
|
|
78
|
+
.sidebar {
|
|
79
|
+
@include bp.media-up(md) {
|
|
80
|
+
display: block;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The Dart Sass CLI uses `@use 'pkg:@oardi/css-utils/breakpoints' as bp;` with `--pkg-importer=node`.
|
|
86
|
+
|
|
87
|
+
Import theme values without generating CSS via `@use '@oardi/css-utils/theme' as theme;`. To load one component's styles, use a path such as `@use '@oardi/css-utils/components/button';`. The Dart Sass CLI uses the same paths with a `pkg:` prefix.
|
|
88
|
+
|
|
73
89
|
## Browser support
|
|
74
90
|
|
|
75
91
|
The minimum supported versions for the compiled library CSS are:
|