mithril-materialized 2.0.0-beta.1 → 2.0.0-beta.11

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.
Files changed (73) hide show
  1. package/README.md +287 -308
  2. package/dist/advanced.css +1888 -0
  3. package/dist/autocomplete.d.ts +3 -3
  4. package/dist/breadcrumb.d.ts +53 -0
  5. package/dist/button.d.ts +66 -21
  6. package/dist/carousel.d.ts +2 -2
  7. package/dist/chip.d.ts +2 -2
  8. package/dist/code-block.d.ts +2 -2
  9. package/dist/collapsible.d.ts +2 -2
  10. package/dist/collection.d.ts +2 -2
  11. package/dist/components.css +2310 -0
  12. package/dist/core.css +3402 -0
  13. package/dist/datatable.d.ts +291 -0
  14. package/dist/datepicker.d.ts +66 -0
  15. package/dist/dropdown.d.ts +2 -2
  16. package/dist/file-upload.d.ts +34 -0
  17. package/dist/floating-action-button.d.ts +2 -2
  18. package/dist/forms.css +2284 -0
  19. package/dist/index.css +1825 -184
  20. package/dist/index.d.ts +14 -1
  21. package/dist/index.esm.js +4752 -2143
  22. package/dist/index.js +4776 -2142
  23. package/dist/index.min.css +8 -0
  24. package/dist/index.umd.js +4776 -2142
  25. package/dist/input-options.d.ts +1 -1
  26. package/dist/input.d.ts +9 -10
  27. package/dist/label.d.ts +4 -2
  28. package/dist/material-box.d.ts +2 -2
  29. package/dist/modal.d.ts +2 -2
  30. package/dist/option.d.ts +4 -4
  31. package/dist/pagination.d.ts +2 -2
  32. package/dist/parallax.d.ts +2 -2
  33. package/dist/pickers.css +487 -0
  34. package/dist/pushpin.d.ts +32 -0
  35. package/dist/radio.d.ts +4 -4
  36. package/dist/search-select.d.ts +2 -2
  37. package/dist/select.d.ts +2 -2
  38. package/dist/sidenav.d.ts +76 -0
  39. package/dist/switch.d.ts +2 -2
  40. package/dist/tabs.d.ts +2 -4
  41. package/dist/theme-switcher.d.ts +49 -0
  42. package/dist/timepicker.d.ts +42 -0
  43. package/dist/toast.d.ts +45 -0
  44. package/dist/tooltip.d.ts +59 -0
  45. package/dist/types.d.ts +226 -0
  46. package/dist/utilities.css +3204 -0
  47. package/dist/wizard.d.ts +58 -0
  48. package/package.json +20 -9
  49. package/sass/components/_breadcrumb.scss +248 -0
  50. package/sass/components/_buttons.scss +3 -3
  51. package/sass/components/_cards.scss +10 -3
  52. package/sass/components/_chips.scss +8 -8
  53. package/sass/components/_collapsible.scss +8 -8
  54. package/sass/components/_datatable.scss +417 -0
  55. package/sass/components/_datepicker.scss +45 -14
  56. package/sass/components/_dropdown.scss +5 -5
  57. package/sass/components/_file-upload.scss +228 -0
  58. package/sass/components/_global.scss +13 -11
  59. package/sass/components/_modal.scss +5 -2
  60. package/sass/components/_navbar.scss +13 -5
  61. package/sass/components/_sidenav.scss +164 -7
  62. package/sass/components/_tabs.scss +5 -4
  63. package/sass/components/_theme-switcher.scss +120 -0
  64. package/sass/components/_theme-variables.scss +205 -0
  65. package/sass/components/_timepicker.scss +179 -87
  66. package/sass/components/_wizard.scss +416 -0
  67. package/sass/components/forms/_input-fields.scss +34 -12
  68. package/sass/components/forms/_radio-buttons.scss +10 -10
  69. package/sass/components/forms/_range.scss +5 -5
  70. package/sass/components/forms/_select.scss +9 -9
  71. package/sass/components/forms/_switches.scss +6 -6
  72. package/sass/materialize.scss +8 -0
  73. package/dist/pickers.d.ts +0 -130
@@ -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
+ }
@@ -35,7 +35,7 @@
35
35
  gap: 8px;
