mithril-materialized 3.3.3 → 3.3.5
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 +3 -1
- package/dist/advanced.css +48 -46
- package/dist/components.css +200 -95
- package/dist/core.css +29 -27
- package/dist/forms.css +26 -24
- package/dist/index.css +182 -176
- package/dist/index.esm.js +17 -9
- package/dist/index.js +17 -9
- package/dist/index.min.css +2 -2
- package/dist/index.umd.js +17 -9
- package/dist/material-icon.d.ts +2 -0
- package/dist/pickers.css +10 -10
- package/dist/utilities.css +18 -16
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A Mithril.js component library inspired by [materialize-css](https://materializecss.com) design principles, [available on npm](https://www.npmjs.com/package/mithril-materialized). This library provides you with ready-to-use Mithril components that follow Material Design guidelines, with **no external JavaScript dependencies**.
|
|
4
4
|
|
|
5
|
-
## 🚀 v3.3
|
|
5
|
+
## 🚀 v3.3 - Latest Release
|
|
6
6
|
|
|
7
7
|
The current stable release that provides a complete Mithril.js Material Design component library with no external JavaScript dependencies.
|
|
8
8
|
|
|
@@ -99,6 +99,8 @@ Components marked with an * are not included in the original materialize-css lib
|
|
|
99
99
|
|
|
100
100
|
## 📖 Usage Instructions
|
|
101
101
|
|
|
102
|
+
Online [flems](flems.io) examples: [FlatButton](https://flems.io/#0=N4IgtglgJlA2CmIBcBWFA6AnAJgDQgGd4EBjAF3imRHTIJHwDMIF6kBtUAOwEMxEkNABZkwsBiBIB7LhVnUAPLAhcA1gAIATsQC8AHUJkAnqyHx4ZA+qHbG+kCLIAHAkgD0bgK5cnqgObo0mBukGQ2LAC0YDwUmhA8ygBelG5QEARkbipQ8AAegQQEBgB8elwSRKRkEDJsIACMSAAMIAC+uNx8AjR0EtKy8PKC-RnqwOoAYrAxAEKeZGQy6q3qOuoA7tlS6+wA5KHhsFEx8HEJEMlQuwC6ANxlZSNk6jIkyiQaawAUAJ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cDxvF8AIggAoDIkwg5sOOSh3x-H8ABZUnSTJsjydBoSgCCoJguCEIgJDWjOVogA).
|
|
103
|
+
|
|
102
104
|
### Quick Start
|
|
103
105
|
|
|
104
106
|
1. **Install the package**:
|
package/dist/advanced.css
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
-
.carousel {
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
position: relative;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 400px;
|
|
7
|
-
perspective: 500px;
|
|
8
|
-
transform-style: preserve-3d;
|
|
9
|
-
transform-origin: 0% 50%;
|
|
10
|
-
}
|
|
11
2
|
.carousel.carousel-slider {
|
|
12
3
|
top: 0;
|
|
13
4
|
left: 0;
|
|
14
5
|
}
|
|
6
|
+
.carousel.carousel-slider .carousel-fixed-item.with-indicators {
|
|
7
|
+
bottom: 68px;
|
|
8
|
+
}
|
|
15
9
|
.carousel.carousel-slider .carousel-fixed-item {
|
|
16
10
|
position: absolute;
|
|
17
11
|
left: 0;
|
|
@@ -19,9 +13,6 @@
|
|
|
19
13
|
bottom: 20px;
|
|
20
14
|
z-index: 1;
|
|
21
15
|
}
|
|
22
|
-
.carousel.carousel-slider .carousel-fixed-item.with-indicators {
|
|
23
|
-
bottom: 68px;
|
|
24
|
-
}
|
|
25
16
|
.carousel.carousel-slider .carousel-item {
|
|
26
17
|
width: 100%;
|
|
27
18
|
height: 100%;
|
|
@@ -38,6 +29,15 @@
|
|
|
38
29
|
.carousel.carousel-slider .carousel-item p {
|
|
39
30
|
font-size: 15px;
|
|
40
31
|
}
|
|
32
|
+
.carousel {
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
position: relative;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 400px;
|
|
37
|
+
perspective: 500px;
|
|
38
|
+
transform-style: preserve-3d;
|
|
39
|
+
transform-origin: 0% 50%;
|
|
40
|
+
}
|
|
41
41
|
.carousel .carousel-item {
|
|
42
42
|
visibility: hidden;
|
|
43
43
|
width: 200px;
|
|
@@ -57,6 +57,9 @@
|
|
|
57
57
|
bottom: 0;
|
|
58
58
|
margin: 0;
|
|
59
59
|
}
|
|
60
|
+
.carousel .indicators .indicator-item.active {
|
|
61
|
+
background-color: #fff;
|
|
62
|
+
}
|
|
60
63
|
.carousel .indicators .indicator-item {
|
|
61
64
|
display: inline-block;
|
|
62
65
|
position: relative;
|
|
@@ -68,9 +71,6 @@
|
|
|
68
71
|
transition: background-color 0.3s;
|
|
69
72
|
border-radius: 50%;
|
|
70
73
|
}
|
|
71
|
-
.carousel .indicators .indicator-item.active {
|
|
72
|
-
background-color: #fff;
|
|
73
|
-
}
|
|
74
74
|
.carousel.scrolling .carousel-item .materialboxed,
|
|
75
75
|
.carousel .carousel-item:not(.active) .materialboxed {
|
|
76
76
|
pointer-events: none;
|
|
@@ -464,7 +464,6 @@ td, th {
|
|
|
464
464
|
border-spacing: 0;
|
|
465
465
|
display: block;
|
|
466
466
|
position: relative;
|
|
467
|
-
/* sort out borders */
|
|
468
467
|
}
|
|
469
468
|
table.responsive-table td:empty:before {
|
|
470
469
|
content: " ";
|
|
@@ -512,6 +511,9 @@ td, th {
|
|
|
512
511
|
border-bottom: none;
|
|
513
512
|
padding: 0 10px;
|
|
514
513
|
}
|
|
514
|
+
table.responsive-table {
|
|
515
|
+
/* sort out borders */
|
|
516
|
+
}
|
|
515
517
|
table.responsive-table thead {
|
|
516
518
|
border: 0;
|
|
517
519
|
border-right: 1px solid rgba(0, 0, 0, 0.12);
|
|
@@ -901,6 +903,9 @@ td, th {
|
|
|
901
903
|
.sidenav li.active {
|
|
902
904
|
background-color: rgba(0, 0, 0, 0.05);
|
|
903
905
|
}
|
|
906
|
+
.sidenav li > a:not(.btn):not(.btn-large):not(.btn-flat):not(.btn-floating):hover {
|
|
907
|
+
background-color: var(--mm-border-color, rgba(0, 0, 0, 0.05));
|
|
908
|
+
}
|
|
904
909
|
.sidenav li > a:not(.btn):not(.btn-large):not(.btn-flat):not(.btn-floating) {
|
|
905
910
|
color: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
|
|
906
911
|
display: block;
|
|
@@ -910,9 +915,6 @@ td, th {
|
|
|
910
915
|
line-height: 48px;
|
|
911
916
|
padding: 0 32px;
|
|
912
917
|
}
|
|
913
|
-
.sidenav li > a:not(.btn):not(.btn-large):not(.btn-flat):not(.btn-floating):hover {
|
|
914
|
-
background-color: var(--mm-border-color, rgba(0, 0, 0, 0.05));
|
|
915
|
-
}
|
|
916
918
|
.sidenav li > a:not(.btn):not(.btn-large):not(.btn-flat):not(.btn-floating) > i, .sidenav li > a:not(.btn):not(.btn-large):not(.btn-flat):not(.btn-floating) > [class^=mdi-], .sidenav li > a:not(.btn):not(.btn-large):not(.btn-flat):not(.btn-floating) li > a > [class*=mdi-], .sidenav li > a:not(.btn):not(.btn-large):not(.btn-flat):not(.btn-floating) > i.material-icons {
|
|
917
919
|
float: left;
|
|
918
920
|
height: 48px;
|
|
@@ -927,6 +929,9 @@ td, th {
|
|
|
927
929
|
.sidenav .divider {
|
|
928
930
|
margin: 8px 0 0 0;
|
|
929
931
|
}
|
|
932
|
+
.sidenav .subheader:hover {
|
|
933
|
+
background-color: transparent;
|
|
934
|
+
}
|
|
930
935
|
.sidenav .subheader {
|
|
931
936
|
cursor: initial;
|
|
932
937
|
pointer-events: none;
|
|
@@ -939,21 +944,18 @@ td, th {
|
|
|
939
944
|
display: flex;
|
|
940
945
|
align-items: center;
|
|
941
946
|
}
|
|
942
|
-
.sidenav .subheader:hover {
|
|
943
|
-
background-color: transparent;
|
|
944
|
-
}
|
|
945
947
|
.sidenav .user-view {
|
|
946
948
|
position: relative;
|
|
947
949
|
padding: 32px 32px 0;
|
|
948
950
|
margin-bottom: 8px;
|
|
949
951
|
}
|
|
952
|
+
.sidenav .user-view > a:hover {
|
|
953
|
+
background-color: transparent;
|
|
954
|
+
}
|
|
950
955
|
.sidenav .user-view > a {
|
|
951
956
|
height: auto;
|
|
952
957
|
padding: 0;
|
|
953
958
|
}
|
|
954
|
-
.sidenav .user-view > a:hover {
|
|
955
|
-
background-color: transparent;
|
|
956
|
-
}
|
|
957
959
|
.sidenav .user-view .background {
|
|
958
960
|
overflow: hidden;
|
|
959
961
|
position: absolute;
|
|
@@ -984,6 +986,9 @@ td, th {
|
|
|
984
986
|
font-weight: 400;
|
|
985
987
|
}
|
|
986
988
|
|
|
989
|
+
.drag-target.right-aligned {
|
|
990
|
+
right: 0;
|
|
991
|
+
}
|
|
987
992
|
.drag-target {
|
|
988
993
|
height: 100%;
|
|
989
994
|
width: 10px;
|
|
@@ -992,19 +997,16 @@ td, th {
|
|
|
992
997
|
left: 0;
|
|
993
998
|
z-index: 998;
|
|
994
999
|
}
|
|
995
|
-
|
|
1000
|
+
|
|
1001
|
+
.sidenav.sidenav-fixed.right-aligned {
|
|
996
1002
|
right: 0;
|
|
1003
|
+
left: auto;
|
|
997
1004
|
}
|
|
998
|
-
|
|
999
1005
|
.sidenav.sidenav-fixed {
|
|
1000
1006
|
left: 0;
|
|
1001
1007
|
transform: translateX(0);
|
|
1002
1008
|
position: fixed;
|
|
1003
1009
|
}
|
|
1004
|
-
.sidenav.sidenav-fixed.right-aligned {
|
|
1005
|
-
right: 0;
|
|
1006
|
-
left: auto;
|
|
1007
|
-
}
|
|
1008
1010
|
|
|
1009
1011
|
@media only screen and (max-width : 992px) {
|
|
1010
1012
|
.sidenav.sidenav-fixed {
|
|
@@ -1052,13 +1054,6 @@ td, th {
|
|
|
1052
1054
|
pointer-events: auto;
|
|
1053
1055
|
}
|
|
1054
1056
|
|
|
1055
|
-
nav {
|
|
1056
|
-
color: var(--mm-nav-text, #fff);
|
|
1057
|
-
background-color: var(--mm-nav-background, #ee6e73);
|
|
1058
|
-
width: 100%;
|
|
1059
|
-
height: 56px;
|
|
1060
|
-
line-height: 56px;
|
|
1061
|
-
}
|
|
1062
1057
|
nav.nav-extended {
|
|
1063
1058
|
height: auto;
|
|
1064
1059
|
}
|
|
@@ -1070,6 +1065,13 @@ nav.nav-extended .nav-content {
|
|
|
1070
1065
|
position: relative;
|
|
1071
1066
|
line-height: normal;
|
|
1072
1067
|
}
|
|
1068
|
+
nav {
|
|
1069
|
+
color: var(--mm-nav-text, #fff);
|
|
1070
|
+
background-color: var(--mm-nav-background, #ee6e73);
|
|
1071
|
+
width: 100%;
|
|
1072
|
+
height: 56px;
|
|
1073
|
+
line-height: 56px;
|
|
1074
|
+
}
|
|
1073
1075
|
nav a {
|
|
1074
1076
|
color: var(--mm-nav-text, #fff);
|
|
1075
1077
|
}
|
|
@@ -1816,11 +1818,6 @@ nav .input-field label.active i {
|
|
|
1816
1818
|
display: table-cell;
|
|
1817
1819
|
}
|
|
1818
1820
|
|
|
1819
|
-
.tap-target-wave {
|
|
1820
|
-
position: absolute;
|
|
1821
|
-
border-radius: 50%;
|
|
1822
|
-
z-index: 10001;
|
|
1823
|
-
}
|
|
1824
1821
|
.tap-target-wave::before, .tap-target-wave::after {
|
|
1825
1822
|
content: "";
|
|
1826
1823
|
display: block;
|
|
@@ -1839,7 +1836,15 @@ nav .input-field label.active i {
|
|
|
1839
1836
|
transition: opacity 0.3s, transform 0.3s, visibility 0s;
|
|
1840
1837
|
z-index: -1;
|
|
1841
1838
|
}
|
|
1839
|
+
.tap-target-wave {
|
|
1840
|
+
position: absolute;
|
|
1841
|
+
border-radius: 50%;
|
|
1842
|
+
z-index: 10001;
|
|
1843
|
+
}
|
|
1842
1844
|
|
|
1845
|
+
.tap-target-origin:not(.btn), .tap-target-origin:not(.btn):hover {
|
|
1846
|
+
background: none;
|
|
1847
|
+
}
|
|
1843
1848
|
.tap-target-origin {
|
|
1844
1849
|
top: 50%;
|
|
1845
1850
|
left: 50%;
|
|
@@ -1847,9 +1852,6 @@ nav .input-field label.active i {
|
|
|
1847
1852
|
z-index: 10002;
|
|
1848
1853
|
position: absolute !important;
|
|
1849
1854
|
}
|
|
1850
|
-
.tap-target-origin:not(.btn), .tap-target-origin:not(.btn):hover {
|
|
1851
|
-
background: none;
|
|
1852
|
-
}
|
|
1853
1855
|
|
|
1854
1856
|
@media only screen and (max-width: 600px) {
|
|
1855
1857
|
.tap-target, .tap-target-wrapper {
|