@expressivecss/expressive 0.1.0-alpha.3 → 0.2.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/LICENSE +82 -2
- package/README.md +153 -43
- package/dist/css/expressive.css +7121 -9658
- package/dist/css/expressive.css.map +1 -0
- package/dist/css/expressive.min.css +1 -1
- package/dist/css/expressive.min.css.map +1 -0
- package/dist/js/expressive.cjs +7521 -0
- package/dist/js/expressive.cjs.map +7 -0
- package/dist/js/expressive.js +7383 -8099
- package/dist/js/expressive.js.map +7 -1
- package/dist/js/expressive.min.js +75 -1
- package/dist/js/expressive.min.js.map +7 -1
- package/dist/js/expressive.mjs +7292 -7998
- package/dist/js/expressive.mjs.map +7 -1
- package/dist/types/behaviors/dialogs.d.ts +25 -0
- package/dist/{js → types}/components/autocomplete.d.ts +10 -1
- package/dist/{js → types}/components/buttons.d.ts +11 -1
- package/dist/{js → types}/components/cards.d.ts +10 -1
- package/dist/{js → types}/components/carousel.d.ts +4 -5
- package/dist/{js/forms/character-counter.d.ts → types/components/characterCounter.d.ts} +1 -1
- package/dist/{js → types}/components/chips.d.ts +1 -1
- package/dist/{js → types}/components/collapsible.d.ts +1 -1
- package/dist/{js → types}/components/datepicker.d.ts +63 -2
- package/dist/{js → types}/components/dropdown.d.ts +3 -3
- package/dist/types/components/index.d.ts +23 -0
- package/dist/{js/components/materialbox.d.ts → types/components/lightbox.d.ts} +21 -21
- package/dist/{js → types}/components/modal.d.ts +1 -1
- package/dist/{js → types}/components/parallax.d.ts +11 -5
- package/dist/{js → types}/components/pushpin.d.ts +1 -1
- package/dist/{js/forms → types/components}/range.d.ts +3 -3
- package/dist/types/components/registry.d.ts +107 -0
- package/dist/{js → types}/components/scrollspy.d.ts +6 -9
- package/dist/{js/forms → types/components}/select.d.ts +11 -2
- package/dist/{js → types}/components/sidenav.d.ts +1 -1
- package/dist/{js → types}/components/slider.d.ts +3 -2
- package/dist/{js → types}/components/tabs.d.ts +3 -2
- package/dist/{js/components/tap-target.d.ts → types/components/tapTarget.d.ts} +2 -2
- package/dist/{js → types}/components/timepicker.d.ts +13 -5
- package/dist/{js/components/toast.d.ts → types/components/toasts.d.ts} +28 -4
- package/dist/{js → types}/components/tooltip.d.ts +2 -2
- package/dist/types/core/bounding.d.ts +6 -0
- package/dist/{js/foundation → types/core}/component.d.ts +1 -1
- package/dist/types/core/edges.d.ts +6 -0
- package/dist/{js/foundation → types/core}/utils.d.ts +21 -14
- package/dist/types/index.d.ts +7 -0
- package/dist/{js/plugins/docked-display.d.ts → types/plugins/dockedDisplayPlugin.d.ts} +7 -0
- package/package.json +60 -36
- package/src/sass/README.md +200 -0
- package/src/sass/abstracts/_breakpoints.scss +69 -0
- package/src/sass/abstracts/_elevation.scss +34 -0
- package/src/sass/abstracts/_index.scss +7 -0
- package/src/sass/abstracts/_mixins.scss +171 -0
- package/src/sass/abstracts/_variables.scss +57 -0
- package/src/{scss/layout/_table.scss → sass/base/_global.scss} +64 -2
- package/src/{scss/layout → sass/base}/_grid.scss +6 -6
- package/src/sass/base/_index.scss +6 -0
- package/src/{scss/foundation → sass/base}/_normalize.scss +51 -139
- package/src/sass/base/_typography.scss +90 -0
- package/src/sass/components/_badges.scss +77 -0
- package/src/{scss → sass}/components/_breadcrumb.scss +2 -0
- package/src/sass/components/_buttons.scss +407 -0
- package/src/sass/components/_cards.scss +328 -0
- package/src/{scss → sass}/components/_carousel.scss +5 -3
- package/src/sass/components/_chips.scss +140 -0
- package/src/sass/components/_collapsible.scss +81 -0
- package/src/{scss → sass}/components/_collection.scss +2 -2
- package/src/{scss/components/_date-picker.scss → sass/components/_datepicker.scss} +51 -44
- package/src/sass/components/_docked-display.scss +11 -0
- package/src/sass/components/_dropdown.scss +129 -0
- package/src/{scss/components/_material-icons.scss → sass/components/_icons-material-design.scss} +2 -0
- package/src/sass/components/_index.scss +35 -0
- package/src/{scss/components/_material-box.scss → sass/components/_lightbox.scss} +6 -4
- package/src/sass/components/_modal.scss +208 -0
- package/src/sass/components/_navbar.scss +345 -0
- package/src/{scss/layout/_footer.scss → sass/components/_page-footer.scss} +7 -6
- package/src/{scss → sass}/components/_pagination.scss +4 -3
- package/src/{scss → sass}/components/_parallax.scss +4 -1
- package/src/{scss → sass}/components/_preloader.scss +19 -97
- package/src/{scss → sass}/components/_pulse.scss +2 -0
- package/src/sass/components/_pushpin.scss +11 -0
- package/src/{scss → sass}/components/_sidenav.scss +99 -82
- package/src/{scss → sass}/components/_slider.scss +3 -1
- package/src/{scss/components/_table-of-contents.scss → sass/components/_table_of_contents.scss} +2 -0
- package/src/sass/components/_tabs.scss +232 -0
- package/src/{scss/components/_tap-target.scss → sass/components/_tapTarget.scss} +24 -22
- package/src/{scss/components/_time-picker.scss → sass/components/_timepicker.scss} +56 -56
- package/src/sass/components/_toast.scss +260 -0
- package/src/sass/components/_toolbar.scss +192 -0
- package/src/sass/components/_tooltip.scss +166 -0
- package/src/{scss → sass}/components/_transitions.scss +4 -4
- package/src/sass/components/forms/_checkboxes.scss +288 -0
- package/src/sass/components/forms/_fieldset.scss +128 -0
- package/src/{scss → sass/components}/forms/_file-input.scss +11 -9
- package/src/{scss → sass/components}/forms/_index.scss +2 -0
- package/src/sass/components/forms/_input-fields.scss +326 -0
- package/src/sass/components/forms/_radio-buttons.scss +190 -0
- package/src/sass/components/forms/_range.scss +310 -0
- package/src/sass/components/forms/_select.scss +103 -0
- package/src/sass/components/forms/_switches.scss +239 -0
- package/src/sass/expressive.scss +60 -0
- package/src/sass/tokens/_index.scss +4 -0
- package/src/sass/tokens/_reference.scss +265 -0
- package/src/sass/tokens/_theme.scss +49 -0
- package/src/sass/utilities/_helpers.scss +63 -0
- package/src/sass/utilities/_index.scss +8 -0
- package/src/{scss → sass}/utilities/_spacing.scss +4 -3
- package/src/sass/utilities/_typescale.scss +45 -0
- package/src/sass/utilities/_visibility.scss +63 -0
- package/src/sass/utilities/_z-depth.scss +18 -0
- package/dist/js/components/index.d.ts +0 -21
- package/dist/js/forms/index.d.ts +0 -4
- package/dist/js/foundation/index.d.ts +0 -2
- package/dist/js/index.d.ts +0 -52
- package/dist/js/plugins/index.d.ts +0 -1
- package/src/scss/components/_appbar.scss +0 -454
- package/src/scss/components/_badges.scss +0 -77
- package/src/scss/components/_buttons.scss +0 -412
- package/src/scss/components/_cards.scss +0 -267
- package/src/scss/components/_chips.scss +0 -147
- package/src/scss/components/_collapsible.scss +0 -84
- package/src/scss/components/_dropdown.scss +0 -98
- package/src/scss/components/_index.scss +0 -28
- package/src/scss/components/_modal.scss +0 -84
- package/src/scss/components/_tabs.scss +0 -176
- package/src/scss/components/_toast.scss +0 -70
- package/src/scss/components/_tooltip.scss +0 -49
- package/src/scss/components/_video.scss +0 -15
- package/src/scss/expressive.scss +0 -7
- package/src/scss/forms/_checkboxes.scss +0 -199
- package/src/scss/forms/_input-fields.scss +0 -360
- package/src/scss/forms/_radio-buttons.scss +0 -114
- package/src/scss/forms/_range.scss +0 -148
- package/src/scss/forms/_select.scss +0 -108
- package/src/scss/forms/_switches.scss +0 -127
- package/src/scss/foundation/_base.scss +0 -71
- package/src/scss/foundation/_color-palette.scss +0 -402
- package/src/scss/foundation/_index.scss +0 -10
- package/src/scss/foundation/_mixins.scss +0 -198
- package/src/scss/foundation/_motion.scss +0 -70
- package/src/scss/foundation/_shape.scss +0 -30
- package/src/scss/foundation/_state-layers.scss +0 -68
- package/src/scss/foundation/_theme.scss +0 -238
- package/src/scss/foundation/_tokens.scss +0 -511
- package/src/scss/foundation/_variables.scss +0 -57
- package/src/scss/layout/_index.scss +0 -3
- package/src/scss/utilities/_a11y.scss +0 -77
- package/src/scss/utilities/_elevation.scss +0 -63
- package/src/scss/utilities/_helpers.scss +0 -50
- package/src/scss/utilities/_index.scss +0 -7
- package/src/scss/utilities/_responsive.scss +0 -62
- package/src/scss/utilities/_typography.scss +0 -115
- /package/dist/{js/forms → types/behaviors}/forms.d.ts +0 -0
- /package/dist/{js/components → types/behaviors}/waves.d.ts +0 -0
- /package/src/{scss → sass}/utilities/_colors.scss +0 -0
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
@use '../utilities/colors' as *;
|
|
2
|
-
|
|
3
|
-
// M3 Expressive: Chip component tokens
|
|
4
|
-
.chip {
|
|
5
|
-
// -- Component tokens --
|
|
6
|
-
--md-comp-chip-font-size: 14px;
|
|
7
|
-
--md-comp-chip-icon-size: 18px;
|
|
8
|
-
--md-comp-chip-padding: 8px;
|
|
9
|
-
--md-comp-chip-height: 32px;
|
|
10
|
-
--md-comp-chip-shape: var(--md-sys-shape-corner-small, 8px);
|
|
11
|
-
|
|
12
|
-
// Legacy aliases
|
|
13
|
-
--font-size: var(--md-comp-chip-font-size);
|
|
14
|
-
--font-size-icon: var(--md-comp-chip-icon-size);
|
|
15
|
-
--padding: var(--md-comp-chip-padding);
|
|
16
|
-
|
|
17
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
18
|
-
background-color: var(--md-sys-color-surface-container-low, rgba(0, 0, 0, 0.09));
|
|
19
|
-
display: inline-flex;
|
|
20
|
-
white-space: nowrap;
|
|
21
|
-
gap: 8px;
|
|
22
|
-
margin: 0;
|
|
23
|
-
height: var(--md-comp-chip-height);
|
|
24
|
-
padding-left: var(--padding);
|
|
25
|
-
padding-right: var(--padding);
|
|
26
|
-
font-size: var(--font-size);
|
|
27
|
-
font-weight: 500;
|
|
28
|
-
border-radius: var(--md-comp-chip-shape);
|
|
29
|
-
align-items: center;
|
|
30
|
-
user-select: none;
|
|
31
|
-
vertical-align: top;
|
|
32
|
-
transition: background-color var(--md-sys-motion-duration-short3, 0.15s) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
33
|
-
|
|
34
|
-
&:focus {
|
|
35
|
-
outline: none;
|
|
36
|
-
background-color: var(--md-sys-color-primary);
|
|
37
|
-
color: var(--md-sys-color-on-primary);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.outlined {
|
|
41
|
-
background-color: transparent;
|
|
42
|
-
border-color: var(--md-sys-color-outline);
|
|
43
|
-
border-width: 1px;
|
|
44
|
-
border-style: solid;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
& > img {
|
|
48
|
-
margin: 0;
|
|
49
|
-
width: 24px;
|
|
50
|
-
height: 24px;
|
|
51
|
-
object-fit: cover;
|
|
52
|
-
border-radius: var(--md-sys-shape-corner-full, 12px);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
& > .material-icons {
|
|
56
|
-
font-size: var(--font-size-icon);
|
|
57
|
-
@extend .on-surface-variant-text;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.close {
|
|
61
|
-
border-radius: var(--md-sys-shape-corner-full, 50%);
|
|
62
|
-
height: 24px;
|
|
63
|
-
width: 24px;
|
|
64
|
-
padding: 0;
|
|
65
|
-
display: grid;
|
|
66
|
-
justify-content: center;
|
|
67
|
-
align-content: center;
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
|
|
70
|
-
&:hover {
|
|
71
|
-
background-color: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
//--------------------------
|
|
77
|
-
|
|
78
|
-
.chips {
|
|
79
|
-
display: flex;
|
|
80
|
-
gap: 4px;
|
|
81
|
-
flex-wrap: wrap;
|
|
82
|
-
border: none;
|
|
83
|
-
box-shadow: none;
|
|
84
|
-
margin: 0 0 8px 0;
|
|
85
|
-
padding: 4px;
|
|
86
|
-
outline: none;
|
|
87
|
-
transition: all var(--md-sys-motion-duration-medium2, 0.3s) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
88
|
-
|
|
89
|
-
&.focus {
|
|
90
|
-
border-bottom: 1px solid var(--md-sys-color-primary);
|
|
91
|
-
box-shadow: 0 1px 0 0 var(--md-sys-color-primary);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&.input-field {
|
|
95
|
-
border-bottom: 1px solid var(--md-sys-color-on-surface-variant);
|
|
96
|
-
|
|
97
|
-
&:hover {
|
|
98
|
-
cursor: text;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
input:not([type]):not(.browser-default).input {
|
|
103
|
-
background: none;
|
|
104
|
-
border: 0;
|
|
105
|
-
color: var(--md-sys-color-on-background);
|
|
106
|
-
display: inline-block;
|
|
107
|
-
font-size: 16px;
|
|
108
|
-
height: 32px;
|
|
109
|
-
outline: 0;
|
|
110
|
-
margin: 0;
|
|
111
|
-
padding: 0;
|
|
112
|
-
width: 120px;
|
|
113
|
-
width: fit-content;
|
|
114
|
-
min-width: 100px;
|
|
115
|
-
max-width: 200px;
|
|
116
|
-
|
|
117
|
-
&:focus {
|
|
118
|
-
border: 0;
|
|
119
|
-
box-shadow: none;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Autocomplete
|
|
124
|
-
.autocomplete-content {
|
|
125
|
-
margin-top: 0;
|
|
126
|
-
margin-bottom: 0;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Form prefix
|
|
131
|
-
.prefix ~ .chips {
|
|
132
|
-
margin-left: 3rem;
|
|
133
|
-
width: 92%;
|
|
134
|
-
width: calc(100% - 3rem);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Form suffix
|
|
138
|
-
.suffix ~ .chips {
|
|
139
|
-
margin-right: 3rem;
|
|
140
|
-
width: 92%;
|
|
141
|
-
width: calc(100% - 3rem);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.chips:empty ~ label {
|
|
145
|
-
font-size: 0.8rem;
|
|
146
|
-
transform: translateY(-140%);
|
|
147
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
@use '../foundation/variables' as *;
|
|
2
|
-
@use '../utilities/colors' as *;
|
|
3
|
-
@use '../utilities/elevation' as *;
|
|
4
|
-
|
|
5
|
-
.collapsible {
|
|
6
|
-
padding-left: 0;
|
|
7
|
-
list-style-type: none;
|
|
8
|
-
border-top: 1px solid var(--md-sys-color-outline-variant);
|
|
9
|
-
border-right: 1px solid var(--md-sys-color-outline-variant);
|
|
10
|
-
border-left: 1px solid var(--md-sys-color-outline-variant);
|
|
11
|
-
margin: $element-top-margin 0 $element-bottom-margin 0;
|
|
12
|
-
@extend .z-depth-1;
|
|
13
|
-
|
|
14
|
-
// Popout Collapsible
|
|
15
|
-
&.popout {
|
|
16
|
-
border: none;
|
|
17
|
-
box-shadow: none;
|
|
18
|
-
|
|
19
|
-
> li {
|
|
20
|
-
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
|
21
|
-
// transform: scaleX(.92);
|
|
22
|
-
margin: 0 24px;
|
|
23
|
-
transition: margin .35s cubic-bezier(0.250, 0.460, 0.450, 0.940);
|
|
24
|
-
|
|
25
|
-
&.active {
|
|
26
|
-
box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
|
|
27
|
-
margin: 16px 0;
|
|
28
|
-
// transform: scaleX(1);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.collapsible-header {
|
|
35
|
-
display: flex;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
-webkit-tap-highlight-color: transparent;
|
|
38
|
-
line-height: 1.5;
|
|
39
|
-
padding: 1rem;
|
|
40
|
-
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
41
|
-
|
|
42
|
-
&:focus {
|
|
43
|
-
outline: 0
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&::after {
|
|
47
|
-
content: '\e5cf';
|
|
48
|
-
margin-left: .5rem;
|
|
49
|
-
font-family: 'Material Symbols Outlined', 'Material Symbols Rounded', 'Material Symbols Sharp', 'Material Icons';
|
|
50
|
-
font-size: 25px;
|
|
51
|
-
line-height: .9;
|
|
52
|
-
-webkit-font-smoothing: antialiased;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
i {
|
|
56
|
-
width: 2rem;
|
|
57
|
-
font-size: 1.6rem;
|
|
58
|
-
display: inline-block;
|
|
59
|
-
text-align: center;
|
|
60
|
-
margin-right: 1rem;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Active state — icon change (parent context nesting)
|
|
64
|
-
.active &::after {
|
|
65
|
-
content: '\e5ce';
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Keyboard focused state (parent context nesting)
|
|
69
|
-
.keyboard-focused &:focus {
|
|
70
|
-
background-color: rgba(0, 0, 0, 0.12);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.collapsible-header-content {
|
|
75
|
-
flex-grow: 1;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.collapsible-body {
|
|
79
|
-
max-height: 0;
|
|
80
|
-
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
81
|
-
box-sizing: border-box;
|
|
82
|
-
padding: 0 2rem;
|
|
83
|
-
overflow: hidden;
|
|
84
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
@use '../foundation/variables' as *;
|
|
2
|
-
@use '../utilities/elevation' as *;
|
|
3
|
-
|
|
4
|
-
[popover] {
|
|
5
|
-
outline: none;
|
|
6
|
-
padding: 0;
|
|
7
|
-
border: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
// M3 Expressive: Dropdown / Menu component
|
|
11
|
-
.dropdown-content,
|
|
12
|
-
.menu-content {
|
|
13
|
-
// -- Component tokens --
|
|
14
|
-
--md-comp-menu-shape: var(--md-sys-shape-corner-extra-small, 4px);
|
|
15
|
-
--md-comp-menu-container-color: var(--md-sys-color-surface-container, var(--md-sys-color-surface));
|
|
16
|
-
|
|
17
|
-
padding-left: 0;
|
|
18
|
-
list-style-type: none;
|
|
19
|
-
@extend .elevation-2;
|
|
20
|
-
background-color: var(--md-comp-menu-container-color);
|
|
21
|
-
margin: 0;
|
|
22
|
-
display: none;
|
|
23
|
-
min-width: 100px;
|
|
24
|
-
overflow-y: auto;
|
|
25
|
-
opacity: 0;
|
|
26
|
-
position: absolute;
|
|
27
|
-
left: 0;
|
|
28
|
-
top: 0;
|
|
29
|
-
z-index: 9999; // TODO: Check if this doesn't break other things
|
|
30
|
-
transform-origin: 0 0;
|
|
31
|
-
user-select: none;
|
|
32
|
-
border-radius: var(--md-comp-menu-shape);
|
|
33
|
-
transition:
|
|
34
|
-
opacity var(--md-sys-motion-duration-short3, 0.15s) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)),
|
|
35
|
-
transform var(--md-sys-motion-duration-medium1, 0.25s) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1));
|
|
36
|
-
|
|
37
|
-
li {
|
|
38
|
-
clear: both;
|
|
39
|
-
color: var(--md-sys-color-on-surface);
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
min-height: $dropdown-item-height;
|
|
42
|
-
line-height: 1.5rem;
|
|
43
|
-
width: 100%;
|
|
44
|
-
text-align: left;
|
|
45
|
-
|
|
46
|
-
&.divider {
|
|
47
|
-
min-height: 0;
|
|
48
|
-
height: 1px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
& > a, & > span {
|
|
52
|
-
font-size: 16px;
|
|
53
|
-
color: var(--md-sys-color-on-surface);
|
|
54
|
-
display: block;
|
|
55
|
-
line-height: 22px;
|
|
56
|
-
padding: (($dropdown-item-height - 22) * 0.5) 16px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
& > span > label {
|
|
60
|
-
top: 1px;
|
|
61
|
-
left: 0;
|
|
62
|
-
height: 18px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// Icon alignment override
|
|
66
|
-
& > a > i {
|
|
67
|
-
height: inherit;
|
|
68
|
-
line-height: inherit;
|
|
69
|
-
float: left;
|
|
70
|
-
margin: 0 24px 0 0;
|
|
71
|
-
width: 24px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&:not(.disabled):hover, &.active {
|
|
75
|
-
background-color: color-mix(in srgb, var(--md-sys-color-surface), var(--md-sys-color-on-surface) 8%);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// Keyboard focus state (parent context nesting)
|
|
79
|
-
body.keyboard-focused & {
|
|
80
|
-
&:focus {
|
|
81
|
-
background-color: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// Input field specificity bugfix
|
|
88
|
-
.input-field.col .dropdown-content [type="checkbox"] + label {
|
|
89
|
-
top: 1px;
|
|
90
|
-
left: 0;
|
|
91
|
-
height: 18px;
|
|
92
|
-
transform: none;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.dropdown-trigger,
|
|
96
|
-
.menu-trigger {
|
|
97
|
-
cursor: pointer;
|
|
98
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@forward 'buttons';
|
|
2
|
-
@forward 'collection';
|
|
3
|
-
@forward 'badges';
|
|
4
|
-
@forward 'material-icons';
|
|
5
|
-
@forward 'appbar';
|
|
6
|
-
@forward 'transitions';
|
|
7
|
-
@forward 'cards';
|
|
8
|
-
@forward 'toast';
|
|
9
|
-
@forward 'tabs';
|
|
10
|
-
@forward 'tooltip';
|
|
11
|
-
@forward 'dropdown';
|
|
12
|
-
@forward 'modal';
|
|
13
|
-
@forward 'collapsible';
|
|
14
|
-
@forward 'chips';
|
|
15
|
-
@forward 'material-box';
|
|
16
|
-
@forward 'table-of-contents';
|
|
17
|
-
@forward 'sidenav';
|
|
18
|
-
@forward 'preloader';
|
|
19
|
-
@forward 'slider';
|
|
20
|
-
@forward 'carousel';
|
|
21
|
-
@forward 'tap-target';
|
|
22
|
-
@forward 'pulse';
|
|
23
|
-
@forward 'date-picker';
|
|
24
|
-
@forward 'time-picker';
|
|
25
|
-
@forward 'breadcrumb';
|
|
26
|
-
@forward 'pagination';
|
|
27
|
-
@forward 'parallax';
|
|
28
|
-
@forward 'video';
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
@use '../foundation/variables' as *;
|
|
2
|
-
@use '../utilities/elevation' as *;
|
|
3
|
-
|
|
4
|
-
// M3 Expressive: Component tokens for Modal / Dialog
|
|
5
|
-
// use with dialog html element
|
|
6
|
-
.modal,
|
|
7
|
-
.dialog {
|
|
8
|
-
// -- Component tokens --
|
|
9
|
-
--modal-footer-divider-height: 1px;
|
|
10
|
-
--modal-border-radius: var(--md-sys-shape-corner-extra-large, 28px);
|
|
11
|
-
--modal-padding: 24px;
|
|
12
|
-
--modal-padding-bottom: 16px;
|
|
13
|
-
--modal-background-color: var(--md-sys-color-surface-container-high,
|
|
14
|
-
color-mix(in srgb, var(--md-sys-color-surface), var(--md-sys-color-surface-tint) 17%)
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
@extend .elevation-5;
|
|
18
|
-
border: none;
|
|
19
|
-
outline: none;
|
|
20
|
-
padding: 0;
|
|
21
|
-
max-height: 70%;
|
|
22
|
-
width: 55%;
|
|
23
|
-
border-radius: var(--modal-border-radius);
|
|
24
|
-
will-change: top, opacity;
|
|
25
|
-
background-color: var(--modal-background-color);
|
|
26
|
-
|
|
27
|
-
// Dialog open
|
|
28
|
-
&[open] {
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@media #{$medium-and-down} {
|
|
34
|
-
width: 80%;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// custom backdrop blur
|
|
38
|
-
&::backdrop {
|
|
39
|
-
backdrop-filter: blur(1px);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.modal-header,
|
|
43
|
-
.dialog-header {
|
|
44
|
-
padding: var(--modal-padding);
|
|
45
|
-
padding-bottom: var(--modal-padding-bottom);
|
|
46
|
-
flex-shrink: 0;
|
|
47
|
-
position: sticky;
|
|
48
|
-
top: 0;
|
|
49
|
-
background-color: var(--modal-background-color);
|
|
50
|
-
}
|
|
51
|
-
.modal-content,
|
|
52
|
-
.dialog-content {
|
|
53
|
-
padding: 0 var(--modal-padding);
|
|
54
|
-
}
|
|
55
|
-
.modal-footer,
|
|
56
|
-
.dialog-footer {
|
|
57
|
-
border-radius: 0 0 var(--modal-border-radius) var(--modal-border-radius);
|
|
58
|
-
padding: var(--modal-padding);
|
|
59
|
-
text-align: right;
|
|
60
|
-
flex-shrink: 0;
|
|
61
|
-
position: sticky;
|
|
62
|
-
bottom: 0;
|
|
63
|
-
background-color: var(--modal-background-color);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.modal-close,
|
|
67
|
-
.dialog-close {
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// todo: remove maybe
|
|
72
|
-
h1,h2,h3,h4,h5,h6 {
|
|
73
|
-
margin: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Modal Bottom Sheet Style
|
|
77
|
-
&.bottom-sheet {
|
|
78
|
-
margin-bottom: 0;
|
|
79
|
-
max-height: 45%;
|
|
80
|
-
border-bottom-left-radius: 0;
|
|
81
|
-
border-bottom-right-radius: 0;
|
|
82
|
-
will-change: bottom, opacity;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
@use '../foundation/variables' as *;
|
|
2
|
-
|
|
3
|
-
// M3 Expressive: Tabs component
|
|
4
|
-
.tabs {
|
|
5
|
-
padding-left: 0;
|
|
6
|
-
list-style-type: none;
|
|
7
|
-
position: relative;
|
|
8
|
-
overflow-x: auto;
|
|
9
|
-
overflow-y: hidden;
|
|
10
|
-
width: 100%;
|
|
11
|
-
background-color: var(--md-sys-color-surface);
|
|
12
|
-
margin: 0 auto;
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
|
|
15
|
-
&.tabs-transparent {
|
|
16
|
-
background-color: transparent;
|
|
17
|
-
|
|
18
|
-
.tab {
|
|
19
|
-
a {
|
|
20
|
-
color: var(--font-on-primary-color-medium);
|
|
21
|
-
|
|
22
|
-
&:hover {
|
|
23
|
-
background-color: rgba(0, 0, 0, 0.04);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.active,
|
|
27
|
-
&:focus {
|
|
28
|
-
background-color: transparent;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:hover,
|
|
32
|
-
&.active,
|
|
33
|
-
&:focus {
|
|
34
|
-
color: var(--md-sys-color-on-primary);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.disabled a {
|
|
39
|
-
&,
|
|
40
|
-
&:hover,
|
|
41
|
-
&:focus {
|
|
42
|
-
color: rgba(255, 255, 255, 0.38);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.indicator {
|
|
48
|
-
background-color: var(--md-sys-color-on-primary);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&.tabs-fixed-width {
|
|
53
|
-
display: flex;
|
|
54
|
-
|
|
55
|
-
.tab {
|
|
56
|
-
flex-grow: 1;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.tab {
|
|
61
|
-
padding-left: 0;
|
|
62
|
-
list-style-type: none;
|
|
63
|
-
display: inline-block;
|
|
64
|
-
text-align: center;
|
|
65
|
-
line-height: 48px;
|
|
66
|
-
padding: 0;
|
|
67
|
-
margin: 0;
|
|
68
|
-
|
|
69
|
-
i.material-icons {
|
|
70
|
-
position: relative;
|
|
71
|
-
top: 8px;
|
|
72
|
-
vertical-align: middle;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
span {
|
|
76
|
-
height: 24px;
|
|
77
|
-
line-height: 20px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
a {
|
|
81
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
82
|
-
display: flex;
|
|
83
|
-
flex-direction: column;
|
|
84
|
-
width: 100%;
|
|
85
|
-
height: 100%;
|
|
86
|
-
min-height: 48px; //needed for only-icons tabs
|
|
87
|
-
padding: 0 24px;
|
|
88
|
-
font-size: 14px;
|
|
89
|
-
text-overflow: ellipsis;
|
|
90
|
-
overflow: hidden;
|
|
91
|
-
transition:
|
|
92
|
-
color var(--md-sys-motion-duration-medium1, 0.25s) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1)),
|
|
93
|
-
background-color var(--md-sys-motion-duration-medium1, 0.25s) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
94
|
-
|
|
95
|
-
&.active {
|
|
96
|
-
background-color: transparent;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&.active,
|
|
100
|
-
&:focus,
|
|
101
|
-
&:hover {
|
|
102
|
-
color: var(--md-sys-color-primary);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&:hover {
|
|
106
|
-
background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:focus {
|
|
110
|
-
background-color: var(--md-sys-color-primary-container);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&.active {
|
|
114
|
-
background-color: rgba(var(--md-sys-color-primary-numeric), 0.18);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&:focus,
|
|
118
|
-
&.active {
|
|
119
|
-
outline: none;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&.disabled a {
|
|
124
|
-
&,
|
|
125
|
-
&:hover {
|
|
126
|
-
color: var(--md-sys-color-on-surface);
|
|
127
|
-
cursor: default;
|
|
128
|
-
background-color: transparent;
|
|
129
|
-
|
|
130
|
-
&:not(:focus) {
|
|
131
|
-
background-color: transparent;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.indicator {
|
|
138
|
-
position: absolute;
|
|
139
|
-
bottom: 0;
|
|
140
|
-
height: 3px;
|
|
141
|
-
background-color: var(--md-sys-color-primary);
|
|
142
|
-
will-change: left, right;
|
|
143
|
-
border-radius: var(--md-sys-shape-corner-extra-small, 3px) var(--md-sys-shape-corner-extra-small, 3px) 0 0;
|
|
144
|
-
transition:
|
|
145
|
-
left var(--md-sys-motion-duration-medium2, 0.3s) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)),
|
|
146
|
-
right var(--md-sys-motion-duration-medium2, 0.3s) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1));
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&.tabs-horizontal .tab {
|
|
150
|
-
height: 48px;
|
|
151
|
-
|
|
152
|
-
a {
|
|
153
|
-
display: block;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
i.material-icons {
|
|
157
|
-
padding: 0 4px;
|
|
158
|
-
position: relative;
|
|
159
|
-
top: -2px;
|
|
160
|
-
vertical-align: middle;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/* Responsive — smaller screens */
|
|
165
|
-
@media #{$medium-and-down} {
|
|
166
|
-
display: flex;
|
|
167
|
-
|
|
168
|
-
.tab {
|
|
169
|
-
flex-grow: 1;
|
|
170
|
-
|
|
171
|
-
a {
|
|
172
|
-
padding: 0 12px;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
@use '../foundation/variables' as *;
|
|
2
|
-
@use '../utilities/elevation' as *;
|
|
3
|
-
|
|
4
|
-
#toast-container,
|
|
5
|
-
#snackbar-container {
|
|
6
|
-
display:block;
|
|
7
|
-
position: fixed;
|
|
8
|
-
z-index: 10000;
|
|
9
|
-
|
|
10
|
-
@media #{$small-and-down} {
|
|
11
|
-
min-width: 100%;
|
|
12
|
-
bottom: 0%;
|
|
13
|
-
}
|
|
14
|
-
@media #{$medium-only} {
|
|
15
|
-
left: 5%;
|
|
16
|
-
bottom: 7%;
|
|
17
|
-
max-width: 90%;
|
|
18
|
-
}
|
|
19
|
-
@media #{$large-and-up} {
|
|
20
|
-
top: 10%;
|
|
21
|
-
right: 7%;
|
|
22
|
-
max-width: 86%;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// M3 Expressive: Snackbar is the M3 alias for Toast
|
|
27
|
-
.toast,
|
|
28
|
-
.snackbar {
|
|
29
|
-
@extend .elevation-3;
|
|
30
|
-
border-radius: var(--md-sys-shape-corner-extra-small, 4px);
|
|
31
|
-
top: 35px;
|
|
32
|
-
width: auto;
|
|
33
|
-
margin-top: 10px;
|
|
34
|
-
position: relative;
|
|
35
|
-
max-width: 100%;
|
|
36
|
-
height: auto;
|
|
37
|
-
min-height: 48px;
|
|
38
|
-
|
|
39
|
-
padding-left: 16px;
|
|
40
|
-
padding-right: 12px;
|
|
41
|
-
|
|
42
|
-
font-size: 14px;
|
|
43
|
-
font-weight: 500;
|
|
44
|
-
line-height: 20px;
|
|
45
|
-
|
|
46
|
-
color: var(--md-sys-color-inverse-on-surface);
|
|
47
|
-
background-color: var(--md-sys-color-inverse-surface);
|
|
48
|
-
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
justify-content: space-between;
|
|
52
|
-
cursor: default;
|
|
53
|
-
|
|
54
|
-
.toast-action,
|
|
55
|
-
.snackbar-action {
|
|
56
|
-
color: var(--md-sys-color-inverse-primary);
|
|
57
|
-
font-weight: 500;
|
|
58
|
-
margin-right: -25px;
|
|
59
|
-
margin-left: 3rem;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.rounded{
|
|
63
|
-
border-radius: var(--md-sys-shape-corner-full, 24px);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@media #{$small-and-down} {
|
|
67
|
-
width: 100%;
|
|
68
|
-
border-radius: 0;
|
|
69
|
-
}
|
|
70
|
-
}
|