36
36
  margin-top: 8px;
37
37
  padding: 12px;
38
- background-color: #f5f5f5;
38
+ background-color: var(--mm-border-color, #f5f5f5);
39
39
  border-radius: 4px;
40
40
  font-size: 14px;
41
41
 
@@ -48,13 +48,13 @@
48
48
  width: 50px;
49
49
  text-align: center;
50
50
  padding: 4px;
51
- border: 1px solid #ccc;
51
+ border: 1px solid var(--mm-border-color, #ccc);
52
52
  border-radius: 4px;
53
53
  }
54
54
 
55
55
  select {
56
56
  padding: 4px;
57
- border: 1px solid #ccc;
57
+ border: 1px solid var(--mm-border-color, #ccc);
58
58
  border-radius: 4px;
59
59
  margin-left: 4px;
60
60
  }
@@ -63,7 +63,7 @@
63
63
  input[type="time"] {
64
64
  font-size: 16px;
65
65
  padding: 4px 8px;
66
- border: 1px solid #ccc;
66
+ border: 1px solid var(--mm-border-color, #ccc);
67
67
  border-radius: 4px;
68
68
  min-width: 120px;
69
69
  }
@@ -71,100 +71,192 @@
71
71
  .btn-flat {
72
72
  padding: 4px 8px;
73
73
  font-size: 11px;
74
- background-color: #e0e0e0;
74
+ background-color: var(--mm-border-color, #e0e0e0);
75
75
  border-radius: 4px;
76
76
  min-width: auto;
77
77
  }
78
78
  }
79
79
 
80
+ /* Timepicker Containers */
80
81
  .timepicker-modal {
81
- position: fixed;
82
- top: 0;
83
- left: 0;
84
- width: 100%;
85
- height: 100%;
86
- background-color: rgba(0, 0, 0, 0.5);
82
+ max-width: 325px;
83
+ max-height: none;
84
+ }
85
+
86
+ .timepicker-container.modal-content {
87
87
  display: flex;
88
- align-items: center;
89
- justify-content: center;
90
- z-index: 1000;
91
-
92
- .timepicker-content {
93
- background: white;
94
- border-radius: 8px;
95
- padding: 24px;
96
- min-width: 320px;
97
- max-width: 400px;
98
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
99
-
100
- .modal-header {
101
- display: flex;
102
- justify-content: space-between;
103
- align-items: center;
104
- margin-bottom: 20px;
105
-
106
- h5 {
107
- margin: 0;
108
- }
109
-
110
- .btn-flat {
111
- padding: 4px 8px;
112
- font-size: 11px;
113
- min-width: auto;
114
-
115
- i.material-icons {
116
- font-size: 14px;
117
- margin-right: 4px;
118
- }
119
- }
120
- }
88
+ flex-direction: column;
89
+ padding: 0;
90
+ }
121
91
 
122
- .time-display {
123
- display: flex;
124
- align-items: center;
125
- justify-content: center;
126
- gap: 8px;
127
- margin-bottom: 24px;
128
- font-size: 2.5rem;
129
- font-weight: 300;
130
-
131
- input[type="number"] {
132
- width: 80px;
133
- text-align: center;
134
- font-size: 2.5rem;
135
- border: 1px solid #ddd;
136
- border-radius: 4px;
137
- padding: 8px;
138
- }
139
-
140
- .ampm-selector {
141
- display: flex;
142
- flex-direction: column;
143
- gap: 4px;
144
-
145
- button {
146
- min-width: 60px;
147
- padding: 4px 8px;
148
- }
149
- }
150
- }
92
+ .text-primary {
93
+ color: rgba(255, 255, 255, 1);
94
+ }
151
95
 
152
- .timepicker-actions {
153
- display: flex;
154
- justify-content: space-between;
155
- gap: 8px;
156
- margin-top: 24px;
157
96
 
158
- > div {
159
- display: flex;
160
- gap: 8px;
161
- }
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
+ }
162
104
 
163
- .btn-flat {
164
- padding: 0 20px;
165
- }
166
- }
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;
167
205
  }
168
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
+ }
169
254
 
170
- /* Legacy styles kept for applications using old Materialize TimePicker */
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
+ }