materialize-sass 0.97.1 → 0.97.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -2
- data/app/assets/javascripts/materialize.js +461 -221
- data/app/assets/javascripts/materialize.min.js +9 -0
- data/app/assets/javascripts/materialize/buttons.js +39 -8
- data/app/assets/javascripts/materialize/cards.js +2 -0
- data/app/assets/javascripts/materialize/dropdown.js +65 -48
- data/app/assets/javascripts/materialize/forms.js +228 -130
- data/app/assets/javascripts/materialize/global.js +9 -1
- data/app/assets/javascripts/materialize/materialbox.js +22 -2
- data/app/assets/javascripts/materialize/slider.js +24 -4
- data/app/assets/javascripts/materialize/tabs.js +20 -1
- data/app/assets/javascripts/materialize/tooltip.js +48 -24
- data/app/assets/javascripts/materialize/velocity.min.js +4 -3
- data/app/assets/stylesheets/materialize.scss +2 -2
- data/app/assets/stylesheets/materialize/components/_buttons.scss +23 -0
- data/app/assets/stylesheets/materialize/components/_cards.scss +5 -24
- data/app/assets/stylesheets/materialize/components/_chips.scss +1 -1
- data/app/assets/stylesheets/materialize/components/_dropdown.scss +20 -3
- data/app/assets/stylesheets/materialize/components/_form.scss +57 -26
- data/app/assets/stylesheets/materialize/components/_global.scss +30 -6
- data/app/assets/stylesheets/materialize/components/_grid.scss +23 -18
- data/app/assets/stylesheets/materialize/components/_roboto.scss +4 -4
- data/app/assets/stylesheets/materialize/components/_tabs.scss +24 -2
- data/app/assets/stylesheets/materialize/components/_toast.scss +8 -4
- data/app/assets/stylesheets/materialize/components/_tooltip.scss +2 -3
- data/app/assets/stylesheets/materialize/components/_variables.scss +13 -8
- data/app/assets/stylesheets/materialize/components/_waves.scss +9 -0
- data/lib/materialize-sass/version.rb +1 -1
- metadata +3 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
@font-face {
|
2
|
-
font-family: "Roboto";
|
2
|
+
font-family: "Roboto-Thin";
|
3
3
|
src: local(Roboto Thin),
|
4
4
|
font-url("#{$roboto-font-path}Roboto-Thin.woff2") format("woff2"),
|
5
5
|
font-url("#{$roboto-font-path}Roboto-Thin.woff") format("woff"),
|
@@ -7,7 +7,7 @@
|
|
7
7
|
font-weight: 200;
|
8
8
|
}
|
9
9
|
@font-face {
|
10
|
-
font-family: "Roboto";
|
10
|
+
font-family: "Roboto-Light";
|
11
11
|
src: local(Roboto Light),
|
12
12
|
font-url("#{$roboto-font-path}Roboto-Light.woff2") format("woff2"),
|
13
13
|
font-url("#{$roboto-font-path}Roboto-Light.woff") format("woff"),
|
@@ -26,7 +26,7 @@
|
|
26
26
|
}
|
27
27
|
|
28
28
|
@font-face {
|
29
|
-
font-family: "Roboto";
|
29
|
+
font-family: "Roboto-Medium";
|
30
30
|
src: font-url("#{$roboto-font-path}Roboto-Medium.woff2") format("woff2"),
|
31
31
|
font-url("#{$roboto-font-path}Roboto-Medium.woff") format("woff"),
|
32
32
|
font-url("#{$roboto-font-path}Roboto-Medium.ttf") format("truetype");
|
@@ -34,7 +34,7 @@
|
|
34
34
|
}
|
35
35
|
|
36
36
|
@font-face {
|
37
|
-
font-family: "Roboto";
|
37
|
+
font-family: "Roboto-Bold";
|
38
38
|
src: font-url("#{$roboto-font-path}Roboto-Bold.woff2") format("woff2"),
|
39
39
|
font-url("#{$roboto-font-path}Roboto-Bold.woff") format("woff"),
|
40
40
|
font-url("#{$roboto-font-path}Roboto-Bold.ttf") format("truetype");
|
@@ -17,17 +17,22 @@
|
|
17
17
|
text-align: center;
|
18
18
|
line-height: 48px;
|
19
19
|
height: 48px;
|
20
|
-
padding: 0
|
20
|
+
padding: 0;
|
21
21
|
margin: 0;
|
22
22
|
text-transform: uppercase;
|
23
|
+
text-overflow: ellipsis;
|
24
|
+
overflow: hidden;
|
23
25
|
letter-spacing: .8px;
|
24
26
|
width: 15%;
|
27
|
+
min-width: 80px;
|
25
28
|
|
26
29
|
a {
|
27
30
|
color: $tabs-text-color;
|
28
31
|
display: block;
|
29
32
|
width: 100%;
|
30
33
|
height: 100%;
|
34
|
+
text-overflow: ellipsis;
|
35
|
+
overflow: hidden;
|
31
36
|
@include transition( color .28s ease);
|
32
37
|
&:hover {
|
33
38
|
color: lighten($tabs-text-color, 20%);
|
@@ -48,5 +53,22 @@
|
|
48
53
|
}
|
49
54
|
}
|
50
55
|
|
51
|
-
.
|
56
|
+
.hide-tab-scrollbar {
|
57
|
+
position: relative;
|
58
|
+
height: 48px;
|
59
|
+
overflow: hidden;
|
60
|
+
|
61
|
+
.tabs {
|
62
|
+
overflow-x: scroll;
|
63
|
+
overflow-y: hidden;
|
64
|
+
}
|
65
|
+
}
|
52
66
|
|
67
|
+
// Hacky way to find scrollbar width or height.
|
68
|
+
.scrollbar-measure {
|
69
|
+
width: 100px;
|
70
|
+
height: 100px;
|
71
|
+
overflow: scroll;
|
72
|
+
position: absolute;
|
73
|
+
top: -9999px;
|
74
|
+
}
|
@@ -10,12 +10,14 @@
|
|
10
10
|
@media #{$medium-only} {
|
11
11
|
min-width: 30%;
|
12
12
|
left: 5%;
|
13
|
+
right: 5%;
|
13
14
|
bottom: 7%;
|
14
15
|
}
|
15
16
|
@media #{$large-and-up} {
|
16
17
|
min-width: 8%;
|
17
18
|
top: 10%;
|
18
19
|
right: 7%;
|
20
|
+
left: 7%;
|
19
21
|
}
|
20
22
|
}
|
21
23
|
|
@@ -28,10 +30,12 @@
|
|
28
30
|
margin-top: 10px;
|
29
31
|
position: relative;
|
30
32
|
max-width:100%;
|
31
|
-
height:
|
32
|
-
|
33
|
+
height: auto;
|
34
|
+
min-height: $toast-height;
|
35
|
+
line-height: 1.5em;
|
36
|
+
word-break: break-all;
|
33
37
|
background-color: $toast-color;
|
34
|
-
padding:
|
38
|
+
padding: 10px 25px;
|
35
39
|
font-size: 1.1rem;
|
36
40
|
font-weight: 300;
|
37
41
|
color: $toast-text-color;
|
@@ -60,4 +64,4 @@
|
|
60
64
|
float: right;
|
61
65
|
}
|
62
66
|
|
63
|
-
}
|
67
|
+
}
|
@@ -6,16 +6,15 @@
|
|
6
6
|
border-radius: 2px;
|
7
7
|
color: #fff;
|
8
8
|
min-height: 36px;
|
9
|
-
line-height:
|
10
|
-
// max-width: 350px;
|
9
|
+
line-height: 120%;
|
11
10
|
opacity: 0;
|
12
11
|
display: none;
|
13
12
|
position: absolute;
|
14
13
|
text-align: center;
|
14
|
+
max-width: calc(100% - 4px);
|
15
15
|
overflow: hidden;
|
16
16
|
left:0;
|
17
17
|
top:0;
|
18
|
-
|
19
18
|
will-change: top, left;
|
20
19
|
}
|
21
20
|
|
@@ -34,10 +34,22 @@ $collapsible-height: 3rem !default;
|
|
34
34
|
$collapsible-header-color: #fff !default;
|
35
35
|
$collapsible-border-color: #ddd !default;
|
36
36
|
|
37
|
+
/*** Chips ***/
|
38
|
+
$chip-bg-color: #e4e4e4 !default;
|
39
|
+
|
40
|
+
/*** Date Picker ***/
|
41
|
+
$datepicker-weekday-bg: darken($secondary_color, 7%) !default;
|
42
|
+
$datepicker-date-bg: $secondary_color !default;
|
43
|
+
$datepicker-year: rgba(255, 255, 255, .4) !default;
|
44
|
+
$datepicker-focus: rgba(0,0,0, .05) !default;
|
45
|
+
$datepicker-selected: $secondary-color !default;
|
46
|
+
$datepicker-selected-outfocus: desaturate(lighten($secondary-color, 35%), 15%) !default;
|
47
|
+
|
37
48
|
/*** Dropdown ***/
|
38
49
|
$dropdown-bg-color: #fff !default;
|
39
50
|
$dropdown-hover-bg-color: #eee !default;
|
40
51
|
$dropdown-color: $secondary-color !default;
|
52
|
+
$dropdown-item-height: 50px !default;
|
41
53
|
|
42
54
|
/*** Fonts ***/
|
43
55
|
$roboto-font-path: "roboto/" !default;
|
@@ -64,14 +76,6 @@ $switch-checked-lever-bg: desaturate(lighten($secondary-color, 25%), 25%) !defau
|
|
64
76
|
$switch-unchecked-bg: #F1F1F1 !default;
|
65
77
|
$switch-unchecked-lever-bg: #818181 !default;
|
66
78
|
|
67
|
-
// Date Picker
|
68
|
-
$datepicker-weekday-bg: darken($secondary_color, 7%) !default;
|
69
|
-
$datepicker-date-bg: $secondary_color !default;
|
70
|
-
$datepicker-year: rgba(255, 255, 255, .4) !default;
|
71
|
-
$datepicker-focus: rgba(0,0,0, .05) !default;
|
72
|
-
$datepicker-selected: $secondary-color !default;
|
73
|
-
$datepicker-selected-outfocus: desaturate(lighten($secondary-color, 35%), 15%) !default;
|
74
|
-
|
75
79
|
|
76
80
|
/*** Global ***/
|
77
81
|
// Media Query Ranges
|
@@ -150,6 +154,7 @@ $collection-bg-color: #fff !default;
|
|
150
154
|
$collection-active-bg-color: $secondary-color !default;
|
151
155
|
$collection-active-color: lighten($secondary-color, 55%) !default;
|
152
156
|
$collection-hover-bg-color: #ddd !default;
|
157
|
+
$collection-link-color: $secondary-color !default;
|
153
158
|
|
154
159
|
/* Progress Bar */
|
155
160
|
$progress-bar-color: $secondary-color !default;
|
@@ -84,6 +84,15 @@
|
|
84
84
|
background-color: rgba(0, 150, 136, 0.70);
|
85
85
|
}
|
86
86
|
|
87
|
+
// Style input button bug.
|
88
|
+
input[type="button"], input[type="reset"], input[type="submit"] {
|
89
|
+
border: 0;
|
90
|
+
font-style: normal;
|
91
|
+
font-size: inherit;
|
92
|
+
text-transform: inherit;
|
93
|
+
background: none;
|
94
|
+
}
|
95
|
+
|
87
96
|
}
|
88
97
|
|
89
98
|
.waves-notransition {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: materialize-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.97.
|
4
|
+
version: 0.97.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mkhairi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- app/assets/fonts/roboto/Roboto-Thin.woff2
|
88
88
|
- app/assets/javascripts/materialize-sprockets.js
|
89
89
|
- app/assets/javascripts/materialize.js
|
90
|
+
- app/assets/javascripts/materialize.min.js
|
90
91
|
- app/assets/javascripts/materialize/animation.js
|
91
92
|
- app/assets/javascripts/materialize/buttons.js
|
92
93
|
- app/assets/javascripts/materialize/cards.js
|