mithril-materialized 1.4.2 → 2.0.0-beta.10
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/README.md +286 -306
- package/dist/advanced.css +1888 -0
- package/dist/autocomplete.d.ts +12 -4
- package/dist/breadcrumb.d.ts +53 -0
- package/dist/button.d.ts +10 -10
- package/dist/carousel.d.ts +26 -7
- package/dist/chip.d.ts +2 -2
- package/dist/code-block.d.ts +2 -3
- package/dist/collapsible.d.ts +12 -7
- package/dist/collection.d.ts +8 -8
- package/dist/components.css +2310 -0
- package/dist/core.css +3402 -0
- package/dist/datepicker.d.ts +66 -0
- package/dist/dropdown.d.ts +5 -5
- package/dist/file-upload.d.ts +34 -0
- package/dist/floating-action-button.d.ts +9 -5
- package/dist/forms.css +2284 -0
- package/dist/icon.d.ts +2 -2
- package/dist/index.css +9284 -2
- package/dist/index.d.ts +13 -3
- package/dist/index.esm.js +6188 -2
- package/dist/index.js +6263 -2
- package/dist/index.min.css +8 -0
- package/dist/index.umd.js +6267 -2
- package/dist/input-options.d.ts +3 -1
- package/dist/input.d.ts +17 -12
- package/dist/label.d.ts +6 -5
- package/dist/material-box.d.ts +22 -4
- package/dist/material-icon.d.ts +14 -0
- package/dist/modal.d.ts +23 -7
- package/dist/option.d.ts +12 -11
- package/dist/pagination.d.ts +5 -9
- package/dist/parallax.d.ts +8 -6
- package/dist/pickers.css +487 -0
- package/dist/pushpin.d.ts +32 -0
- package/dist/radio.d.ts +10 -6
- package/dist/select.d.ts +5 -5
- package/dist/sidenav.d.ts +76 -0
- package/dist/switch.d.ts +4 -5
- package/dist/tabs.d.ts +18 -7
- package/dist/theme-switcher.d.ts +49 -0
- package/dist/timepicker.d.ts +42 -0
- package/dist/toast.d.ts +45 -0
- package/dist/tooltip.d.ts +59 -0
- package/dist/utilities.css +3197 -0
- package/dist/utils.d.ts +17 -0
- package/dist/wizard.d.ts +58 -0
- package/package.json +47 -14
- package/sass/components/_badges.scss +59 -0
- package/sass/components/_breadcrumb.scss +248 -0
- package/sass/components/_buttons.scss +327 -0
- package/sass/components/_cards.scss +197 -0
- package/sass/components/_carousel.scss +92 -0
- package/sass/components/_chips.scss +92 -0
- package/sass/components/_collapsible.scss +94 -0
- package/sass/components/_color-classes.scss +34 -0
- package/sass/components/_color-variables.scss +371 -0
- package/sass/components/_datepicker.scss +282 -0
- package/sass/components/_dropdown.scss +90 -0
- package/sass/components/_file-upload.scss +228 -0
- package/sass/components/_global.scss +777 -0
- package/sass/components/_grid.scss +160 -0
- package/sass/components/_icons-material-design.scss +5 -0
- package/sass/components/_materialbox.scss +43 -0
- package/sass/components/_modal.scss +100 -0
- package/sass/components/_navbar.scss +219 -0
- package/sass/components/_normalize.scss +447 -0
- package/sass/components/_preloader.scss +336 -0
- package/sass/components/_pulse.scss +34 -0
- package/sass/components/_sidenav.scss +370 -0
- package/sass/components/_slider.scss +94 -0
- package/sass/components/_table_of_contents.scss +36 -0
- package/sass/components/_tabs.scss +103 -0
- package/sass/components/_tapTarget.scss +105 -0
- package/sass/components/_theme-switcher.scss +120 -0
- package/sass/components/_theme-variables.scss +205 -0
- package/sass/components/_timepicker.scss +262 -0
- package/sass/components/_toast.scss +61 -0
- package/sass/components/_tooltip.scss +32 -0
- package/sass/components/_transitions.scss +13 -0
- package/sass/components/_typography.scss +61 -0
- package/sass/components/_variables.scss +352 -0
- package/sass/components/_waves.scss +114 -0
- package/sass/components/_wizard.scss +416 -0
- package/sass/components/forms/_checkboxes.scss +203 -0
- package/sass/components/forms/_file-input.scss +50 -0
- package/sass/components/forms/_form-groups.scss +28 -0
- package/sass/components/forms/_forms.scss +24 -0
- package/sass/components/forms/_input-fields.scss +383 -0
- package/sass/components/forms/_radio-buttons.scss +118 -0
- package/sass/components/forms/_range.scss +164 -0
- package/sass/components/forms/_select.scss +193 -0
- package/sass/components/forms/_switches.scss +92 -0
- package/sass/materialize.scss +48 -0
- package/dist/index.css.map +0 -1
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js +0 -2
- package/dist/index.modern.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
- package/dist/map-editor.d.ts +0 -63
- package/dist/pickers.d.ts +0 -6
- package/dist/timeline.d.ts +0 -24
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// Theme Switcher Component Styles
|
|
2
|
+
|
|
3
|
+
.theme-switcher {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 0.5rem;
|
|
7
|
+
|
|
8
|
+
.theme-switcher-label {
|
|
9
|
+
font-size: 0.875rem;
|
|
10
|
+
color: var(--mm-text-secondary, rgba(0, 0, 0, 0.6));
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.theme-switcher-buttons {
|
|
15
|
+
display: flex;
|
|
16
|
+
background: var(--mm-surface-color, #ffffff);
|
|
17
|
+
border: 1px solid var(--mm-border-color, rgba(0, 0, 0, 0.12));
|
|
18
|
+
border-radius: 0.5rem;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
|
|
21
|
+
.btn-flat {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 0.25rem;
|
|
25
|
+
padding: 0.5rem 0.75rem;
|
|
26
|
+
margin: 0;
|
|
27
|
+
border: none;
|
|
28
|
+
background: transparent;
|
|
29
|
+
color: var(--mm-text-secondary, rgba(0, 0, 0, 0.6));
|
|
30
|
+
font-size: 0.875rem;
|
|
31
|
+
border-radius: 0;
|
|
32
|
+
min-width: auto;
|
|
33
|
+
height: auto;
|
|
34
|
+
line-height: 1;
|
|
35
|
+
text-transform: none;
|
|
36
|
+
transition: all 0.2s ease;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
|
|
39
|
+
&:hover {
|
|
40
|
+
background: var(--mm-border-color, rgba(0, 0, 0, 0.12));
|
|
41
|
+
color: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.active {
|
|
45
|
+
background: var(--mm-primary-color, #26a69a);
|
|
46
|
+
color: var(--mm-button-text, #ffffff);
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
background: var(--mm-primary-color-dark, #00695c);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.material-icons {
|
|
54
|
+
font-size: 1rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
span {
|
|
58
|
+
font-size: 0.75rem;
|
|
59
|
+
font-weight: 500;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.theme-toggle {
|
|
66
|
+
width: 2.5rem;
|
|
67
|
+
height: 2.5rem;
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
background: var(--mm-surface-color, #ffffff);
|
|
73
|
+
border: 1px solid var(--mm-border-color, rgba(0, 0, 0, 0.12));
|
|
74
|
+
color: var(--mm-text-secondary, rgba(0, 0, 0, 0.6));
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
transition: all 0.2s ease;
|
|
77
|
+
|
|
78
|
+
&:hover {
|
|
79
|
+
background: var(--mm-primary-color, #26a69a);
|
|
80
|
+
color: var(--mm-button-text, #ffffff);
|
|
81
|
+
border-color: var(--mm-primary-color, #26a69a);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.material-icons {
|
|
85
|
+
font-size: 1.25rem;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Navbar theme toggle specific styles
|
|
90
|
+
nav .theme-toggle {
|
|
91
|
+
background: transparent;
|
|
92
|
+
border: none;
|
|
93
|
+
border-radius: 0;
|
|
94
|
+
width: 64px;
|
|
95
|
+
height: 64px;
|
|
96
|
+
|
|
97
|
+
&:hover {
|
|
98
|
+
background: rgba(255, 255, 255, 0.1);
|
|
99
|
+
border: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:focus {
|
|
103
|
+
background: rgba(255, 255, 255, 0.1);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Responsive adjustments
|
|
108
|
+
@media (max-width: 600px) {
|
|
109
|
+
.theme-switcher {
|
|
110
|
+
.theme-switcher-buttons {
|
|
111
|
+
.btn-flat {
|
|
112
|
+
padding: 0.5rem;
|
|
113
|
+
|
|
114
|
+
span {
|
|
115
|
+
display: none;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
// Theme Variables using CSS Custom Properties
|
|
2
|
+
// This enables runtime theme switching including dark mode
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
// Light theme (default)
|
|
6
|
+
--mm-primary-color: #26a69a;
|
|
7
|
+
--mm-primary-color-light: #80cbc4;
|
|
8
|
+
--mm-primary-color-dark: #00695c;
|
|
9
|
+
|
|
10
|
+
--mm-secondary-color: #ff6f00;
|
|
11
|
+
--mm-secondary-color-light: #ffa726;
|
|
12
|
+
--mm-secondary-color-dark: #ef6c00;
|
|
13
|
+
|
|
14
|
+
// Background colors
|
|
15
|
+
--mm-background-color: #ffffff;
|
|
16
|
+
--mm-surface-color: #ffffff;
|
|
17
|
+
--mm-card-background: #ffffff;
|
|
18
|
+
|
|
19
|
+
// Text colors
|
|
20
|
+
--mm-text-primary: rgba(0, 0, 0, 0.87);
|
|
21
|
+
--mm-text-secondary: rgba(0, 0, 0, 0.6);
|
|
22
|
+
--mm-text-disabled: rgba(0, 0, 0, 0.38);
|
|
23
|
+
--mm-text-hint: rgba(0, 0, 0, 0.38);
|
|
24
|
+
|
|
25
|
+
// Border and divider colors
|
|
26
|
+
--mm-border-color: rgba(0, 0, 0, 0.12);
|
|
27
|
+
--mm-divider-color: rgba(0, 0, 0, 0.12);
|
|
28
|
+
|
|
29
|
+
// Input colors
|
|
30
|
+
--mm-input-background: #ffffff;
|
|
31
|
+
--mm-input-border: rgba(0, 0, 0, 0.42);
|
|
32
|
+
--mm-input-border-focus: var(--mm-primary-color);
|
|
33
|
+
--mm-input-text: var(--mm-text-primary);
|
|
34
|
+
|
|
35
|
+
// Button colors
|
|
36
|
+
--mm-button-background: var(--mm-primary-color);
|
|
37
|
+
--mm-button-text: #ffffff;
|
|
38
|
+
--mm-button-flat-text: var(--mm-primary-color);
|
|
39
|
+
|
|
40
|
+
// Navigation colors
|
|
41
|
+
--mm-nav-background: var(--mm-primary-color);
|
|
42
|
+
--mm-nav-text: #ffffff;
|
|
43
|
+
--mm-nav-active-text: #ffffff;
|
|
44
|
+
|
|
45
|
+
// Modal and overlay colors
|
|
46
|
+
--mm-modal-background: #ffffff;
|
|
47
|
+
--mm-overlay-background: rgba(0, 0, 0, 0.5);
|
|
48
|
+
|
|
49
|
+
// Shadow colors
|
|
50
|
+
--mm-shadow-color: rgba(0, 0, 0, 0.16);
|
|
51
|
+
|
|
52
|
+
// Chip colors
|
|
53
|
+
--mm-chip-bg: #e4e4e4;
|
|
54
|
+
--mm-chip-text: var(--mm-text-secondary);
|
|
55
|
+
|
|
56
|
+
// Dropdown colors
|
|
57
|
+
--mm-dropdown-hover: #eee;
|
|
58
|
+
--mm-dropdown-focus: #ddd;
|
|
59
|
+
--mm-dropdown-selected: #e3f2fd;
|
|
60
|
+
--mm-shadow-umbra: rgba(0, 0, 0, 0.2);
|
|
61
|
+
--mm-shadow-penumbra: rgba(0, 0, 0, 0.14);
|
|
62
|
+
--mm-shadow-ambient: rgba(0, 0, 0, 0.12);
|
|
63
|
+
|
|
64
|
+
// Switch colors
|
|
65
|
+
--mm-switch-checked-track: rgba(38, 166, 154, 0.3);
|
|
66
|
+
--mm-switch-checked-thumb: #26a69a;
|
|
67
|
+
--mm-switch-unchecked-track: rgba(0, 0, 0, 0.6);
|
|
68
|
+
--mm-switch-unchecked-thumb: #f5f5f5;
|
|
69
|
+
--mm-switch-disabled-track: rgba(0, 0, 0, 0.12);
|
|
70
|
+
--mm-switch-disabled-thumb: #bdbdbd;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Apply theme variables to body and main containers
|
|
74
|
+
body {
|
|
75
|
+
background-color: var(--mm-background-color);
|
|
76
|
+
color: var(--mm-text-primary);
|
|
77
|
+
transition: background-color 0.3s ease, color 0.3s ease;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.container, .main {
|
|
81
|
+
color: var(--mm-text-primary);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Dark theme
|
|
85
|
+
[data-theme="dark"] {
|
|
86
|
+
--mm-primary-color: #80cbc4;
|
|
87
|
+
--mm-primary-color-light: #b2dfdb;
|
|
88
|
+
--mm-primary-color-dark: #4db6ac;
|
|
89
|
+
|
|
90
|
+
--mm-secondary-color: #ffa726;
|
|
91
|
+
--mm-secondary-color-light: #ffcc02;
|
|
92
|
+
--mm-secondary-color-dark: #ff8f00;
|
|
93
|
+
|
|
94
|
+
// Background colors
|
|
95
|
+
--mm-background-color: #121212;
|
|
96
|
+
--mm-surface-color: #1e1e1e;
|
|
97
|
+
--mm-card-background: #2d2d2d;
|
|
98
|
+
|
|
99
|
+
// Text colors
|
|
100
|
+
--mm-text-primary: rgba(255, 255, 255, 0.87);
|
|
101
|
+
--mm-text-secondary: rgba(255, 255, 255, 0.6);
|
|
102
|
+
--mm-text-disabled: rgba(255, 255, 255, 0.38);
|
|
103
|
+
--mm-text-hint: rgba(255, 255, 255, 0.38);
|
|
104
|
+
|
|
105
|
+
// Border and divider colors
|
|
106
|
+
--mm-border-color: rgba(255, 255, 255, 0.12);
|
|
107
|
+
--mm-divider-color: rgba(255, 255, 255, 0.12);
|
|
108
|
+
|
|
109
|
+
// Input colors
|
|
110
|
+
--mm-input-background: #2d2d2d;
|
|
111
|
+
--mm-input-border: rgba(255, 255, 255, 0.42);
|
|
112
|
+
--mm-input-border-focus: var(--mm-primary-color);
|
|
113
|
+
--mm-input-text: var(--mm-text-primary);
|
|
114
|
+
|
|
115
|
+
// Button colors
|
|
116
|
+
--mm-button-background: var(--mm-primary-color);
|
|
117
|
+
--mm-button-text: #000000;
|
|
118
|
+
--mm-button-flat-text: var(--mm-primary-color);
|
|
119
|
+
|
|
120
|
+
// Navigation colors
|
|
121
|
+
--mm-nav-background: #1e1e1e;
|
|
122
|
+
--mm-nav-text: #ffffff;
|
|
123
|
+
--mm-nav-active-text: #000000;
|
|
124
|
+
|
|
125
|
+
// Modal and overlay colors
|
|
126
|
+
--mm-modal-background: #2d2d2d;
|
|
127
|
+
--mm-overlay-background: rgba(0, 0, 0, 0.8);
|
|
128
|
+
|
|
129
|
+
// Shadow colors
|
|
130
|
+
--mm-shadow-color: rgba(0, 0, 0, 0.5);
|
|
131
|
+
--mm-shadow-umbra: rgba(0, 0, 0, 0.5);
|
|
132
|
+
--mm-shadow-penumbra: rgba(0, 0, 0, 0.36);
|
|
133
|
+
--mm-shadow-ambient: rgba(0, 0, 0, 0.3);
|
|
134
|
+
|
|
135
|
+
// Chip colors
|
|
136
|
+
--mm-chip-bg: #424242;
|
|
137
|
+
--mm-chip-text: var(--mm-text-secondary);
|
|
138
|
+
|
|
139
|
+
// Dropdown colors
|
|
140
|
+
--mm-dropdown-hover: #444;
|
|
141
|
+
--mm-dropdown-focus: #555;
|
|
142
|
+
--mm-dropdown-selected: #1e3a8a;
|
|
143
|
+
|
|
144
|
+
// Switch colors (dark theme)
|
|
145
|
+
--mm-switch-checked-track: rgba(128, 203, 196, 0.3);
|
|
146
|
+
--mm-switch-checked-thumb: #80cbc4;
|
|
147
|
+
--mm-switch-unchecked-track: rgba(255, 255, 255, 0.6);
|
|
148
|
+
--mm-switch-unchecked-thumb: #616161;
|
|
149
|
+
--mm-switch-disabled-track: rgba(255, 255, 255, 0.12);
|
|
150
|
+
--mm-switch-disabled-thumb: #424242;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// Auto dark mode based on user preference
|
|
154
|
+
@media (prefers-color-scheme: dark) {
|
|
155
|
+
:root:not([data-theme]) {
|
|
156
|
+
--mm-primary-color: #80cbc4;
|
|
157
|
+
--mm-primary-color-light: #b2dfdb;
|
|
158
|
+
--mm-primary-color-dark: #4db6ac;
|
|
159
|
+
|
|
160
|
+
--mm-secondary-color: #ffa726;
|
|
161
|
+
--mm-secondary-color-light: #ffcc02;
|
|
162
|
+
--mm-secondary-color-dark: #ff8f00;
|
|
163
|
+
|
|
164
|
+
--mm-background-color: #121212;
|
|
165
|
+
--mm-surface-color: #1e1e1e;
|
|
166
|
+
--mm-card-background: #2d2d2d;
|
|
167
|
+
|
|
168
|
+
--mm-text-primary: rgba(255, 255, 255, 0.87);
|
|
169
|
+
--mm-text-secondary: rgba(255, 255, 255, 0.6);
|
|
170
|
+
--mm-text-disabled: rgba(255, 255, 255, 0.38);
|
|
171
|
+
--mm-text-hint: rgba(255, 255, 255, 0.38);
|
|
172
|
+
|
|
173
|
+
--mm-border-color: rgba(255, 255, 255, 0.12);
|
|
174
|
+
--mm-divider-color: rgba(255, 255, 255, 0.12);
|
|
175
|
+
|
|
176
|
+
--mm-input-background: #2d2d2d;
|
|
177
|
+
--mm-input-border: rgba(255, 255, 255, 0.42);
|
|
178
|
+
--mm-input-border-focus: var(--mm-primary-color);
|
|
179
|
+
--mm-input-text: var(--mm-text-primary);
|
|
180
|
+
|
|
181
|
+
--mm-button-background: var(--mm-primary-color);
|
|
182
|
+
--mm-button-text: #000000;
|
|
183
|
+
--mm-button-flat-text: var(--mm-primary-color);
|
|
184
|
+
|
|
185
|
+
--mm-nav-background: #1e1e1e;
|
|
186
|
+
--mm-nav-text: #ffffff;
|
|
187
|
+
--mm-nav-active-text: #000000;
|
|
188
|
+
|
|
189
|
+
--mm-modal-background: #2d2d2d;
|
|
190
|
+
--mm-overlay-background: rgba(0, 0, 0, 0.8);
|
|
191
|
+
|
|
192
|
+
--mm-shadow-color: rgba(0, 0, 0, 0.5);
|
|
193
|
+
--mm-shadow-umbra: rgba(0, 0, 0, 0.5);
|
|
194
|
+
--mm-shadow-penumbra: rgba(0, 0, 0, 0.36);
|
|
195
|
+
--mm-shadow-ambient: rgba(0, 0, 0, 0.3);
|
|
196
|
+
|
|
197
|
+
// Switch colors (auto dark theme)
|
|
198
|
+
--mm-switch-checked-track: rgba(128, 203, 196, 0.3);
|
|
199
|
+
--mm-switch-checked-thumb: #80cbc4;
|
|
200
|
+
--mm-switch-unchecked-track: rgba(255, 255, 255, 0.6);
|
|
201
|
+
--mm-switch-unchecked-thumb: #616161;
|
|
202
|
+
--mm-switch-disabled-track: rgba(255, 255, 255, 0.12);
|
|
203
|
+
--mm-switch-disabled-thumb: #424242;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "variables";
|
|
3
|
+
|
|
4
|
+
/* Enhanced TimePicker Styles */
|
|
5
|
+
.input-field.timepicker {
|
|
6
|
+
input[disabled] {
|
|
7
|
+
cursor: not-allowed;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.timepicker-actions {
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: 8px;
|
|
14
|
+
margin-top: 4px;
|
|
15
|
+
font-size: 12px;
|
|
16
|
+
|
|
17
|
+
.btn-flat {
|
|
18
|
+
padding: 2px 8px;
|
|
19
|
+
min-width: auto;
|
|
20
|
+
height: 24px;
|
|
21
|
+
line-height: 20px;
|
|
22
|
+
font-size: 11px;
|
|
23
|
+
text-transform: none;
|
|
24
|
+
|
|
25
|
+
i.material-icons {
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
margin-right: 4px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.inline-time-controls {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: 8px;
|
|
36
|
+
margin-top: 8px;
|
|
37
|
+
padding: 12px;
|
|
38
|
+
background-color: var(--mm-border-color, #f5f5f5);
|
|
39
|
+
border-radius: 4px;
|
|
40
|
+
font-size: 14px;
|
|
41
|
+
|
|
42
|
+
.time-controls-12h {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
gap: 4px;
|
|
46
|
+
|
|
47
|
+
input[type="number"] {
|
|
48
|
+
width: 50px;
|
|
49
|
+
text-align: center;
|
|
50
|
+
padding: 4px;
|
|
51
|
+
border: 1px solid var(--mm-border-color, #ccc);
|
|
52
|
+
border-radius: 4px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
select {
|
|
56
|
+
padding: 4px;
|
|
57
|
+
border: 1px solid var(--mm-border-color, #ccc);
|
|
58
|
+
border-radius: 4px;
|
|
59
|
+
margin-left: 4px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
input[type="time"] {
|
|
64
|
+
font-size: 16px;
|
|
65
|
+
padding: 4px 8px;
|
|
66
|
+
border: 1px solid var(--mm-border-color, #ccc);
|
|
67
|
+
border-radius: 4px;
|
|
68
|
+
min-width: 120px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.btn-flat {
|
|
72
|
+
padding: 4px 8px;
|
|
73
|
+
font-size: 11px;
|
|
74
|
+
background-color: var(--mm-border-color, #e0e0e0);
|
|
75
|
+
border-radius: 4px;
|
|
76
|
+
min-width: auto;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Timepicker Containers */
|
|
81
|
+
.timepicker-modal {
|
|
82
|
+
max-width: 325px;
|
|
83
|
+
max-height: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.timepicker-container.modal-content {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
padding: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.text-primary {
|
|
93
|
+
color: rgba(255, 255, 255, 1);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/* Clock Digital Display */
|
|
98
|
+
.timepicker-digital-display {
|
|
99
|
+
flex: 1 auto;
|
|
100
|
+
background-color: variables.$secondary-color;
|
|
101
|
+
padding: 10px;
|
|
102
|
+
font-weight: 300;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.timepicker-text-container {
|
|
106
|
+
font-size: 4rem;
|
|
107
|
+
font-weight: bold;
|
|
108
|
+
text-align: center;
|
|
109
|
+
color: rgba(255, 255, 255, 0.6);
|
|
110
|
+
font-weight: 400;
|
|
111
|
+
position: relative;
|
|
112
|
+
user-select: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.timepicker-span-hours,
|
|
116
|
+
.timepicker-span-minutes,
|
|
117
|
+
.timepicker-span-am-pm div {
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.timepicker-span-hours {
|
|
122
|
+
margin-right: 3px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.timepicker-span-minutes {
|
|
126
|
+
margin-left: 3px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.timepicker-display-am-pm {
|
|
130
|
+
font-size: 1.3rem;
|
|
131
|
+
position: absolute;
|
|
132
|
+
right: 1rem;
|
|
133
|
+
bottom: 1rem;
|
|
134
|
+
font-weight: 400;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
/* Analog Clock Display */
|
|
139
|
+
.timepicker-analog-display {
|
|
140
|
+
flex: 2.5 auto;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.timepicker-plate {
|
|
144
|
+
background-color: variables.$timepicker-clock-plate-bg;
|
|
145
|
+
border-radius: 50%;
|
|
146
|
+
width: 270px;
|
|
147
|
+
height: 270px;
|
|
148
|
+
overflow: visible;
|
|
149
|
+
position: relative;
|
|
150
|
+
margin: auto;
|
|
151
|
+
margin-top: 25px;
|
|
152
|
+
margin-bottom: 5px;
|
|
153
|
+
user-select: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.timepicker-canvas,
|
|
157
|
+
.timepicker-dial {
|
|
158
|
+
position: absolute;
|
|
159
|
+
left: 0;
|
|
160
|
+
right: 0;
|
|
161
|
+
top: 0;
|
|
162
|
+
bottom: 0;
|
|
163
|
+
}
|
|
164
|
+
.timepicker-minutes {
|
|
165
|
+
visibility: hidden;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.timepicker-tick {
|
|
169
|
+
border-radius: 50%;
|
|
170
|
+
color: variables.$timepicker-clock-color;
|
|
171
|
+
line-height: 40px;
|
|
172
|
+
text-align: center;
|
|
173
|
+
width: 40px;
|
|
174
|
+
height: 40px;
|
|
175
|
+
position: absolute;
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
font-size: 15px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.timepicker-tick.active,
|
|
181
|
+
.timepicker-tick:hover {
|
|
182
|
+
background-color: color.scale(variables.$secondary-color, $alpha: -75%);
|
|
183
|
+
}
|
|
184
|
+
.timepicker-dial {
|
|
185
|
+
transition: transform 350ms, opacity 350ms;
|
|
186
|
+
}
|
|
187
|
+
.timepicker-dial-out {
|
|
188
|
+
&.timepicker-hours {
|
|
189
|
+
transform: scale(1.1, 1.1);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.timepicker-minutes {
|
|
193
|
+
transform: scale(.8, .8);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
opacity: 0;
|
|
197
|
+
}
|
|
198
|
+
.timepicker-canvas {
|
|
199
|
+
transition: opacity 175ms;
|
|
200
|
+
|
|
201
|
+
line {
|
|
202
|
+
stroke: variables.$secondary-color;
|
|
203
|
+
stroke-width: 4;
|
|
204
|
+
stroke-linecap: round;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
.timepicker-canvas-out {
|
|
208
|
+
opacity: 0.25;
|
|
209
|
+
}
|
|
210
|
+
.timepicker-canvas-bearing {
|
|
211
|
+
stroke: none;
|
|
212
|
+
fill: variables.$secondary-color;
|
|
213
|
+
}
|
|
214
|
+
.timepicker-canvas-bg {
|
|
215
|
+
stroke: none;
|
|
216
|
+
fill: variables.$secondary-color;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
/* Footer */
|
|
221
|
+
.timepicker-footer {
|
|
222
|
+
margin: 0 auto;
|
|
223
|
+
padding: 5px 1rem;
|
|
224
|
+
display: flex;
|
|
225
|
+
justify-content: space-between;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.timepicker-clear {
|
|
229
|
+
color: variables.$error-color;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.timepicker-close {
|
|
233
|
+
color: variables.$secondary-color;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.timepicker-clear,
|
|
237
|
+
.timepicker-close {
|
|
238
|
+
padding: 0 20px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* Media Queries */
|
|
242
|
+
@media #{variables.$medium-and-up} {
|
|
243
|
+
.timepicker-modal {
|
|
244
|
+
max-width: 600px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.timepicker-container.modal-content {
|
|
248
|
+
flex-direction: row;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.timepicker-text-container {
|
|
252
|
+
top: 32%;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.timepicker-display-am-pm {
|
|
256
|
+
position: relative;
|
|
257
|
+
right: auto;
|
|
258
|
+
bottom: auto;
|
|
259
|
+
text-align: center;
|
|
260
|
+
margin-top: 1.2rem;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@use "variables";
|
|
2
|
+
@use "global";
|
|
3
|
+
|
|
4
|
+
#toast-container {
|
|
5
|
+
display:block;
|
|
6
|
+
position: fixed;
|
|
7
|
+
z-index: 10000;
|
|
8
|
+
|
|
9
|
+
@media #{variables.$small-and-down} {
|
|
10
|
+
min-width: 100%;
|
|
11
|
+
bottom: 0%;
|
|
12
|
+
}
|
|
13
|
+
@media #{variables.$medium-only} {
|
|
14
|
+
left: 5%;
|
|
15
|
+
bottom: 7%;
|
|
16
|
+
max-width: 90%;
|
|
17
|
+
}
|
|
18
|
+
@media #{variables.$large-and-up} {
|
|
19
|
+
top: 10%;
|
|
20
|
+
right: 7%;
|
|
21
|
+
max-width: 86%;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.toast {
|
|
26
|
+
@extend .z-depth-1 !optional;
|
|
27
|
+
border-radius: 2px;
|
|
28
|
+
top: 35px;
|
|
29
|
+
width: auto;
|
|
30
|
+
margin-top: 10px;
|
|
31
|
+
position: relative;
|
|
32
|
+
max-width:100%;
|
|
33
|
+
height: auto;
|
|
34
|
+
min-height: variables.$toast-height;
|
|
35
|
+
line-height: 1.5em;
|
|
36
|
+
background-color: variables.$toast-color;
|
|
37
|
+
padding: 10px 25px;
|
|
38
|
+
font-size: 1.1rem;
|
|
39
|
+
font-weight: 300;
|
|
40
|
+
color: variables.$toast-text-color;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
cursor: default;
|
|
45
|
+
|
|
46
|
+
.toast-action {
|
|
47
|
+
color: variables.$toast-action-color;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
margin-right: -25px;
|
|
50
|
+
margin-left: 3rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.rounded{
|
|
54
|
+
border-radius: 24px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media #{variables.$small-and-down} {
|
|
58
|
+
width: 100%;
|
|
59
|
+
border-radius: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.material-tooltip {
|
|
2
|
+
padding: 10px 8px;
|
|
3
|
+
font-size: 1rem;
|
|
4
|
+
z-index: 2000;
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
border-radius: 2px;
|
|
7
|
+
color: #fff;
|
|
8
|
+
min-height: 36px;
|
|
9
|
+
line-height: 120%;
|
|
10
|
+
opacity: 0;
|
|
11
|
+
position: absolute;
|
|
12
|
+
text-align: center;
|
|
13
|
+
max-width: calc(100% - 4px);
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
left: 0;
|
|
16
|
+
top: 0;
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
background-color: #323232;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.backdrop {
|
|
23
|
+
position: absolute;
|
|
24
|
+
opacity: 0;
|
|
25
|
+
height: 7px;
|
|
26
|
+
width: 14px;
|
|
27
|
+
border-radius: 0 0 50% 50%;
|
|
28
|
+
background-color: #323232;
|
|
29
|
+
z-index: -1;
|
|
30
|
+
transform-origin: 50% 0%;
|
|
31
|
+
visibility: hidden;
|
|
32
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Scale transition
|
|
2
|
+
.scale-transition {
|
|
3
|
+
&.scale-out {
|
|
4
|
+
transform: scale(0);
|
|
5
|
+
transition: transform .2s !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&.scale-in {
|
|
9
|
+
transform: scale(1);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
transition: transform .3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;
|
|
13
|
+
}
|