mithril-materialized 3.5.8 → 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.
@@ -16,28 +16,37 @@
16
16
  }
17
17
  }
18
18
 
19
- #materialbox-overlay {
20
- position:fixed;
19
+ .materialbox-overlay {
20
+ position: fixed;
21
21
  top: 0;
22
+ left: 0;
22
23
  right: 0;
23
24
  bottom: 0;
24
- left: 0;
25
- background-color: #292929;
25
+ background-color: rgba(0, 0, 0, 0.85);
26
26
  z-index: 1000;
27
+ opacity: 0;
28
+ cursor: zoom-out;
27
29
  will-change: opacity;
28
30
  }
29
31
 
32
+ .materialbox-image {
33
+ position: fixed;
34
+ cursor: zoom-out;
35
+ max-width: none;
36
+ z-index: 1001;
37
+ will-change: top, left, width, height;
38
+ }
39
+
30
40
  .materialbox-caption {
31
41
  position: fixed;
32
- display: none;
33
- color: #fff;
34
- line-height: 50px;
35
- bottom: 0;
36
- left: 0;
37
- width: 100%;
42
+ bottom: 20px;
43
+ left: 50%;
44
+ transform: translateX(-50%);
45
+ color: white;
46
+ font-size: 16px;
38
47
  text-align: center;
39
- padding: 0% 15%;
40
- height: 50px;
41
- z-index: 1000;
48
+ opacity: 0;
49
+ z-index: 1002;
50
+ pointer-events: none;
42
51
  -webkit-font-smoothing: antialiased;
43
- }
52
+ }
@@ -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: 1.2rem; /* prevents text jump on Enter keypress */
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
- // &.selected {
154
- // background-color: var(--mm-dropdown-selected, variables.$select-option-selected);
155
- // }
153
+ &.selected {
154
+ background-color: var(--mm-row-hover, variables.$select-option-hover);
155
+ }
156
156
  }
157
157
  }
158
158