@shortfuse/materialdesignweb 0.7.1-0 → 0.7.1-1
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/bin/generate-css.js +1 -2
- package/components/Badge.js +40 -3
- package/components/Body.js +16 -2
- package/components/BottomAppBar.js +25 -2
- package/components/Box.js +33 -3
- package/components/Button.js +146 -9
- package/components/Card.js +111 -3
- package/components/Checkbox.js +91 -3
- package/components/CheckboxIcon.js +92 -4
- package/components/Chip.js +38 -2
- package/components/Dialog.js +237 -3
- package/components/DialogActions.js +3 -2
- package/components/Divider.js +44 -3
- package/components/ExtendedFab.js +27 -2
- package/components/Fab.js +26 -2
- package/components/FilterChip.js +83 -2
- package/components/Headline.js +16 -2
- package/components/Icon.js +80 -4
- package/components/IconButton.js +153 -2
- package/components/Label.js +16 -2
- package/components/Layout.js +21 -3
- package/components/List.js +15 -2
- package/components/ListItem.js +229 -3
- package/components/ListOption.js +37 -3
- package/components/ListSelect.js +12 -2
- package/components/Menu.js +173 -3
- package/components/MenuItem.js +55 -2
- package/components/Nav.js +19 -2
- package/components/NavBar.js +37 -2
- package/components/NavBarItem.js +44 -2
- package/components/NavDrawer.js +34 -2
- package/components/NavDrawerItem.js +44 -2
- package/components/NavItem.js +183 -3
- package/components/NavRail.js +50 -2
- package/components/NavRailItem.js +25 -2
- package/components/Pane.js +263 -3
- package/components/Progress.js +469 -10
- package/components/Radio.js +97 -3
- package/components/RadioIcon.js +77 -5
- package/components/Ripple.js +76 -3
- package/components/SegmentedButton.js +97 -2
- package/components/SegmentedButtonGroup.js +15 -2
- package/components/Select.js +54 -2
- package/components/Shape.js +55 -18
- package/components/Slider.js +309 -3
- package/components/Snackbar.js +82 -2
- package/components/Surface.js +13 -4
- package/components/Switch.js +67 -4
- package/components/SwitchIcon.js +272 -5
- package/components/Tab.js +87 -3
- package/components/TabContent.js +21 -21
- package/components/TabList.js +131 -2
- package/components/TextArea.js +97 -3
- package/components/Title.js +16 -2
- package/components/Tooltip.js +42 -2
- package/components/TopAppBar.js +212 -3
- package/core/template.js +36 -9
- package/mixins/ControlMixin.js +65 -2
- package/mixins/DensityMixin.js +17 -3
- package/mixins/FlexableMixin.js +81 -3
- package/mixins/RippleMixin.js +15 -4
- package/mixins/ShapeMixin.js +279 -8
- package/mixins/StateMixin.js +87 -5
- package/mixins/SurfaceMixin.js +152 -3
- package/mixins/TextFieldMixin.js +661 -2
- package/mixins/ThemableMixin.js +206 -3
- package/mixins/TooltipTriggerMixin.js +30 -4
- package/mixins/TouchTargetMixin.js +29 -4
- package/package.json +2 -1
- package/theming/loader.js +0 -2
- package/components/Badge.css +0 -38
- package/components/Body.css +0 -14
- package/components/BottomAppBar.css +0 -23
- package/components/Box.css +0 -31
- package/components/Button.css +0 -147
- package/components/Card.css +0 -109
- package/components/Checkbox.css +0 -89
- package/components/CheckboxIcon.css +0 -90
- package/components/Chip.css +0 -35
- package/components/Dialog.css +0 -235
- package/components/Divider.css +0 -41
- package/components/ExtendedFab.css +0 -24
- package/components/Fab.css +0 -23
- package/components/FilterChip.css +0 -80
- package/components/Headline.css +0 -14
- package/components/Icon.css +0 -76
- package/components/IconButton.css +0 -150
- package/components/Label.css +0 -14
- package/components/Layout.css +0 -19
- package/components/List.css +0 -12
- package/components/ListItem.css +0 -224
- package/components/ListOption.css +0 -34
- package/components/ListSelect.css +0 -9
- package/components/Menu.css +0 -171
- package/components/MenuItem.css +0 -53
- package/components/Nav.css +0 -17
- package/components/NavBar.css +0 -34
- package/components/NavBarItem.css +0 -41
- package/components/NavDrawer.css +0 -31
- package/components/NavDrawerItem.css +0 -42
- package/components/NavItem.css +0 -181
- package/components/NavRail.css +0 -47
- package/components/NavRailItem.css +0 -25
- package/components/Outline.css +0 -138
- package/components/Pane.css +0 -261
- package/components/Progress.css +0 -75
- package/components/ProgressCircle.css +0 -226
- package/components/ProgressLine.css +0 -155
- package/components/Radio.css +0 -95
- package/components/RadioIcon.css +0 -73
- package/components/Ripple.css +0 -74
- package/components/SegmentedButton.css +0 -94
- package/components/SegmentedButtonGroup.css +0 -12
- package/components/Select.css +0 -52
- package/components/Shape.css +0 -132
- package/components/Slider.css +0 -307
- package/components/Snackbar.css +0 -80
- package/components/Surface.css +0 -10
- package/components/Switch.css +0 -64
- package/components/SwitchIcon.css +0 -178
- package/components/SwitchIconAnimations.css +0 -89
- package/components/Tab.css +0 -85
- package/components/TabList.css +0 -129
- package/components/TextArea.css +0 -93
- package/components/Title.css +0 -14
- package/components/Tooltip.css +0 -40
- package/components/TopAppBar.css +0 -209
- package/mixins/ControlMixin.css +0 -57
- package/mixins/DensityMixin.css +0 -40
- package/mixins/FlexableMixin.css +0 -79
- package/mixins/RippleMixin.css +0 -12
- package/mixins/ShapeMixin.css +0 -135
- package/mixins/StateMixin.css +0 -82
- package/mixins/SurfaceMixin.css +0 -150
- package/mixins/TextFieldMixin.css +0 -657
- package/mixins/ThemableMixin.css +0 -204
- package/mixins/TooltipTriggerMixin.css +0 -27
- package/mixins/TouchTargetMixin.css +0 -26
package/components/Tab.css
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/* https://m3.material.io/components/tabs/specs */
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
|
|
6
|
-
min-inline-size: 64px;
|
|
7
|
-
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
#anchor {
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
block-size: 100%;
|
|
19
|
-
inline-size: 100%;
|
|
20
|
-
flex: 1;
|
|
21
|
-
|
|
22
|
-
padding-block: 6px;
|
|
23
|
-
padding-inline: 12px;
|
|
24
|
-
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
outline: none;
|
|
27
|
-
|
|
28
|
-
color: inherit;
|
|
29
|
-
|
|
30
|
-
text-decoration: inherit;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
#icon {
|
|
34
|
-
padding-block: 4px;
|
|
35
|
-
|
|
36
|
-
font-size: 24px;
|
|
37
|
-
font-variation-settings: 'FILL' 0;
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
#shape[disabled],
|
|
42
|
-
#anchor[disabled] {
|
|
43
|
-
cursor: not-allowed;
|
|
44
|
-
|
|
45
|
-
background-color: rgba(var(--mdw-color__on-surface), 0.12);
|
|
46
|
-
color: rgba(var(--mdw-color__on-surface), 0.38);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
:host([active]) {
|
|
50
|
-
color: rgb(var(--mdw-ink));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
#icon[active] {
|
|
54
|
-
font-variation-settings: 'FILL' 1;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
#slot {
|
|
58
|
-
display: block;
|
|
59
|
-
overflow-x: hidden;
|
|
60
|
-
overflow-y: hidden;
|
|
61
|
-
|
|
62
|
-
max-block-size: var(--mdw-typescale__title-small__line-height);
|
|
63
|
-
|
|
64
|
-
max-inline-size: 100%;
|
|
65
|
-
|
|
66
|
-
cursor: inherit;
|
|
67
|
-
outline: none;
|
|
68
|
-
|
|
69
|
-
opacity: var(--mdw-nav-item__anchor__opacity, 1);
|
|
70
|
-
transform: translateY(var(--mdw-nav-item__offset-y, 0));
|
|
71
|
-
|
|
72
|
-
color: inherit;
|
|
73
|
-
|
|
74
|
-
font: var(--mdw-typescale__title-small__font);
|
|
75
|
-
letter-spacing: var(--mdw-typescale__title-small__letter-spacing);
|
|
76
|
-
text-align: center;
|
|
77
|
-
text-decoration: inherit;
|
|
78
|
-
text-overflow: ellipsis;
|
|
79
|
-
text-transform: none;
|
|
80
|
-
white-space: nowrap;
|
|
81
|
-
word-break: break-word;
|
|
82
|
-
|
|
83
|
-
transition: opacity, color, transform 200ms;
|
|
84
|
-
will-change: opacity, transform;
|
|
85
|
-
}
|
package/components/TabList.css
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/* https://m3.material.io/components/tabs/specs */
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
--mdw-ink: var(--mdw-color__primary);
|
|
5
|
-
--mdw-shape__bg: rgb(var(--mdw-color__surface));
|
|
6
|
-
position: relative;
|
|
7
|
-
position: sticky;
|
|
8
|
-
inset-block-start: 0;
|
|
9
|
-
inset-inline: 0;
|
|
10
|
-
|
|
11
|
-
display: grid;
|
|
12
|
-
align-items: stretch;
|
|
13
|
-
grid-auto-columns: minmax(auto, 1fr);
|
|
14
|
-
grid-auto-flow: column;
|
|
15
|
-
justify-content: space-evenly;
|
|
16
|
-
overflow-y: hidden;
|
|
17
|
-
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
min-block-size: 48px;
|
|
20
|
-
inline-size: 100%;
|
|
21
|
-
flex:none;
|
|
22
|
-
|
|
23
|
-
color: inherit;
|
|
24
|
-
|
|
25
|
-
text-align: center;
|
|
26
|
-
|
|
27
|
-
will-change: transform;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
#indicator {
|
|
31
|
-
--corner: 3;
|
|
32
|
-
--width: 24;
|
|
33
|
-
--offset: 0;
|
|
34
|
-
--visibility: 0;
|
|
35
|
-
--transition-ratio: 1;
|
|
36
|
-
position: absolute;
|
|
37
|
-
inset-block-end: 0;
|
|
38
|
-
inset-inline: 0;
|
|
39
|
-
|
|
40
|
-
overflow-y: clip;
|
|
41
|
-
|
|
42
|
-
block-size: 3px;
|
|
43
|
-
inline-size: 100%;
|
|
44
|
-
|
|
45
|
-
pointer-events: none;
|
|
46
|
-
|
|
47
|
-
opacity: 1;
|
|
48
|
-
transform: translateY(calc(100% * (1 - var(--visibility))));
|
|
49
|
-
|
|
50
|
-
color: inherit;
|
|
51
|
-
|
|
52
|
-
transition: transform 200ms;
|
|
53
|
-
will-change: transform;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.indicator-piece {
|
|
57
|
-
position: absolute;
|
|
58
|
-
inset-block: 0;
|
|
59
|
-
|
|
60
|
-
opacity: 1;
|
|
61
|
-
/* opacity: 0.60; */
|
|
62
|
-
transform-origin: 0 0;
|
|
63
|
-
z-index:1;
|
|
64
|
-
|
|
65
|
-
background-color: currentColor;
|
|
66
|
-
|
|
67
|
-
transition: transform;
|
|
68
|
-
transition-duration: calc(200ms * var(--transition-ratio));
|
|
69
|
-
will-change: transform;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
#indicator-start {
|
|
73
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
74
|
-
left: 0;
|
|
75
|
-
|
|
76
|
-
inline-size: calc(2 * 1px * var(--corner));
|
|
77
|
-
|
|
78
|
-
transform: translateX(var(--offset));
|
|
79
|
-
|
|
80
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
81
|
-
border-top-left-radius: calc(1px * var(--corner));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
#indicator-center {
|
|
85
|
-
/* Chrome has rendering issues upscaling small elements */
|
|
86
|
-
--precision: 100;
|
|
87
|
-
|
|
88
|
-
position: absolute;
|
|
89
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
90
|
-
left: calc(1px * var(--corner));
|
|
91
|
-
|
|
92
|
-
inline-size: calc(1px * var(--precision));
|
|
93
|
-
|
|
94
|
-
transform: translateX(var(--offset)) scaleX(calc((var(--width) - (2 * var(--corner))) / var(--precision)));
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
#indicator-end {
|
|
99
|
-
position: absolute;
|
|
100
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
101
|
-
left: 0;
|
|
102
|
-
|
|
103
|
-
inline-size: calc(2 * 1px * var(--corner));
|
|
104
|
-
|
|
105
|
-
transform:
|
|
106
|
-
translateX(var(--offset))
|
|
107
|
-
translateX(calc(-2px * var(--corner)))
|
|
108
|
-
translateX(calc(var(--width) * 1px));
|
|
109
|
-
|
|
110
|
-
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
111
|
-
border-top-right-radius: calc(1px * var(--corner));
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
#indicator[active] {
|
|
115
|
-
--visibility: 1;
|
|
116
|
-
color: rgb(var(--mdw-ink));
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
#indicator[secondary] {
|
|
120
|
-
--corner: 0;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
:host([scrollable]) {
|
|
124
|
-
grid-auto-columns: max-content;
|
|
125
|
-
justify-content: flex-start;
|
|
126
|
-
overflow-x: auto;
|
|
127
|
-
|
|
128
|
-
padding-inline: 48px
|
|
129
|
-
}
|
package/components/TextArea.css
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/* https://m3.material.io/components/text-fields/specs */
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
display: inline-grid;
|
|
5
|
-
grid-auto-flow: row;
|
|
6
|
-
grid-template-rows: minmax(0, 100%);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
:host(:is([filled][label])) {
|
|
10
|
-
--control__margin-top: calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));
|
|
11
|
-
--control__padding-top: 0px;
|
|
12
|
-
--control__padding-bottom: calc((var(--mdw-text-field__ratio) * 8px) - 1px);
|
|
13
|
-
--control__margin-bottom: 1px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
#label {
|
|
17
|
-
--max-rows: none;
|
|
18
|
-
--line-height: var(--mdw-typescale__body-large__line-height);
|
|
19
|
-
--expected-height: calc((var(--control__margin-top) + var(--control__padding-top) + var(--line-height) + var(--control__padding-bottom) + var(--control__margin-bottom)));
|
|
20
|
-
max-block-size: 100%;
|
|
21
|
-
grid-row: 1 / 1;
|
|
22
|
-
padding: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@supports(height: 1lh) {
|
|
26
|
-
#label {
|
|
27
|
-
--line-height: 1lh;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
#slot {
|
|
32
|
-
display: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
#control {
|
|
36
|
-
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
37
|
-
overflow-y: auto;
|
|
38
|
-
-webkit-overflow-scrolling: touch;
|
|
39
|
-
|
|
40
|
-
box-sizing: border-box;
|
|
41
|
-
block-size: 100%;
|
|
42
|
-
|
|
43
|
-
min-block-size: var(--expected-height);
|
|
44
|
-
/* Avoid clipping on resize */
|
|
45
|
-
max-block-size: inherit;
|
|
46
|
-
inline-size: 100% !important; /* !important to override user-agent resize */
|
|
47
|
-
padding-inline: 16px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
#control[icon] {
|
|
51
|
-
padding-inline-start: 0;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
#control[minrows] {
|
|
55
|
-
min-block-size: calc((var(--min-rows) * var(--line-height))
|
|
56
|
-
+ var(--control__margin-top)
|
|
57
|
-
+ var(--control__padding-top)
|
|
58
|
-
+ var(--control__padding-bottom)
|
|
59
|
-
+ var(--control__margin-bottom)
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
#control[maxrows] {
|
|
64
|
-
max-block-size: calc((var(--max-rows) * var(--line-height))
|
|
65
|
-
+ var(--control__margin-top)
|
|
66
|
-
+ var(--control__padding-top)
|
|
67
|
-
+ var(--control__padding-bottom)
|
|
68
|
-
+ var(--control__margin-bottom)
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
#control:is([icon], [input-prefix]) {
|
|
73
|
-
padding-inline-start: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
#control:is([trailing-icon], [input-suffix]) {
|
|
77
|
-
padding-inline-end: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
#suffix {
|
|
81
|
-
padding-inline-end: 16px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
mdw-icon {
|
|
85
|
-
align-self: flex-start;
|
|
86
|
-
|
|
87
|
-
margin-block-start: calc((var(--expected-height) - var(--mdw-icon__size)) / 2);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
#control[fixed] {
|
|
91
|
-
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
92
|
-
resize: none;
|
|
93
|
-
}
|
package/components/Title.css
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
font: var(--mdw-typescale__title-large__font);
|
|
3
|
-
letter-spacing: var(--mdw-typescale__title-large__letter-spacing);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
:host([size="medium"]) {
|
|
7
|
-
font: var(--mdw-typescale__title-medium__font);
|
|
8
|
-
letter-spacing: var(--mdw-typescale__title-medium__letter-spacing);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:host([size="small"]) {
|
|
12
|
-
font: var(--mdw-typescale__title-small__font);
|
|
13
|
-
letter-spacing: var(--mdw-typescale__title-small__letter-spacing);
|
|
14
|
-
}
|
package/components/Tooltip.css
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/* https://m2.material.io/components/tooltips */
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
--mdw-shape__size: var(--mdw-shape__extra-small);
|
|
5
|
-
--mdw-ink: var(--mdw-color__on-surface-variant);
|
|
6
|
-
--mdw-shape__bg: rgb(var(--mdw-color__surface-variant));
|
|
7
|
-
display: block;
|
|
8
|
-
vertical-align: middle;
|
|
9
|
-
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
12
|
-
margin-inline: auto;
|
|
13
|
-
padding-block: 4px;
|
|
14
|
-
padding-inline: 8px;
|
|
15
|
-
|
|
16
|
-
pointer-events: none;
|
|
17
|
-
|
|
18
|
-
opacity: 0;
|
|
19
|
-
transform: scale(0);
|
|
20
|
-
z-index: 24;
|
|
21
|
-
|
|
22
|
-
font: var(--mdw-typescale__label-medium__font);
|
|
23
|
-
letter-spacing: var(--mdw-typescale__label-medium__letter-spacing);
|
|
24
|
-
|
|
25
|
-
transition: transform 200ms, opacity 200ms;
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:host([touch]) {
|
|
30
|
-
padding-block: 6px;
|
|
31
|
-
padding-inline: 16px;
|
|
32
|
-
|
|
33
|
-
font: var(--mdw-typescale__label-large__font);
|
|
34
|
-
letter-spacing: var(--mdw-typescale__label-large__letter-spacing);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:host([open]) {
|
|
38
|
-
opacity: 1;
|
|
39
|
-
transform: scale(1);
|
|
40
|
-
}
|
package/components/TopAppBar.css
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
/* https://m3.material.io/components/bottom-app-bar/specs */
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
--mdw-bg: var(--mdw-color__surface);
|
|
5
|
-
--mdw-ink: var(--mdw-color__on-surface);
|
|
6
|
-
--mdw-surface__tint: var(--mdw-surface__tint__0);
|
|
7
|
-
--mdw-surface__tint__raised: var(--mdw-surface__tint__2);
|
|
8
|
-
display: contents;
|
|
9
|
-
|
|
10
|
-
z-index:2;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
#surface {
|
|
14
|
-
position: sticky;
|
|
15
|
-
inset-block-start: 0;
|
|
16
|
-
|
|
17
|
-
display: grid;
|
|
18
|
-
|
|
19
|
-
align-items: center;
|
|
20
|
-
gap: 12px;
|
|
21
|
-
grid-auto-flow: row;
|
|
22
|
-
grid-template-rows: minmax(64px,min-content);
|
|
23
|
-
grid-template-columns: minmax(auto,1fr) minmax(0,auto) minmax(auto,1fr);
|
|
24
|
-
overflow-x: clip; /* Clip oversized touch targets to avoid scroll-bars */
|
|
25
|
-
overflow-y: visible;
|
|
26
|
-
|
|
27
|
-
box-sizing: border-box;
|
|
28
|
-
inline-size: 100%;
|
|
29
|
-
max-inline-size: 100%;
|
|
30
|
-
|
|
31
|
-
/* 16px from icon */
|
|
32
|
-
/* inset = (button.width / 2) - (icon.width / 2) */
|
|
33
|
-
/* paddingInline = 16px - inset */
|
|
34
|
-
/* paddingInlineStart = 16px - ((48px / 2) - (24px / 2)) */
|
|
35
|
-
/* paddingInlineEnd = 16px - ((48px / 2) - (30px / 2)) */
|
|
36
|
-
|
|
37
|
-
padding-inline: 4px;
|
|
38
|
-
|
|
39
|
-
pointer-events: auto;
|
|
40
|
-
|
|
41
|
-
filter: none; /* Never receive shadow */
|
|
42
|
-
|
|
43
|
-
z-index: 5;
|
|
44
|
-
/* inset-inline: 0; */
|
|
45
|
-
|
|
46
|
-
background-color: rgb(var(--mdw-bg));
|
|
47
|
-
color: rgb(var(--mdw-ink));
|
|
48
|
-
|
|
49
|
-
transition: grid-template-columns 100ms;
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
#surface-tint {
|
|
54
|
-
position: 0;
|
|
55
|
-
|
|
56
|
-
z-index: 1;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
#leading {
|
|
60
|
-
justify-self: flex-start;
|
|
61
|
-
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
|
|
65
|
-
grid-column: 1;
|
|
66
|
-
grid-row: 1;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
#headline {
|
|
70
|
-
display: inline-block;
|
|
71
|
-
|
|
72
|
-
overflow: clip hidden;
|
|
73
|
-
|
|
74
|
-
max-inline-size: 100%;
|
|
75
|
-
|
|
76
|
-
grid-column: 2;
|
|
77
|
-
grid-row: 1;
|
|
78
|
-
|
|
79
|
-
font: var(--mdw-typescale__title-large__font);
|
|
80
|
-
letter-spacing: var(--mdw-typescale__title-large__letter-spacing);
|
|
81
|
-
|
|
82
|
-
text-overflow: ellipsis;
|
|
83
|
-
text-transform: none;
|
|
84
|
-
white-space: nowrap;
|
|
85
|
-
word-break: break-word;
|
|
86
|
-
|
|
87
|
-
transition-duration: 200ms;
|
|
88
|
-
transition-property: transform, opacity, color, background-color;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
#trailing {
|
|
92
|
-
justify-self: flex-end;
|
|
93
|
-
|
|
94
|
-
display: flex;
|
|
95
|
-
align-items: center;
|
|
96
|
-
gap: 8px;
|
|
97
|
-
justify-content: flex-end;
|
|
98
|
-
|
|
99
|
-
grid-column: 3;
|
|
100
|
-
grid-row: 1;
|
|
101
|
-
|
|
102
|
-
color: var(--mdw-color__on-surface-variant);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/* Medium */
|
|
106
|
-
#companion {
|
|
107
|
-
position: relative;
|
|
108
|
-
|
|
109
|
-
display: flex;
|
|
110
|
-
align-items: flex-end;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Total Height = 112px
|
|
114
|
-
* Bar = 12 + 40 + 12 (64)
|
|
115
|
-
* Companion = 112px - 64
|
|
116
|
-
* Companion Bottom = 20px
|
|
117
|
-
* Companion = 28px
|
|
118
|
-
* Shift up = 1lh - 28px
|
|
119
|
-
*/
|
|
120
|
-
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
121
|
-
margin-block-start: calc(28px - var(--mdw-typescale__headline-small__line-height));
|
|
122
|
-
padding-block-end: 20px;
|
|
123
|
-
|
|
124
|
-
padding-inline: 16px;
|
|
125
|
-
|
|
126
|
-
background-color: rgb(var(--mdw-bg));
|
|
127
|
-
box-shadow: none;
|
|
128
|
-
|
|
129
|
-
font: var(--mdw-typescale__headline-small__font);
|
|
130
|
-
letter-spacing: var(--mdw-typescale__headline-small__letter-spacing);
|
|
131
|
-
white-space: nowrap;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
#companion[size="large"] {
|
|
135
|
-
/**
|
|
136
|
-
* Total Height = 152px
|
|
137
|
-
* Bar = 12 + 40 + 12 (64)
|
|
138
|
-
* Companion = 152px - 64
|
|
139
|
-
* Companion Bottom = 20px
|
|
140
|
-
* Companion = 68px
|
|
141
|
-
* Shift up = 2lh - 68px
|
|
142
|
-
*/
|
|
143
|
-
|
|
144
|
-
min-block-size: calc(2 * var(--mdw-typescale__headline-medium__line-height));
|
|
145
|
-
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
146
|
-
margin-block-start: calc(68px - (2 * var(--mdw-typescale__headline-medium__line-height)));
|
|
147
|
-
|
|
148
|
-
font: var(--mdw-typescale__headline-medium__font);
|
|
149
|
-
letter-spacing: var(--mdw-typescale__headline-medium__letter-spacing);
|
|
150
|
-
white-space: normal;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
@supports(width: 1lh) {
|
|
154
|
-
#companion {
|
|
155
|
-
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
156
|
-
margin-block-start: calc(28px - 1lh);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
#companion[size="large"] {
|
|
160
|
-
min-block-size: 2lh;
|
|
161
|
-
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
162
|
-
margin-block-start: calc(68px - 2lh);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
#companion-slot {
|
|
167
|
-
display: block;
|
|
168
|
-
overflow-x: clip;
|
|
169
|
-
overflow-y: hidden;
|
|
170
|
-
|
|
171
|
-
text-overflow: ellipsis;
|
|
172
|
-
text-transform: none;
|
|
173
|
-
word-break: break-word;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
#companion-slot[size="large"] {
|
|
177
|
-
max-block-size: calc(2 * var(--mdw-typescale__headline-medium__line-height));
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
@supports(-webkit-line-clamp: 2) {
|
|
181
|
-
#companion-slot[size="large"] {
|
|
182
|
-
display: -webkit-box;
|
|
183
|
-
-webkit-box-orient: vertical;
|
|
184
|
-
-webkit-line-clamp: 2;
|
|
185
|
-
|
|
186
|
-
max-block-size: none;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
#surface[hide-on-scroll] {
|
|
191
|
-
position: relative;
|
|
192
|
-
|
|
193
|
-
inset-block-start: 0;
|
|
194
|
-
|
|
195
|
-
transform: translateY(0);
|
|
196
|
-
|
|
197
|
-
will-change: transform, position;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
#surface[size="small"] {
|
|
201
|
-
gap: 4px;
|
|
202
|
-
grid-template-columns: auto 1fr auto;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
#headline:is([size="medium"],[size="large"]) {
|
|
206
|
-
opacity: 0;
|
|
207
|
-
|
|
208
|
-
will-change: opacity;
|
|
209
|
-
}
|
package/mixins/ControlMixin.css
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/* Remove Firefox inner */
|
|
6
|
-
:host(::-moz-focus-inner) {
|
|
7
|
-
border: 0;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
#label {
|
|
11
|
-
display: contents;
|
|
12
|
-
|
|
13
|
-
pointer-events: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
#control {
|
|
17
|
-
/* Control is the touch target */
|
|
18
|
-
/* Firefox requires at least 1px "visible" for screen reading */
|
|
19
|
-
/* Safari will not allow interaction with 0 opacity */
|
|
20
|
-
/* Chrome will not focus with visibility:hidden */
|
|
21
|
-
|
|
22
|
-
position: absolute;
|
|
23
|
-
inset: 50%;
|
|
24
|
-
/* --mdw-device-pixel-ratio: 1; */
|
|
25
|
-
|
|
26
|
-
block-size: 100%;
|
|
27
|
-
min-block-size: 48px;
|
|
28
|
-
inline-size:100%;
|
|
29
|
-
min-inline-size: 48px;
|
|
30
|
-
margin: 0;
|
|
31
|
-
border: 0;
|
|
32
|
-
padding: 0;
|
|
33
|
-
|
|
34
|
-
-webkit-appearance: none;
|
|
35
|
-
-moz-appearance: none;
|
|
36
|
-
appearance: none;
|
|
37
|
-
|
|
38
|
-
cursor: auto;
|
|
39
|
-
outline: none;
|
|
40
|
-
|
|
41
|
-
pointer-events: auto;
|
|
42
|
-
|
|
43
|
-
transform: translateX(-50%) translateY(-50%);
|
|
44
|
-
|
|
45
|
-
/* Safari and Chrome will emit two click events if not at top of stack */
|
|
46
|
-
/* Allows up to 3 other layers (eg: ripple, outline) */
|
|
47
|
-
z-index: 4;
|
|
48
|
-
|
|
49
|
-
background-color: transparent;
|
|
50
|
-
|
|
51
|
-
border-radius: 0;
|
|
52
|
-
color: transparent;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
#control::-moz-focus-inner {
|
|
56
|
-
border: 0;
|
|
57
|
-
}
|
package/mixins/DensityMixin.css
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
--mdw-density: var(--mdw-density__default, 0);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/* Reset */
|
|
6
|
-
:host([density]) {
|
|
7
|
-
--mdw-density: 0;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:host([density="-1"]) {
|
|
11
|
-
--mdw-density: -1;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host([density="-2"]) {
|
|
15
|
-
--mdw-density: -2;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host([density="-3"]) {
|
|
19
|
-
--mdw-density: -2;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host([density="-4"]) {
|
|
23
|
-
--mdw-density: -4;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host([density="1"]) {
|
|
27
|
-
--mdw-density: 1;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host([density="2"]) {
|
|
31
|
-
--mdw-density: 2;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([density="3"]) {
|
|
35
|
-
--mdw-density: 3;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host([density="4"]) {
|
|
39
|
-
--mdw-density: 3;
|
|
40
|
-
}
|