@splendidlabz/styles 4.6.5 → 4.6.7
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 +2 -2
- package/src/generic/anchors-and-buttons.css +1 -1
- package/src/layout-reset.css +13 -0
- package/src/layouts/direct.css +2 -0
- package/src/layouts/shell/shell-grid.css +30 -2
- package/src/layouts/shell/shell-simple.css +0 -26
- package/src/reset.css +0 -13
- package/src/styles.css +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splendidlabz/styles",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://splendidlabz.com/docs/styles",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"exports": {
|
|
14
14
|
".": "./src/styles.css",
|
|
15
15
|
"./components": "./src/components/index.css",
|
|
16
|
-
"./layouts": "./src/layouts/
|
|
16
|
+
"./layouts": "./src/layouts/direct.css",
|
|
17
17
|
"./layouts/no-tw": "./dist/no-tw/styles.css",
|
|
18
18
|
"./scripts": "./scripts/index.js",
|
|
19
19
|
"./scripts/*": "./scripts/*.js"
|
|
@@ -1,11 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
@utility shell-body {
|
|
3
|
+
& {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns:
|
|
6
|
+
minmax(0, var(--lsb-width, auto))
|
|
7
|
+
minmax(0, 1fr);
|
|
8
|
+
grid-template-rows: 1fr;
|
|
9
|
+
gap: var(--gap, 0);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:has(> .right-sidebar) {
|
|
13
|
+
grid-template-columns:
|
|
14
|
+
minmax(0, var(--lsb-width, auto))
|
|
15
|
+
minmax(0, var(--content-width, 1fr))
|
|
16
|
+
minmax(0, var(--rsb-width, auto));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
> .left-sidebar,
|
|
20
|
+
> .right-sidebar,
|
|
21
|
+
> .content {
|
|
22
|
+
overflow: auto;
|
|
23
|
+
grid-column-end: span var(--span, 1);
|
|
24
|
+
height: inherit;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
1
28
|
/* Potential improvements for flexibility with Style Queries or CSS IF in the future. */
|
|
2
29
|
@utility shell-grid {
|
|
3
30
|
@apply shell-body;
|
|
4
31
|
|
|
5
32
|
& {
|
|
6
33
|
/* Seems to be ok to use inherit too? Test it out. If that's ok, remove this and just use shell-body */
|
|
7
|
-
|
|
8
|
-
|
|
34
|
+
height: inherit;
|
|
35
|
+
|
|
36
|
+
/* height: 100dvh; */
|
|
9
37
|
}
|
|
10
38
|
|
|
11
39
|
&:has(> .header, header, .footer, footer) {
|
|
@@ -13,29 +13,3 @@
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
@utility shell-body {
|
|
18
|
-
& {
|
|
19
|
-
display: grid;
|
|
20
|
-
grid-template-columns:
|
|
21
|
-
minmax(0, var(--lsb-width, auto))
|
|
22
|
-
minmax(0, 1fr);
|
|
23
|
-
gap: var(--gap, 0);
|
|
24
|
-
height: inherit;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:has(> .right-sidebar) {
|
|
28
|
-
grid-template-columns:
|
|
29
|
-
minmax(0, var(--lsb-width, auto))
|
|
30
|
-
minmax(0, var(--content-width, 1fr))
|
|
31
|
-
minmax(0, var(--rsb-width, auto));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
> .left-sidebar,
|
|
35
|
-
> .right-sidebar,
|
|
36
|
-
> .content {
|
|
37
|
-
overflow: auto;
|
|
38
|
-
grid-column-end: span var(--span, 1);
|
|
39
|
-
height: auto;
|
|
40
|
-
}
|
|
41
|
-
}
|
package/src/reset.css
CHANGED
|
@@ -13,19 +13,6 @@ html {
|
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
html,
|
|
17
|
-
body {
|
|
18
|
-
height: 100%;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/*********************
|
|
22
|
-
* Fills the viewport, fallbacks to vh *
|
|
23
|
-
*********************/
|
|
24
|
-
body {
|
|
25
|
-
min-height: 100vh;
|
|
26
|
-
min-height: 100svh;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
16
|
/*********************
|
|
30
17
|
* Remove default margin and paddings *
|
|
31
18
|
*********************/
|