@vandeurenglenn/custom-shared-styles 0.0.9 → 0.0.11
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/.prettierrc +7 -0
- package/lib/drawer/drawer.css.js +7 -4
- package/lib/pane/pane.css.js +19 -11
- package/package.json +1 -1
package/.prettierrc
ADDED
package/lib/drawer/drawer.css.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '@vandeurenglenn/lite'
|
|
1
|
+
import { css } from '@vandeurenglenn/lite'
|
|
2
2
|
export default css`
|
|
3
3
|
:host {
|
|
4
4
|
display: contents;
|
|
@@ -7,7 +7,11 @@ export default css`
|
|
|
7
7
|
custom-pane {
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
height: 100%;
|
|
10
|
-
--custom-pane-width: var(--custom-drawer-
|
|
10
|
+
--custom-pane-width: var(--custom-drawer-width, 320px);
|
|
11
|
+
--custom-pane-header-height: var(--custom-drawer-header-height, 54px);
|
|
12
|
+
--custom-pane-header-padding: var(--custom-drawer-header-padding, 8px);
|
|
13
|
+
--custom-pane-footer-height: var(--custom-drawer-footer-height, 54px);
|
|
14
|
+
--custom-pane-footer-padding: var(--custom-drawer-footer-padding, 8px);
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
slot[name='headline']::slotted(*) {
|
|
@@ -27,7 +31,6 @@ export default css`
|
|
|
27
31
|
::slotted([slot='footer']) {
|
|
28
32
|
display: block;
|
|
29
33
|
box-sizing: border-box;
|
|
30
|
-
min-height: 48px;
|
|
31
34
|
border-top: 1px solid rgba(0, 0, 0, 0.14);
|
|
32
35
|
}
|
|
33
36
|
|
|
@@ -48,4 +51,4 @@ export default css`
|
|
|
48
51
|
flex-direction: column;
|
|
49
52
|
width: 100%;
|
|
50
53
|
}
|
|
51
|
-
|
|
54
|
+
`
|
package/lib/pane/pane.css.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { css } from '@vandeurenglenn/lite'
|
|
1
|
+
import { css } from '@vandeurenglenn/lite'
|
|
2
2
|
|
|
3
3
|
export default css`
|
|
4
4
|
:host {
|
|
5
|
-
--custom-pane-width: 100%;
|
|
6
5
|
display: flex;
|
|
7
6
|
flex-direction: column;
|
|
8
7
|
height: 100%;
|
|
@@ -16,7 +15,7 @@ export default css`
|
|
|
16
15
|
pointer-events: none;
|
|
17
16
|
opacity: 0;
|
|
18
17
|
width: 100%;
|
|
19
|
-
max-width: var(--custom-pane-width);
|
|
18
|
+
max-width: var(--custom-pane-width, 100%);
|
|
20
19
|
transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
|
|
21
20
|
var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
|
|
22
21
|
}
|
|
@@ -56,7 +55,7 @@ export default css`
|
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
:host([open][mobile]) {
|
|
59
|
-
position:
|
|
58
|
+
position: absolute;
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
aside {
|
|
@@ -67,16 +66,25 @@ export default css`
|
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
.content {
|
|
70
|
-
|
|
69
|
+
flex: 1;
|
|
71
70
|
width: 100%;
|
|
72
|
-
overflow-y: auto;
|
|
73
71
|
}
|
|
74
72
|
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
:host([right]) custom-icon-button {
|
|
74
|
+
transform: rotateZ(180deg);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
slot[name='header']::slotted(flex-row) {
|
|
78
|
+
padding: var(--custom-pane-header-padding, 8px);
|
|
79
|
+
height: var(--custom-pane-header-height, 54px);
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
align-items: center;
|
|
77
82
|
}
|
|
78
83
|
|
|
79
|
-
|
|
80
|
-
|
|
84
|
+
slot[name='footer']::slotted(flex-row) {
|
|
85
|
+
padding: var(--custom-pane-footer-padding, 8px);
|
|
86
|
+
height: var(--custom-pane-footer-height, 54px);
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
align-items: center;
|
|
81
89
|
}
|
|
82
|
-
|
|
90
|
+
`
|