materialize-sass 0.97.6 → 0.97.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/app/assets/javascripts/materialize-sprockets.js +1 -4
  4. data/app/assets/javascripts/materialize.js +887 -338
  5. data/app/assets/javascripts/materialize.min.js +5 -5
  6. data/app/assets/javascripts/materialize/animation.js +0 -0
  7. data/app/assets/javascripts/materialize/buttons.js +0 -0
  8. data/app/assets/javascripts/materialize/cards.js +0 -3
  9. data/app/assets/javascripts/materialize/carousel.js +150 -46
  10. data/app/assets/javascripts/materialize/character_counter.js +0 -0
  11. data/app/assets/javascripts/materialize/chips.js +262 -4
  12. data/app/assets/javascripts/materialize/collapsible.js +0 -0
  13. data/app/assets/javascripts/materialize/date_picker/picker.date.js +0 -0
  14. data/app/assets/javascripts/materialize/date_picker/picker.js +0 -0
  15. data/app/assets/javascripts/materialize/dropdown.js +206 -178
  16. data/app/assets/javascripts/materialize/extras/nouislider.js +0 -0
  17. data/app/assets/javascripts/materialize/extras/nouislider.min.js +0 -0
  18. data/app/assets/javascripts/materialize/forms.js +94 -9
  19. data/app/assets/javascripts/materialize/global.js +0 -0
  20. data/app/assets/javascripts/materialize/hammer.min.js +0 -0
  21. data/app/assets/javascripts/materialize/init.js +21 -3
  22. data/app/assets/javascripts/materialize/initial.js +0 -0
  23. data/app/assets/javascripts/materialize/jquery.easing.1.3.js +0 -0
  24. data/app/assets/javascripts/materialize/jquery.timeago.min.js +0 -0
  25. data/app/assets/javascripts/materialize/leanModal.js +11 -10
  26. data/app/assets/javascripts/materialize/materialbox.js +0 -0
  27. data/app/assets/javascripts/materialize/parallax.js +0 -0
  28. data/app/assets/javascripts/materialize/prism.js +0 -0
  29. data/app/assets/javascripts/materialize/pushpin.js +15 -1
  30. data/app/assets/javascripts/materialize/scrollFire.js +2 -2
  31. data/app/assets/javascripts/materialize/scrollspy.js +7 -8
  32. data/app/assets/javascripts/materialize/sideNav.js +15 -7
  33. data/app/assets/javascripts/materialize/slider.js +1 -1
  34. data/app/assets/javascripts/materialize/tabs.js +15 -2
  35. data/app/assets/javascripts/materialize/toasts.js +0 -0
  36. data/app/assets/javascripts/materialize/tooltip.js +86 -59
  37. data/app/assets/javascripts/materialize/transitions.js +20 -5
  38. data/app/assets/javascripts/materialize/velocity.min.js +0 -0
  39. data/app/assets/javascripts/materialize/waves.js +0 -0
  40. data/app/assets/stylesheets/materialize/components/_buttons.scss +15 -1
  41. data/app/assets/stylesheets/materialize/components/_cards.scss +54 -7
  42. data/app/assets/stylesheets/materialize/components/_carousel.scss +60 -9
  43. data/app/assets/stylesheets/materialize/components/_chips.scss +49 -2
  44. data/app/assets/stylesheets/materialize/components/_collapsible.scss +3 -3
  45. data/app/assets/stylesheets/materialize/components/_color.scss +1 -1
  46. data/app/assets/stylesheets/materialize/components/_global.scss +7 -8
  47. data/app/assets/stylesheets/materialize/components/_grid.scss +1 -0
  48. data/app/assets/stylesheets/materialize/components/_navbar.scss +15 -4
  49. data/app/assets/stylesheets/materialize/components/_sideNav.scss +93 -8
  50. data/app/assets/stylesheets/materialize/components/_tooltip.scss +20 -22
  51. data/app/assets/stylesheets/materialize/components/_variables.scss +11 -7
  52. data/app/assets/stylesheets/materialize/components/_waves.scss +5 -1
  53. data/app/assets/stylesheets/materialize/components/forms/_checkboxes.scss +0 -0
  54. data/app/assets/stylesheets/materialize/components/forms/_file-input.scss +0 -0
  55. data/app/assets/stylesheets/materialize/components/forms/_forms.scss +0 -0
  56. data/app/assets/stylesheets/materialize/components/forms/_input-fields.scss +23 -4
  57. data/app/assets/stylesheets/materialize/components/forms/_radio-buttons.scss +0 -0
  58. data/app/assets/stylesheets/materialize/components/forms/_range.scss +0 -0
  59. data/app/assets/stylesheets/materialize/components/forms/_select.scss +0 -0
  60. data/app/assets/stylesheets/materialize/components/forms/_switches.scss +0 -0
  61. data/app/assets/stylesheets/materialize/extras/nouislider.css +0 -0
  62. data/lib/materialize-sass/version.rb +1 -1
  63. metadata +3 -3
