@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,119 @@
|
|
|
1
|
+
.slider {
|
|
2
|
+
position: relative;
|
|
3
|
+
height: 400px;
|
|
4
|
+
width: 100%;
|
|
5
|
+
|
|
6
|
+
// Fullscreen slider
|
|
7
|
+
&.fullscreen {
|
|
8
|
+
height: 100%;
|
|
9
|
+
width: 100%;
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
|
|
16
|
+
ul.slides {
|
|
17
|
+
padding-left: 0;
|
|
18
|
+
list-style-type: none;
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ul.indicators {
|
|
23
|
+
padding-left: 0;
|
|
24
|
+
list-style-type: none;
|
|
25
|
+
z-index: 2;
|
|
26
|
+
bottom: 30px;
|
|
27
|
+
|
|
28
|
+
.indicator-item {
|
|
29
|
+
background-color: rgba(255, 255, 255, 0.45);
|
|
30
|
+
|
|
31
|
+
&.active {
|
|
32
|
+
background-color: var(--md-ref-palette-primary100);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.slides {
|
|
40
|
+
background-color: var(--md-sys-color-surface);
|
|
41
|
+
margin: 0;
|
|
42
|
+
height: 400px;
|
|
43
|
+
padding-left: 0;
|
|
44
|
+
list-style-type: none;
|
|
45
|
+
|
|
46
|
+
li {
|
|
47
|
+
padding-left: 0;
|
|
48
|
+
list-style-type: none;
|
|
49
|
+
opacity: 0;
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 0;
|
|
52
|
+
left: 0;
|
|
53
|
+
z-index: 1;
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: inherit;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
|
|
58
|
+
img {
|
|
59
|
+
height: 100%;
|
|
60
|
+
width: 100%;
|
|
61
|
+
background-size: cover;
|
|
62
|
+
background-position: center;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.caption {
|
|
66
|
+
color: #fff;
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: 15%;
|
|
69
|
+
left: 15%;
|
|
70
|
+
width: 70%;
|
|
71
|
+
opacity: 0;
|
|
72
|
+
|
|
73
|
+
p {
|
|
74
|
+
color: rgba(255, 255, 255, 0.75);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.active {
|
|
79
|
+
z-index: 2;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.indicators {
|
|
85
|
+
padding-left: 0;
|
|
86
|
+
list-style-type: none;
|
|
87
|
+
position: absolute;
|
|
88
|
+
text-align: center;
|
|
89
|
+
left: 0;
|
|
90
|
+
right: 0;
|
|
91
|
+
bottom: 0;
|
|
92
|
+
margin: 0;
|
|
93
|
+
|
|
94
|
+
.indicator-item {
|
|
95
|
+
display: inline-block;
|
|
96
|
+
position: relative;
|
|
97
|
+
height: 16px;
|
|
98
|
+
width: 16px;
|
|
99
|
+
margin: 0 12px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.indicator-item-btn {
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 0;
|
|
105
|
+
left: 0;
|
|
106
|
+
width: 100%;
|
|
107
|
+
height: 100%;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
background-color: var(--md-sys-color-shadow-light);
|
|
110
|
+
transition: background-color .3s;
|
|
111
|
+
border-radius: 50%;
|
|
112
|
+
border-width: 0;
|
|
113
|
+
|
|
114
|
+
&.active {
|
|
115
|
+
background-color: var(--md-sys-color-primary);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.table-of-contents {
|
|
2
|
+
list-style: none;
|
|
3
|
+
|
|
4
|
+
&.fixed {
|
|
5
|
+
position: fixed;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
li {
|
|
9
|
+
padding: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
a {
|
|
13
|
+
display: inline-block;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
color: var(--md-sys-color-secondary);
|
|
16
|
+
padding-left: 16px;
|
|
17
|
+
height: 2rem;
|
|
18
|
+
line-height: 2rem;
|
|
19
|
+
border-left: 1px solid var(--md-sys-color-outline-variant);
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
color: var(--md-sys-color-on-background);
|
|
23
|
+
padding-left: 15px;
|
|
24
|
+
}
|
|
25
|
+
&.active {
|
|
26
|
+
color: var(--md-sys-color-primary);
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
padding-left: 14px;
|
|
29
|
+
border-left: 2px solid var(--md-sys-color-primary);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
.tap-target-wrapper {
|
|
2
|
+
width: 800px;
|
|
3
|
+
height: 800px;
|
|
4
|
+
position: fixed;
|
|
5
|
+
z-index: 1000;
|
|
6
|
+
visibility: hidden;
|
|
7
|
+
transition: visibility 0s .3s;
|
|
8
|
+
|
|
9
|
+
&.open {
|
|
10
|
+
visibility: visible;
|
|
11
|
+
transition: visibility 0s;
|
|
12
|
+
|
|
13
|
+
.tap-target {
|
|
14
|
+
transform: scale(1);
|
|
15
|
+
opacity: .95;
|
|
16
|
+
transition:
|
|
17
|
+
transform .3s cubic-bezier(.42,0,.58,1),
|
|
18
|
+
opacity .3s cubic-bezier(.42,0,.58,1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.tap-target-wave::before {
|
|
22
|
+
transform: scale(1);
|
|
23
|
+
}
|
|
24
|
+
.tap-target-wave::after {
|
|
25
|
+
visibility: visible;
|
|
26
|
+
animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
|
|
27
|
+
transition:
|
|
28
|
+
opacity .3s,
|
|
29
|
+
transform .3s,
|
|
30
|
+
visibility 0s 1s;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tap-target {
|
|
36
|
+
position: absolute;
|
|
37
|
+
font-size: 1rem;
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
background-color: var(--md-sys-color-primary-container);
|
|
40
|
+
color: var(--md-sys-color-primary);
|
|
41
|
+
box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.14), 0 10px 50px 0 rgba(0, 0, 0, 0.12), 0 30px 10px -20px rgba(0, 0, 0, 0.2);
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transform: scale(0);
|
|
46
|
+
transition: transform .3s cubic-bezier(.42, 0, .58, 1),
|
|
47
|
+
opacity .3s cubic-bezier(.42, 0, .58, 1);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.tap-target-content {
|
|
51
|
+
position: relative;
|
|
52
|
+
display: table-cell;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.tap-target-wave {
|
|
56
|
+
position: absolute;
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
z-index: 10001;
|
|
59
|
+
|
|
60
|
+
&::before,
|
|
61
|
+
&::after {
|
|
62
|
+
content: '';
|
|
63
|
+
display: block;
|
|
64
|
+
position: absolute;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
border-radius: 50%;
|
|
68
|
+
background-color: var(--md-sys-color-surface)
|
|
69
|
+
}
|
|
70
|
+
&::before {
|
|
71
|
+
transform: scale(0);
|
|
72
|
+
transition: transform .3s;
|
|
73
|
+
}
|
|
74
|
+
&::after {
|
|
75
|
+
visibility: hidden;
|
|
76
|
+
transition:
|
|
77
|
+
opacity .3s,
|
|
78
|
+
transform .3s,
|
|
79
|
+
visibility 0s;
|
|
80
|
+
z-index: -1;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tap-target-origin {
|
|
85
|
+
top: 50%;
|
|
86
|
+
left: 50%;
|
|
87
|
+
z-index: 10002;
|
|
88
|
+
position: absolute !important;
|
|
89
|
+
transform: translate(-50%,-50%);
|
|
90
|
+
|
|
91
|
+
&:not(.btn),
|
|
92
|
+
&:not(.btn):hover {
|
|
93
|
+
background: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media only screen and (max-width: 600px) {
|
|
98
|
+
.tap-target, .tap-target-wrapper {
|
|
99
|
+
width: 600px;
|
|
100
|
+
height: 600px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
@use '../foundation/variables' as *;
|
|
2
|
+
|
|
3
|
+
.timepicker-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
max-width: 325px;
|
|
7
|
+
padding: 0;
|
|
8
|
+
background-color: var(--md-sys-color-inverse-on-surface);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.text-primary {
|
|
12
|
+
color: var(--md-sys-color-on-primary);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Clock Digital Display */
|
|
16
|
+
.timepicker-digital-display {
|
|
17
|
+
width: auto;
|
|
18
|
+
flex: 1 auto;
|
|
19
|
+
// background-color: var(--md-sys-color-surface);
|
|
20
|
+
padding: 2rem .67rem .67rem .67rem;
|
|
21
|
+
font-weight: 300;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.timepicker-text-container {
|
|
25
|
+
display: flex;
|
|
26
|
+
font-size: 4rem;
|
|
27
|
+
text-align: left;
|
|
28
|
+
color: var(--font-on-primary-color-medium);
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
/*position: relative;*/
|
|
31
|
+
user-select: none;
|
|
32
|
+
padding: 1rem 1rem 1.3rem 1rem;
|
|
33
|
+
|
|
34
|
+
input[type=text]{
|
|
35
|
+
height: 4rem;
|
|
36
|
+
color: var(--md-sys-color-secondary);
|
|
37
|
+
border-bottom: 0px;
|
|
38
|
+
font-size: 4rem;
|
|
39
|
+
direction: ltr;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.timepicker-display-column {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.timepicker-display-digital-clock {
|
|
48
|
+
flex-grow: 1;
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.timepicker-input-hours-wrapper,
|
|
53
|
+
.timepicker-input-minutes-wrapper {
|
|
54
|
+
width: 6.9rem;
|
|
55
|
+
height: 5.75rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.timepicker-input-hours,
|
|
59
|
+
.timepicker-input-minutes,
|
|
60
|
+
.timepicker-span-am-pm div {
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
input[type=text].timepicker-input-hours,
|
|
65
|
+
input[type=text].timepicker-input-minutes {
|
|
66
|
+
height: 100%;
|
|
67
|
+
padding: 1.33rem .8rem;
|
|
68
|
+
border: 0;
|
|
69
|
+
text-align: center;
|
|
70
|
+
color: var(--md-sys-color-on-background);
|
|
71
|
+
background-color: var(--md-sys-color-surface-variant);
|
|
72
|
+
|
|
73
|
+
&:focus {
|
|
74
|
+
background-color: var(--md-sys-color-primary-container);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.timepicker-input-divider-wrapper {
|
|
79
|
+
width: 1.6rem;
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/*input[type=text].text-primary {
|
|
84
|
+
color: var(--md-sys-color-on-background);
|
|
85
|
+
}*/
|
|
86
|
+
|
|
87
|
+
.timepicker-display-am-pm {
|
|
88
|
+
font-size: 1.3rem;
|
|
89
|
+
/*position: absolute;
|
|
90
|
+
top: 1rem;
|
|
91
|
+
right: 1rem;*/
|
|
92
|
+
font-weight: 400;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.timepicker-span-am-pm {
|
|
96
|
+
height: 5.75rem;
|
|
97
|
+
max-width: 3.5rem;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.timepicker-container {
|
|
101
|
+
.am-btn,
|
|
102
|
+
.pm-btn {
|
|
103
|
+
width: 3.6rem;
|
|
104
|
+
height: 50%;
|
|
105
|
+
padding-left: calc(var(--btn-padding) / 1.8);
|
|
106
|
+
padding-right: calc(var(--btn-padding) / 1.8);
|
|
107
|
+
line-height: 2rem;
|
|
108
|
+
vertical-align: middle;
|
|
109
|
+
text-align: center;
|
|
110
|
+
// background-color: transparent;
|
|
111
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.am-btn {
|
|
115
|
+
border-bottom-right-radius: 0;
|
|
116
|
+
border-bottom-left-radius: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.pm-btn {
|
|
120
|
+
border-top: 0;
|
|
121
|
+
border-top-left-radius: 0;
|
|
122
|
+
border-top-right-radius: 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Analog Clock Display */
|
|
127
|
+
.timepicker-analog-display {
|
|
128
|
+
flex: 2.5 auto;
|
|
129
|
+
padding: .67rem;
|
|
130
|
+
// background-color: var(--md-sys-color-surface);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.timepicker-plate {
|
|
134
|
+
background-color: var(--md-sys-color-surface-variant);
|
|
135
|
+
border-radius: 50%;
|
|
136
|
+
width: 260px;
|
|
137
|
+
height: 260px;
|
|
138
|
+
overflow: visible;
|
|
139
|
+
position: relative;
|
|
140
|
+
margin: 0 1.6rem 1.6rem 1.6rem;
|
|
141
|
+
user-select: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.timepicker-canvas,
|
|
145
|
+
.timepicker-dial {
|
|
146
|
+
position: absolute;
|
|
147
|
+
left: 0;
|
|
148
|
+
right: 0;
|
|
149
|
+
top: 0;
|
|
150
|
+
bottom: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.timepicker-minutes {
|
|
154
|
+
visibility: hidden;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.timepicker-tick {
|
|
158
|
+
border-radius: 50%;
|
|
159
|
+
color: var(--md-sys-color-on-background);
|
|
160
|
+
line-height: 40px;
|
|
161
|
+
text-align: center;
|
|
162
|
+
width: 40px;
|
|
163
|
+
height: 40px;
|
|
164
|
+
position: absolute;
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
font-size: 15px;
|
|
167
|
+
|
|
168
|
+
&.active,
|
|
169
|
+
&:hover {
|
|
170
|
+
background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.timepicker-dial {
|
|
175
|
+
transition: transform 350ms, opacity 350ms;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.timepicker-dial-out {
|
|
179
|
+
opacity: 0;
|
|
180
|
+
|
|
181
|
+
&.timepicker-hours {
|
|
182
|
+
transform: scale(1.1, 1.1);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&.timepicker-minutes {
|
|
186
|
+
transform: scale(.8, .8);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.timepicker-canvas {
|
|
191
|
+
transition: opacity 175ms;
|
|
192
|
+
|
|
193
|
+
line {
|
|
194
|
+
stroke: var(--md-sys-color-primary);
|
|
195
|
+
stroke-width: 4;
|
|
196
|
+
stroke-linecap: round;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.timepicker-canvas-out {
|
|
201
|
+
opacity: 0.25;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.timepicker-canvas-bearing,
|
|
205
|
+
.timepicker-canvas-bg {
|
|
206
|
+
stroke: none;
|
|
207
|
+
fill: var(--md-sys-color-primary);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
/* Footer */
|
|
212
|
+
.timepicker-footer {
|
|
213
|
+
margin: 0 auto;
|
|
214
|
+
padding: 5px 1rem;
|
|
215
|
+
display: flex;
|
|
216
|
+
justify-content: space-between;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.timepicker-clear,
|
|
220
|
+
.timepicker-close {
|
|
221
|
+
padding: 0 20px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.timepicker-clear {
|
|
225
|
+
color: var(--md-sys-color-error);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.timepicker-close {
|
|
229
|
+
color: var(--md-sys-color-primary);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* Media Queries */
|
|
233
|
+
@media #{$large-and-up} {
|
|
234
|
+
.timepicker-container {
|
|
235
|
+
width: auto;
|
|
236
|
+
max-width: 620px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.timepicker-container {
|
|
240
|
+
flex-direction: row;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.timepicker-digital-display {
|
|
244
|
+
padding: .67rem;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.timepicker-text-container {
|
|
248
|
+
/*top: 31%;*/
|
|
249
|
+
flex-direction: column;
|
|
250
|
+
margin-top: 4.8rem;
|
|
251
|
+
text-align: center;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.timepicker-display-column {
|
|
255
|
+
padding: 0 3%;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.timepicker-display-am-pm {
|
|
259
|
+
margin-top: 1.1rem;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.timepicker-span-am-pm {
|
|
263
|
+
display: flex;
|
|
264
|
+
flex-grow: 1;
|
|
265
|
+
max-width: unset;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.timepicker-container {
|
|
269
|
+
.am-btn,
|
|
270
|
+
.pm-btn {
|
|
271
|
+
flex-grow: 1;
|
|
272
|
+
/*width: auto;*/
|
|
273
|
+
padding-left: calc(var(--btn-padding) / .565);
|
|
274
|
+
padding-right: calc(var(--btn-padding) / .565);
|
|
275
|
+
border-radius: var(--btn-border-radius);
|
|
276
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.am-btn {
|
|
280
|
+
border-top-right-radius: 0;
|
|
281
|
+
border-bottom-right-radius: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.pm-btn {
|
|
285
|
+
border-left: 0;
|
|
286
|
+
border-bottom-left-radius: 0;
|
|
287
|
+
border-top-left-radius: 0;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.timepicker-plate {
|
|
292
|
+
margin-top: 1.6rem;
|
|
293
|
+
}
|
|
294
|
+
}
|