@expressivecss/expressive 0.1.0-alpha.3
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 +21 -0
- package/README.md +82 -0
- package/dist/css/expressive.css +9914 -0
- package/dist/css/expressive.min.css +1 -0
- package/dist/js/components/autocomplete.d.ts +152 -0
- package/dist/js/components/buttons.d.ts +66 -0
- package/dist/js/components/cards.d.ts +50 -0
- package/dist/js/components/carousel.d.ts +131 -0
- package/dist/js/components/chips.d.ts +135 -0
- package/dist/js/components/collapsible.d.ts +74 -0
- package/dist/js/components/datepicker.d.ts +336 -0
- package/dist/js/components/dropdown.d.ts +148 -0
- package/dist/js/components/index.d.ts +21 -0
- package/dist/js/components/materialbox.d.ts +97 -0
- package/dist/js/components/modal.d.ts +45 -0
- package/dist/js/components/parallax.d.ts +40 -0
- package/dist/js/components/pushpin.d.ts +51 -0
- package/dist/js/components/scrollspy.d.ts +80 -0
- package/dist/js/components/sidenav.d.ts +125 -0
- package/dist/js/components/slider.d.ts +101 -0
- package/dist/js/components/tabs.d.ts +80 -0
- package/dist/js/components/tap-target.d.ts +58 -0
- package/dist/js/components/timepicker.d.ts +207 -0
- package/dist/js/components/toast.d.ts +93 -0
- package/dist/js/components/tooltip.d.ts +117 -0
- package/dist/js/components/waves.d.ts +15 -0
- package/dist/js/expressive.js +8239 -0
- package/dist/js/expressive.js.map +1 -0
- package/dist/js/expressive.min.js +2 -0
- package/dist/js/expressive.min.js.map +1 -0
- package/dist/js/expressive.mjs +8206 -0
- package/dist/js/expressive.mjs.map +1 -0
- package/dist/js/forms/character-counter.d.ts +36 -0
- package/dist/js/forms/forms.d.ts +17 -0
- package/dist/js/forms/index.d.ts +4 -0
- package/dist/js/forms/range.d.ts +40 -0
- package/dist/js/forms/select.d.ts +77 -0
- package/dist/js/foundation/component.d.ts +73 -0
- package/dist/js/foundation/index.d.ts +2 -0
- package/dist/js/foundation/utils.d.ts +122 -0
- package/dist/js/index.d.ts +52 -0
- package/dist/js/plugins/docked-display.d.ts +34 -0
- package/dist/js/plugins/index.d.ts +1 -0
- package/package.json +71 -0
- package/src/scss/components/_appbar.scss +454 -0
- package/src/scss/components/_badges.scss +77 -0
- package/src/scss/components/_breadcrumb.scss +27 -0
- package/src/scss/components/_buttons.scss +412 -0
- package/src/scss/components/_cards.scss +267 -0
- package/src/scss/components/_carousel.scss +93 -0
- package/src/scss/components/_chips.scss +147 -0
- package/src/scss/components/_collapsible.scss +84 -0
- package/src/scss/components/_collection.scss +114 -0
- package/src/scss/components/_date-picker.scss +268 -0
- package/src/scss/components/_dropdown.scss +98 -0
- package/src/scss/components/_index.scss +28 -0
- package/src/scss/components/_material-box.scss +42 -0
- package/src/scss/components/_material-icons.scss +6 -0
- package/src/scss/components/_modal.scss +84 -0
- package/src/scss/components/_pagination.scss +45 -0
- package/src/scss/components/_parallax.scss +26 -0
- package/src/scss/components/_preloader.scss +422 -0
- package/src/scss/components/_pulse.scss +35 -0
- package/src/scss/components/_sidenav.scss +229 -0
- package/src/scss/components/_slider.scss +119 -0
- package/src/scss/components/_table-of-contents.scss +32 -0
- package/src/scss/components/_tabs.scss +176 -0
- package/src/scss/components/_tap-target.scss +102 -0
- package/src/scss/components/_time-picker.scss +294 -0
- package/src/scss/components/_toast.scss +70 -0
- package/src/scss/components/_tooltip.scss +49 -0
- package/src/scss/components/_transitions.scss +19 -0
- package/src/scss/components/_video.scss +15 -0
- package/src/scss/expressive.scss +7 -0
- package/src/scss/forms/_checkboxes.scss +199 -0
- package/src/scss/forms/_file-input.scss +41 -0
- package/src/scss/forms/_index.scss +17 -0
- package/src/scss/forms/_input-fields.scss +360 -0
- package/src/scss/forms/_radio-buttons.scss +114 -0
- package/src/scss/forms/_range.scss +148 -0
- package/src/scss/forms/_select.scss +108 -0
- package/src/scss/forms/_switches.scss +127 -0
- package/src/scss/foundation/_base.scss +71 -0
- package/src/scss/foundation/_color-palette.scss +402 -0
- package/src/scss/foundation/_index.scss +10 -0
- package/src/scss/foundation/_mixins.scss +198 -0
- package/src/scss/foundation/_motion.scss +70 -0
- package/src/scss/foundation/_normalize.scss +349 -0
- package/src/scss/foundation/_shape.scss +30 -0
- package/src/scss/foundation/_state-layers.scss +68 -0
- package/src/scss/foundation/_theme.scss +238 -0
- package/src/scss/foundation/_tokens.scss +511 -0
- package/src/scss/foundation/_variables.scss +57 -0
- package/src/scss/layout/_footer.scss +26 -0
- package/src/scss/layout/_grid.scss +172 -0
- package/src/scss/layout/_index.scss +3 -0
- package/src/scss/layout/_table.scss +119 -0
- package/src/scss/utilities/_a11y.scss +77 -0
- package/src/scss/utilities/_colors.scss +74 -0
- package/src/scss/utilities/_elevation.scss +63 -0
- package/src/scss/utilities/_helpers.scss +50 -0
- package/src/scss/utilities/_index.scss +7 -0
- package/src/scss/utilities/_responsive.scss +62 -0
- package/src/scss/utilities/_spacing.scss +38 -0
- package/src/scss/utilities/_typography.scss +115 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
.carousel {
|
|
2
|
+
--carousel-height: 400px;
|
|
3
|
+
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: var(--carousel-height);
|
|
8
|
+
perspective: 500px;
|
|
9
|
+
transform-style: preserve-3d;
|
|
10
|
+
transform-origin: 0% 50%;
|
|
11
|
+
|
|
12
|
+
&.carousel-slider {
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
|
|
16
|
+
.carousel-fixed-item {
|
|
17
|
+
position: absolute;
|
|
18
|
+
left: 0;
|
|
19
|
+
right: 0;
|
|
20
|
+
bottom: 20px;
|
|
21
|
+
z-index: 1;
|
|
22
|
+
|
|
23
|
+
&.with-indicators {
|
|
24
|
+
bottom: 68px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.carousel-item {
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
min-height: var(--carousel-height);
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 0;
|
|
34
|
+
left: 0;
|
|
35
|
+
|
|
36
|
+
h2 {
|
|
37
|
+
font-size: 24px;
|
|
38
|
+
font-weight: 500;
|
|
39
|
+
line-height: 32px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
p {
|
|
43
|
+
font-size: 15px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.carousel-item {
|
|
49
|
+
visibility: hidden;
|
|
50
|
+
width: calc(var(--carousel-height) * 0.5);
|
|
51
|
+
height: calc(var(--carousel-height) * 0.5);
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 0;
|
|
54
|
+
left: 0;
|
|
55
|
+
|
|
56
|
+
& > img {
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.indicators {
|
|
62
|
+
padding-left: 0;
|
|
63
|
+
list-style-type: none;
|
|
64
|
+
position: absolute;
|
|
65
|
+
text-align: center;
|
|
66
|
+
left: 0;
|
|
67
|
+
right: 0;
|
|
68
|
+
bottom: 0;
|
|
69
|
+
margin: 0;
|
|
70
|
+
|
|
71
|
+
.indicator-item {
|
|
72
|
+
display: inline-block;
|
|
73
|
+
position: relative;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
height: 8px;
|
|
76
|
+
width: 8px;
|
|
77
|
+
margin: 24px 4px;
|
|
78
|
+
background-color: rgba(255, 255, 255, 0.45);
|
|
79
|
+
transition: background-color .3s;
|
|
80
|
+
border-radius: 50%;
|
|
81
|
+
|
|
82
|
+
&.active {
|
|
83
|
+
background-color: var(--md-ref-palette-primary100);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Materialbox compatibility
|
|
89
|
+
&.scrolling .carousel-item .materialboxed,
|
|
90
|
+
.carousel-item:not(.active) .materialboxed {
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
@use '../foundation/variables' as *;
|
|
2
|
+
|
|
3
|
+
.collection {
|
|
4
|
+
padding-left: 0;
|
|
5
|
+
list-style-type: none;
|
|
6
|
+
margin: $element-top-margin 0 $element-bottom-margin 0;
|
|
7
|
+
border: 1px solid var(--md-sys-color-outline-variant);
|
|
8
|
+
border-radius: 2px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
.collection-item {
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
line-height: 1.5rem;
|
|
15
|
+
padding: 10px 20px;
|
|
16
|
+
margin: 0;
|
|
17
|
+
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
18
|
+
|
|
19
|
+
// Avatar Collection
|
|
20
|
+
&.avatar {
|
|
21
|
+
min-height: 84px;
|
|
22
|
+
padding-left: 72px;
|
|
23
|
+
position: relative;
|
|
24
|
+
|
|
25
|
+
// Don't style circles inside preloader classes.
|
|
26
|
+
&:not(.circle-clipper) > .circle,
|
|
27
|
+
:not(.circle-clipper) > .circle {
|
|
28
|
+
position: absolute;
|
|
29
|
+
width: 42px;
|
|
30
|
+
height: 42px;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
left: 15px;
|
|
33
|
+
display: inline-block;
|
|
34
|
+
vertical-align: middle;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
i.circle {
|
|
38
|
+
font-size: 18px;
|
|
39
|
+
line-height: 42px;
|
|
40
|
+
color: #fff;
|
|
41
|
+
background-color: var(--md-sys-color-shadow-light);
|
|
42
|
+
text-align: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
.title {
|
|
47
|
+
font-size: 16px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
p {
|
|
51
|
+
margin: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.secondary-content {
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 16px;
|
|
57
|
+
right: 16px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:last-child {
|
|
62
|
+
border-bottom: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.active {
|
|
66
|
+
background-color: var(--md-sys-color-primary);
|
|
67
|
+
color: var(--md-sys-color-on-primary);
|
|
68
|
+
|
|
69
|
+
.secondary-content {
|
|
70
|
+
color: var(--md-sys-color-on-primary);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
a.collection-item {
|
|
76
|
+
display: block;
|
|
77
|
+
transition: .25s;
|
|
78
|
+
color: var(--md-sys-color-primary);
|
|
79
|
+
|
|
80
|
+
&:not(.active) {
|
|
81
|
+
&:hover {
|
|
82
|
+
background-color: rgba(0, 0, 0, 0.04);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.with-header {
|
|
88
|
+
.collection-header {
|
|
89
|
+
background-color: transparent;
|
|
90
|
+
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
91
|
+
padding: 10px 20px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.collection-item {
|
|
95
|
+
padding-left: 30px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.collection-item.avatar {
|
|
99
|
+
padding-left: 72px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Made less specific to allow easier overriding
|
|
106
|
+
.secondary-content {
|
|
107
|
+
float: right;
|
|
108
|
+
color: var(--md-sys-color-primary);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.collapsible .collection {
|
|
112
|
+
margin: 0;
|
|
113
|
+
border: none;
|
|
114
|
+
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
/* Modal */
|
|
2
|
+
// @removed since v2.2.1
|
|
3
|
+
/*.datepicker-modal {
|
|
4
|
+
max-width: 325px;
|
|
5
|
+
// @removed since v2.2.1-dev regarding Material M3 standards
|
|
6
|
+
min-width: 300px;
|
|
7
|
+
max-height: none;
|
|
8
|
+
}*/
|
|
9
|
+
|
|
10
|
+
.datepicker-container {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
max-width: 325px;
|
|
14
|
+
padding: 0;
|
|
15
|
+
background-color: var(--md-sys-color-surface);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.datepicker-controls {
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
width: 280px;
|
|
22
|
+
margin: 0 auto;
|
|
23
|
+
|
|
24
|
+
.selects-container {
|
|
25
|
+
display: flex;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.select-wrapper {
|
|
29
|
+
input {
|
|
30
|
+
height: 49px;
|
|
31
|
+
margin: 4px 0 0 0;
|
|
32
|
+
border-bottom: none;
|
|
33
|
+
border-radius: 4px;
|
|
34
|
+
text-align: center;
|
|
35
|
+
|
|
36
|
+
&:focus {
|
|
37
|
+
border-bottom: none;
|
|
38
|
+
background-color: var(--md-sys-color-primary-container);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&::selection {
|
|
42
|
+
background-color: transparent;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.caret {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.select-dropdown {
|
|
52
|
+
padding: 0;
|
|
53
|
+
vertical-align: middle;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.select-year input,
|
|
57
|
+
.select-month input {
|
|
58
|
+
background-color: transparent;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.select-year input {
|
|
62
|
+
width: 50px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.select-month input {
|
|
66
|
+
width: 80px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.month-prev,
|
|
70
|
+
.month-next {
|
|
71
|
+
display: inline-flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.month-prev,
|
|
76
|
+
.month-next {
|
|
77
|
+
& > svg {
|
|
78
|
+
fill: var(--md-sys-color-on-surface-variant);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.month-prev, .month-next {
|
|
84
|
+
height: 49px;
|
|
85
|
+
margin-top: 4px;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
background-color: transparent;
|
|
88
|
+
border: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/* Date Display */
|
|
93
|
+
.datepicker-date-display {
|
|
94
|
+
flex: 1 auto;
|
|
95
|
+
// @removed since v2.2.1-dev regarding Material M3 standards
|
|
96
|
+
// background-color: var(--md-sys-color-primary);
|
|
97
|
+
// color: var(--md-sys-color-on-primary);
|
|
98
|
+
padding: 20px 22px;
|
|
99
|
+
border-bottom: 1px solid var(--md-sys-color-surface-variant-light);
|
|
100
|
+
font-weight: 500;
|
|
101
|
+
|
|
102
|
+
.year-text {
|
|
103
|
+
display: block;
|
|
104
|
+
font-size: 1.5rem;
|
|
105
|
+
line-height: 25px;
|
|
106
|
+
color: var(--md-sys-color-on-primary);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.date-text {
|
|
110
|
+
display: block;
|
|
111
|
+
font-size: 2.8rem;
|
|
112
|
+
line-height: 47px;
|
|
113
|
+
font-weight: 500;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.daterange & {
|
|
117
|
+
.date-text {
|
|
118
|
+
font-size: 1.8rem;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
/* Calendar */
|
|
125
|
+
.datepicker-calendar-container {
|
|
126
|
+
flex: 2.5 auto;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.datepicker-table {
|
|
130
|
+
width: 280px;
|
|
131
|
+
font-size: 1rem;
|
|
132
|
+
margin: 0 auto;
|
|
133
|
+
|
|
134
|
+
thead {
|
|
135
|
+
border-bottom: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
th {
|
|
139
|
+
padding: 10px 5px;
|
|
140
|
+
text-align: center;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
tr {
|
|
144
|
+
border: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
abbr {
|
|
148
|
+
text-decoration: none;
|
|
149
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.datepicker-day {
|
|
153
|
+
padding: 0;
|
|
154
|
+
color: var(--md-sys-color-on-background);
|
|
155
|
+
// border-radius: 50%;
|
|
156
|
+
|
|
157
|
+
&.is-today {
|
|
158
|
+
color: var(--md-sys-color-primary);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/*&.is-selected button {
|
|
162
|
+
background-color: var(--md-sys-color-primary);
|
|
163
|
+
color: var(--md-sys-color-on-primary);
|
|
164
|
+
}*/
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.datepicker-day {
|
|
169
|
+
// @todo
|
|
170
|
+
&.has-event {}
|
|
171
|
+
// @todo
|
|
172
|
+
&.is-inrange {}
|
|
173
|
+
// @todo
|
|
174
|
+
&.is-startrange {}
|
|
175
|
+
// @todo
|
|
176
|
+
&.is-endrange {}
|
|
177
|
+
|
|
178
|
+
&.is-daterange-start,
|
|
179
|
+
&.is-daterange-end,
|
|
180
|
+
&.is-daterange {
|
|
181
|
+
position: relative;
|
|
182
|
+
|
|
183
|
+
&:before {
|
|
184
|
+
position: absolute;
|
|
185
|
+
top: 5px;
|
|
186
|
+
width: 100%;
|
|
187
|
+
height: 34px;
|
|
188
|
+
content: '';
|
|
189
|
+
background-color: var(--md-sys-color-primary-container);
|
|
190
|
+
z-index: 0;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&.is-daterange-start:before,
|
|
195
|
+
&.is-daterange-end:before {
|
|
196
|
+
width: 50%;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&.is-daterange-start:before {
|
|
200
|
+
left: 50%;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&.is-daterange .datepicker-day-button:before {
|
|
204
|
+
background-color: var(--md-sys-color-primary-container);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.datepicker-day-button {
|
|
209
|
+
background-color: transparent;
|
|
210
|
+
border: none;
|
|
211
|
+
line-height: 34px;
|
|
212
|
+
display: block;
|
|
213
|
+
width: 34px;
|
|
214
|
+
border-radius: 50%;
|
|
215
|
+
margin: 5px;
|
|
216
|
+
padding: 0 5px;
|
|
217
|
+
cursor: pointer;
|
|
218
|
+
color: inherit;
|
|
219
|
+
position: relative;
|
|
220
|
+
z-index: 1;
|
|
221
|
+
|
|
222
|
+
&:hover {
|
|
223
|
+
background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&:focus {
|
|
227
|
+
border-color: var(--md-sys-color-primary);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.is-selected & {
|
|
231
|
+
background-color: var(--md-sys-color-primary);
|
|
232
|
+
color: var(--md-sys-color-on-primary);
|
|
233
|
+
|
|
234
|
+
&:focus {
|
|
235
|
+
background-color: var(--md-sys-color-surface-variant);
|
|
236
|
+
color: var(--md-sys-color-primary);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&.is-outside-current-month button,
|
|
241
|
+
&.is-disabled button {
|
|
242
|
+
color: var(--md-sys-color-on-surface);
|
|
243
|
+
pointer-events: none;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Footer */
|
|
248
|
+
.datepicker-footer {
|
|
249
|
+
width: 280px;
|
|
250
|
+
margin: 0 auto;
|
|
251
|
+
padding-bottom: 5px;
|
|
252
|
+
display: flex;
|
|
253
|
+
justify-content: space-between;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.datepicker-cancel,
|
|
257
|
+
.datepicker-clear,
|
|
258
|
+
.datepicker-today,
|
|
259
|
+
.datepicker-done {
|
|
260
|
+
color: var(--md-sys-color-primary);
|
|
261
|
+
padding: 0 1rem;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.datepicker-clear {
|
|
265
|
+
color: var(--md-sys-color-error);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
|