@@ -1,7 +1,14 @@
1
1
  (function ($) {
2
2
  // Image transition function
3
- Materialize.fadeInImage = function(selector){
4
- var element = $(selector);
3
+ Materialize.fadeInImage = function(selectorOrEl) {
4
+ var element;
5
+ if (typeof(selectorOrEl) === 'string') {
6
+ element = $(selectorOrEl);
7
+ } else if (typeof(selectorOrEl) === 'object') {
8
+ element = selectorOrEl;
9
+ } else {
10
+ return;
11
+ }
5
12
  element.css({opacity: 0});
6
13
  $(element).velocity({opacity: 1}, {
7
14
  duration: 650,
@@ -31,13 +38,21 @@
31
38
  };
32
39
 
33
40
  // Horizontal staggered list
34
- Materialize.showStaggeredList = function(selector) {
41
+ Materialize.showStaggeredList = function(selectorOrEl) {
42
+ var element;
43
+ if (typeof(selectorOrEl) === 'string') {
44
+ element = $(selectorOrEl);
45
+ } else if (typeof(selectorOrEl) === 'object') {
46
+ element = selectorOrEl;
47
+ } else {
48
+ return;
49
+ }
35
50
  var time = 0;
36
- $(selector).find('li').velocity(
51
+ element.find('li').velocity(
37
52
  { translateX: "-100px"},
38
53
  { duration: 0 });
39
54
 
40
- $(selector).find('li').each(function() {
55
+ element.find('li').each(function() {
41
56
  $(this).velocity(
42
57
  { opacity: "1", translateX: "0"},
43
58
  { duration: 800, delay: time, easing: [60, 10] });
File without changes
File without changes
@@ -20,7 +20,10 @@
20
20
  .btn-large.disabled,
21
21
  .btn:disabled,
22
22
  .btn-large:disabled,
23
- .btn-floating:disabled {
23
+ .btn-floating:disabled,
24
+ .btn[disabled],
25
+ .btn-large[disabled],
26
+ .btn-floating[disabled] {
24
27
  background-color: $button-disabled-background !important;
25
28
  box-shadow: none;
26
29
  color: $button-disabled-color !important;
@@ -173,6 +176,17 @@ button.btn-floating {
173
176
  background-color: transparent;
174
177
  color: $button-flat-color;
175
178
  cursor: pointer;
179
+ transition: background-color .2s;
180
+
181
+ &:focus,
182
+ &:active {
183
+ background-color: transparent;
184
+ }
185
+
186
+ &:hover {
187
+ background-color: rgba(0,0,0,.1);
188
+ box-shadow: none;
189
+ }
176
190
 
177
191
  &.disabled {
178
192
  color: $button-flat-disabled-color;
@@ -34,8 +34,11 @@
34
34
  max-height: 60%;
35
35
  overflow: hidden;
36
36
  }
37
- .card-content {
37
+ .card-image + .card-content {
38
38
  max-height: 40%;
39
+ }
40
+ .card-content {
41
+ max-height: 100%;
39
42
  overflow: hidden;
40
43
  }
41
44
  .card-action {
@@ -58,6 +61,56 @@
58
61
  height: 500px;
59
62
  }
60
63
 
64
+ // Horizontal Cards
65
+ &.horizontal {
66
+ &.small, &.medium, &.large {
67
+ .card-image {
68
+ height: 100%;
69
+ max-height: none;
70
+ overflow: visible;
71
+
72
+ img {
73
+ height: 100%;
74
+ }
75
+ }
76
+ }
77
+
78
+ display: flex;
79
+
80
+ .card-image {
81
+ max-width: 50%;
82
+ img {
83
+ max-width: 100%;
84
+ width: auto;
85
+ }
86
+ }
87
+
88
+ .card-stacked {
89
+ display: flex;
90
+ flex-direction: column;
91
+ flex: 1;
92
+ position: relative;
93
+
94
+ .card-content {
95
+ flex-grow: 1;
96
+ }
97
+ }
98
+ }
99
+
100
+ // Sticky Action Section
101
+ &.sticky-action {
102
+ .card-action {
103
+ z-index: 2;
104
+ }
105
+
106
+ .card-reveal {
107
+ z-index: 1;
108
+ padding-bottom: 64px;
109
+ }
110
+ }
111
+
112
+
113
+
61
114
 
62
115
  .card-image {
63
116
  position: relative;
@@ -102,7 +155,6 @@
102
155
  background-color: inherit;
103
156
  border-top: 1px solid rgba(160,160,160,.2);
104
157
  padding: $card-padding;
105
- z-index: 2;
106
158
 
107
159
  a:not(.btn):not(.btn-large):not(.btn-floating) {
108
160
  color: $card-link-color;
@@ -112,11 +164,6 @@
112
164
 
113
165
  &:hover { color: $card-link-color-light; }
114
166
  }
115
-
116
- & + .card-reveal {
117
- z-index: 1;
118
- padding-bottom: 64px;
119
- }
120
167
  }
121
168
 
122
169
  .card-reveal {
@@ -1,4 +1,41 @@
1
1
  .carousel {
2
+ &.carousel-slider {
3
+ top: 0;
4
+ left: 0;
5
+ height: 0;
6
+
7
+ .carousel-fixed-item {
8
+ &.with-indicators {
9
+ bottom: 68px;
10
+ }
11
+
12
+ position: absolute;
13
+ left: 0;
14
+ right: 0;
15
+ bottom: 20px;
16
+ z-index: 1;
17
+ }
18
+
19
+ .carousel-item {
20
+ width: 100%;
21
+ height: 100%;
22
+ min-height: 400px;
23
+ position: absolute;
24
+ top: 0;
25
+ left: 0;
26
+
27
+ h2 {
28
+ font-size: 24px;
29
+ font-weight: 500;
30
+ line-height: 32px;
31
+ }
32
+
33
+ p {
34
+ font-size: 15px;
35
+ }
36
+ }
37
+ }
38
+
2
39
  overflow: hidden;
3
40
  position: relative;
4
41
  width: 100%;
@@ -8,7 +45,9 @@
8
45
  transform-origin: 0% 50%;
9
46
 
10
47
  .carousel-item {
48
+ display: none;
11
49
  width: 200px;
50
+ height: 400px;
12
51
  position: absolute;
13
52
  top: 0;
14
53
  left: 0;
@@ -18,17 +57,29 @@
18
57
  }
19
58
  }
20
59
 
21
- &.carousel-slider {
22
- top: 0;
60
+ .indicators {
61
+ position: absolute;
62
+ text-align: center;
23
63
  left: 0;
24
- height: 0;
64
+ right: 0;
65
+ bottom: 0;
66
+ margin: 0;
25
67
 
26
- .carousel-item {
27
- width: 100%;
28
- height: 100%;
29
- position: absolute;
30
- top: 0;
31
- left: 0;
68
+ .indicator-item {
69
+ &.active {
70
+ background-color: #fff;
71
+ }
72
+
73
+ display: inline-block;
74
+ position: relative;
75
+ cursor: pointer;
76
+ height: 8px;
77
+ width: 8px;
78
+ margin: 24px 4px;
79
+ background-color: rgba(255,255,255,.5);
80
+
81
+ transition: background-color .3s;
82
+ border-radius: 50%;
32
83
  }
33
84
  }
34
85
  }
@@ -8,6 +8,8 @@
8
8
  padding: 0 12px;
9
9
  border-radius: 16px;
10
10
  background-color: $chip-bg-color;
11
+ margin-bottom: $chip-margin;
12
+ margin-right: $chip-margin;
11
13
 
12
14
  img {
13
15
  float: left;
@@ -17,11 +19,56 @@
17
19
  border-radius: 50%;
18
20
  }
19
21
 
20
- i.material-icons {
22
+ .close {
21
23
  cursor: pointer;
22
24
  float: right;
23
25
  font-size: 16px;
24
26
  line-height: 32px;
25
27
  padding-left: 8px;
26
28
  }
27
- }
29
+ }
30
+
31
+ .chips {
32
+ border: none;
33
+ border-bottom: 1px solid $chip-border-color;
34
+ box-shadow: none;
35
+ margin-bottom: 30px;
36
+ min-height: 45px;
37
+ outline: none;
38
+ padding-bottom: $chip-margin;
39
+ transition: all .3s;
40
+
41
+ &.focus {
42
+ border-bottom: 1px solid $chip-selected-color;
43
+ box-shadow: 0 1px 0 0 $chip-selected-color;
44
+ }
45
+
46
+ &:hover {
47
+ cursor: text;
48
+ }
49
+
50
+ .chip.selected {
51
+ background-color: $chip-selected-color;
52
+ color: #fff;
53
+ }
54
+
55
+ .input {
56
+ background: none;
57
+ border: 0;
58
+ color: rgba(0,0,0,.6);
59
+ display: inline-block;
60
+ font-size: 13px;
61
+ font-weight: 500;
62
+ height: 32px;
63
+ margin-right: 20px;
64
+ line-height: 32px;
65
+ outline: 0;
66
+ padding: 0 !important;
67
+ width: 120px !important;
68
+ }
69
+
70
+ .input:focus {
71
+ border: 0 !important;
72
+ box-shadow: none !important;
73
+ }
74
+ }
@@ -53,7 +53,7 @@
53
53
  border: none;
54
54
  line-height: inherit;
55
55
  height: inherit;
56
- padding: 0 $sidenav-padding-right;
56
+ padding: 0 $sidenav-padding;
57
57
 
58
58
  &:hover { background-color: rgba(0,0,0,.05); }
59
59
  i { line-height: inherit; }
@@ -64,8 +64,8 @@
64
64
  background-color: $collapsible-header-color;
65
65
 
66
66
  li a {
67
- padding: 0 (7.5px + $sidenav-padding-right)
68
- 0 (15px + $sidenav-padding-right);
67
+ padding: 0 (7.5px + $sidenav-padding)
68
+ 0 (15px + $sidenav-padding);
69
69
  }
70
70
  }
71
71
 
@@ -374,7 +374,7 @@ $colors: (
374
374
  color: $color_value !important;
375
375
  }
376
376
  }
377
- @else {
377
+ @else if $color_name != "shades" {
378
378
  .#{$color_name}.#{$color_type} {
379
379
  background-color: $color_value !important;
380
380
  }
@@ -18,11 +18,17 @@ main {
18
18
  }
19
19
 
20
20
  ul {
21
- &.browser-default {
21
+ &.browser-default,
22
+ &.browser-default li {
22
23
  list-style-type: initial;
23
24
  }
24
25
 
26
+ padding: 0;
25
27
  list-style-type: none;
28
+
29
+ li {
30
+ list-style-type: none;
31
+ }
26
32
  }
27
33
 
28
34
  a {
@@ -45,13 +51,6 @@ a {
45
51
  }
46
52
 
47
53
 
48
- ul {
49
- padding: 0;
50
- li {
51
- list-style-type: none;
52
- }
53
- }
54
-
55
54
  // classic clearfix
56
55
  .clearfix {
57
56
  clear: both;
@@ -50,6 +50,7 @@
50
50
  float: left;
51
51
  box-sizing: border-box;
52
52
  padding: 0 $gutter-width / 2;
53
+ min-height: 1px;
53
54
 
54
55
  &[class*="push-"],
55
56
  &[class*="pull-"] {
@@ -76,6 +76,13 @@ nav {
76
76
  right: 0.5rem;
77
77
  padding: 0;
78
78
  }
79
+
80
+ i,
81
+ [class^="mdi-"], [class*="mdi-"],
82
+ i.material-icons {
83
+ float: left;
84
+ margin-right: 15px;
85
+ }
79
86
  }
80
87
 
81
88
 
@@ -94,9 +101,9 @@ nav {
94
101
  }
95
102
  a {
96
103
  transition: background-color .3s;
97
- font-size: 1rem;
104
+ font-size: $navbar-font-size;
98
105
  color: $navbar-font-color;
99
- display: inline-block;
106
+ display: block;
100
107
  padding: 0 15px;
101
108
  cursor: pointer;
102
109
 
@@ -117,8 +124,13 @@ nav {
117
124
  }
118
125
 
119
126
  // Navbar Search Form
127
+ form {
128
+ height: 100%;
129
+ }
130
+
120
131
  .input-field {
121
132
  margin: 0;
133
+ height: 100%;
122
134
 
123
135
  input {
124
136
  height: 100%;
@@ -132,6 +144,7 @@ nav {
132
144
  box-shadow: none;
133
145
  }
134
146
  }
147
+
135
148
  label {
136
149
  top: 0;
137
150
  left: 0;
@@ -145,9 +158,7 @@ nav {
145
158
  transform: translateY(0);
146
159
  }
147
160
  }
148
-
149
161
  }
150
-
151
162
  }
152
163
 
153
164
  // Fixed Navbar