mithril-materialized 3.5.9 → 3.5.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/dist/collapsible.d.ts +2 -0
- package/dist/components.css +82 -45
- package/dist/core.css +11 -4
- package/dist/forms.css +11 -4
- package/dist/index.css +103 -49
- package/dist/index.esm.js +75 -80
- package/dist/index.js +75 -80
- package/dist/index.min.css +2 -2
- package/dist/index.umd.js +75 -80
- package/dist/material-box.d.ts +1 -1
- package/dist/pickers.css +10 -0
- package/dist/timepicker.d.ts +0 -4
- package/package.json +2 -3
- package/sass/components/_collapsible.scss +70 -17
- package/sass/components/_datatable.scss +7 -19
- package/sass/components/_materialbox.scss +23 -14
- package/sass/components/_theme-variables.scss +7 -0
- package/sass/components/_timepicker.scss +10 -0
- package/sass/components/forms/_input-fields.scss +10 -5
- package/sass/components/forms/_select.scss +3 -3
|
@@ -57,6 +57,9 @@
|
|
|
57
57
|
--mm-dropdown-hover: #eee;
|
|
58
58
|
--mm-dropdown-focus: #ddd;
|
|
59
59
|
--mm-dropdown-selected: #e3f2fd;
|
|
60
|
+
|
|
61
|
+
// Collection/Table hover (light theme)
|
|
62
|
+
--mm-row-hover: rgba(0, 0, 0, 0.04);
|
|
60
63
|
--mm-shadow-umbra: rgba(0, 0, 0, 0.2);
|
|
61
64
|
--mm-shadow-penumbra: rgba(0, 0, 0, 0.14);
|
|
62
65
|
--mm-shadow-ambient: rgba(0, 0, 0, 0.12);
|
|
@@ -144,6 +147,10 @@ body {
|
|
|
144
147
|
--mm-dropdown-focus: #555;
|
|
145
148
|
--mm-dropdown-selected: #1e3a8a;
|
|
146
149
|
|
|
150
|
+
// Collection/Table hover (dark theme) - more subtle
|
|
151
|
+
--mm-row-hover: rgba(255, 255, 255, 0.04);
|
|
152
|
+
--mm-row-stripe: rgba(255, 255, 255, 0.02);
|
|
153
|
+
|
|
147
154
|
// Switch colors (dark theme)
|
|
148
155
|
--mm-switch-checked-track: rgba(128, 203, 196, 0.3);
|
|
149
156
|
--mm-switch-checked-thumb: #80cbc4;
|
|
@@ -100,6 +100,8 @@
|
|
|
100
100
|
background-color: variables.$secondary-color;
|
|
101
101
|
padding: 10px;
|
|
102
102
|
font-weight: 300;
|
|
103
|
+
min-width: 200px;
|
|
104
|
+
position: relative;
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
.timepicker-text-container {
|
|
@@ -110,6 +112,8 @@
|
|
|
110
112
|
font-weight: 400;
|
|
111
113
|
position: relative;
|
|
112
114
|
user-select: none;
|
|
115
|
+
min-width: 180px;
|
|
116
|
+
width: 100%;
|
|
113
117
|
}
|
|
114
118
|
|
|
115
119
|
.timepicker-span-hours,
|
|
@@ -120,10 +124,16 @@
|
|
|
120
124
|
|
|
121
125
|
.timepicker-span-hours {
|
|
122
126
|
margin-right: 3px;
|
|
127
|
+
display: inline-block;
|
|
128
|
+
min-width: 2ch;
|
|
129
|
+
text-align: right;
|
|
123
130
|
}
|
|
124
131
|
|
|
125
132
|
.timepicker-span-minutes {
|
|
126
133
|
margin-left: 3px;
|
|
134
|
+
display: inline-block;
|
|
135
|
+
min-width: 2ch;
|
|
136
|
+
text-align: left;
|
|
127
137
|
}
|
|
128
138
|
|
|
129
139
|
.timepicker-display-am-pm {
|
|
@@ -131,7 +131,7 @@ textarea.materialize-textarea {
|
|
|
131
131
|
&:-ms-input-placeholder {
|
|
132
132
|
color: var(--mm-text-hint, variables.$placeholder-text-color) !important;
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
|
|
135
135
|
&::-ms-input-placeholder {
|
|
136
136
|
color: var(--mm-text-hint, variables.$placeholder-text-color) !important;
|
|
137
137
|
}
|
|
@@ -340,12 +340,15 @@ textarea {
|
|
|
340
340
|
background-color: transparent;
|
|
341
341
|
|
|
342
342
|
&.materialize-textarea {
|
|
343
|
+
// Override base styles to match TextInput alignment
|
|
344
|
+
padding-top: 10px;
|
|
345
|
+
padding-bottom: 0;
|
|
346
|
+
height: 35px;
|
|
347
|
+
margin-bottom: 2.5px;
|
|
343
348
|
line-height: 1.5;
|
|
344
349
|
overflow-y: hidden; /* prevents scroll bar flash */
|
|
345
|
-
padding: .8rem 0 .8rem 0; /* prevents text jump on Enter keypress */
|
|
346
350
|
resize: none;
|
|
347
|
-
min-height: variables.$input-height;
|
|
348
|
-
box-sizing: border-box;
|
|
351
|
+
min-height: calc(variables.$input-height - 10px);
|
|
349
352
|
}
|
|
350
353
|
}
|
|
351
354
|
|
|
@@ -355,7 +358,9 @@ textarea {
|
|
|
355
358
|
white-space: pre-wrap;
|
|
356
359
|
word-wrap: break-word;
|
|
357
360
|
overflow-wrap: break-word; /* future version of deprecated 'word-wrap' */
|
|
358
|
-
padding-top:
|
|
361
|
+
padding-top: 13px; /* match textarea padding-top */
|
|
362
|
+
padding-bottom: 0; /* match textarea padding-bottom */
|
|
363
|
+
line-height: 1.5; /* match textarea line-height */
|
|
359
364
|
|
|
360
365
|
// Reduces repaints
|
|
361
366
|
position: absolute;
|
|
@@ -150,9 +150,9 @@ body.keyboard-focused {
|
|
|
150
150
|
background-color: var(--mm-dropdown-hover, variables.$select-option-hover);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
&.selected {
|
|
154
|
+
background-color: var(--mm-row-hover, variables.$select-option-hover);
|
|
155
|
+
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
|