mithril-materialized 3.3.8 → 3.4.1
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 +1 -1
- package/dist/button.d.ts +1 -0
- package/dist/components.css +22 -0
- package/dist/core.css +0 -3
- package/dist/forms.css +8 -3
- package/dist/index.css +23 -3
- package/dist/index.esm.js +342 -101
- package/dist/index.js +342 -100
- package/dist/index.min.css +2 -2
- package/dist/index.umd.js +342 -100
- package/dist/utilities.css +1 -0
- package/dist/waves.d.ts +16 -0
- package/package.json +1 -1
- package/sass/components/_buttons.scss +21 -0
- package/sass/components/_chips.scss +1 -0
- package/sass/components/_theme-switcher.scss +10 -0
- package/sass/components/forms/_select.scss +3 -3
package/dist/utilities.css
CHANGED
package/dist/waves.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Waves Effect for Mithril Materialized
|
|
3
|
+
* Based on Waves v0.6.4 by Alfiana E. Sibuea
|
|
4
|
+
* Adapted for TypeScript and Mithril integration
|
|
5
|
+
*/
|
|
6
|
+
export declare class WavesEffect {
|
|
7
|
+
private static duration;
|
|
8
|
+
private static offset;
|
|
9
|
+
private static createRipple;
|
|
10
|
+
private static removeRipples;
|
|
11
|
+
static onMouseDown: (e: MouseEvent) => void;
|
|
12
|
+
static onMouseUp: (e: MouseEvent) => void;
|
|
13
|
+
static onMouseLeave: (e: MouseEvent) => void;
|
|
14
|
+
static onTouchStart: (e: TouchEvent) => void;
|
|
15
|
+
static onTouchEnd: (e: TouchEvent) => void;
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -325,3 +325,24 @@ button.btn-floating {
|
|
|
325
325
|
.btn-block {
|
|
326
326
|
display: block;
|
|
327
327
|
}
|
|
328
|
+
|
|
329
|
+
// Icon button - compact flat button for icons only
|
|
330
|
+
.btn-flat.btn-icon {
|
|
331
|
+
min-width: auto;
|
|
332
|
+
padding: 0 8px;
|
|
333
|
+
width: auto;
|
|
334
|
+
line-height: variables.$button-height;
|
|
335
|
+
background-color: transparent !important;
|
|
336
|
+
|
|
337
|
+
i {
|
|
338
|
+
margin: 0;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// Ensure background stays transparent in all states
|
|
342
|
+
&:hover,
|
|
343
|
+
&:focus,
|
|
344
|
+
&:active,
|
|
345
|
+
&.active {
|
|
346
|
+
background-color: transparent !important;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
@@ -53,6 +53,12 @@
|
|
|
53
53
|
.material-icons {
|
|
54
54
|
font-size: 1rem;
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
svg {
|
|
58
|
+
width: 1rem !important;
|
|
59
|
+
height: 1rem !important;
|
|
60
|
+
flex-shrink: 0;
|
|
61
|
+
}
|
|
56
62
|
|
|
57
63
|
span {
|
|
58
64
|
font-size: 0.75rem;
|
|
@@ -84,6 +90,10 @@
|
|
|
84
90
|
.material-icons {
|
|
85
91
|
font-size: 1.25rem;
|
|
86
92
|
}
|
|
93
|
+
|
|
94
|
+
svg {
|
|
95
|
+
flex-shrink: 0;
|
|
96
|
+
}
|
|
87
97
|
}
|
|
88
98
|
|
|
89
99
|
// Navbar theme toggle specific styles
|
|
@@ -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
|
-
|
|
155
|
-
}
|
|
153
|
+
// &.selected {
|
|
154
|
+
// background-color: var(--mm-dropdown-selected, variables.$select-option-selected);
|
|
155
|
+
// }
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
|