mithril-materialized 3.17.2 → 3.17.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mithril-materialized",
3
- "version": "3.17.2",
3
+ "version": "3.17.4",
4
4
  "description": "A materialize library for mithril.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -160,6 +160,14 @@ textarea.materialize-textarea {
160
160
  flex-direction: column;
161
161
  justify-content: center;
162
162
  height: variables.$input-height;
163
+ opacity: 0;
164
+ pointer-events: none;
165
+ transition: opacity 0.2s ease;
166
+ }
167
+
168
+ &:hover .number-input-controls {
169
+ opacity: 1;
170
+ pointer-events: auto;
163
171
  }
164
172
 
165
173
  .number-input-control {
@@ -8,13 +8,19 @@
8
8
  .switch * {
9
9
  -webkit-tap-highlight-color: transparent;
10
10
  user-select: none;
11
- margin: 13px 0 17px 0;
11
+ margin: 12px 0 17px 0;
12
12
  }
13
13
 
14
14
  .switch label {
15
15
  cursor: pointer;
16
16
  }
17
17
 
18
+ .switch label .switch-value {
19
+ font-size: variables.$input-font-size;
20
+ position: relative;
21
+ top: -2px;
22
+ }
23
+
18
24
  .switch label input[type=checkbox] {
19
25
  opacity: 0;
20
26
  width: 0;
@@ -39,6 +45,7 @@
39
45
  position: relative;
40
46
  width: 36px;
41
47
  height: 14px;
48
+ top: -3px;
42
49
  background-color: var(--mm-switch-unchecked-track, variables.$switch-unchecked-lever-bg);
43
50
  border-radius: variables.$switch-radius;
44
51
  margin-right: 10px;