materialize-sass 0.95.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.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +50 -0
  6. data/Rakefile +1 -0
  7. data/app/assets/fonts/material-design-icons/LICENSE.txt +428 -0
  8. data/app/assets/fonts/material-design-icons/Material-Design-Icons.eot +0 -0
  9. data/app/assets/fonts/material-design-icons/Material-Design-Icons.svg +751 -0
  10. data/app/assets/fonts/material-design-icons/Material-Design-Icons.ttf +0 -0
  11. data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff +0 -0
  12. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  13. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  14. data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  15. data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  16. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  17. data/app/assets/javascripts/materialize-sprokets.js +21 -0
  18. data/app/assets/javascripts/materialize.js +5327 -0
  19. data/app/assets/javascripts/materialize/cards.js +19 -0
  20. data/app/assets/javascripts/materialize/collapsible.js +87 -0
  21. data/app/assets/javascripts/materialize/date_picker/picker.date.js +1427 -0
  22. data/app/assets/javascripts/materialize/date_picker/picker.js +1123 -0
  23. data/app/assets/javascripts/materialize/dropdown.js +168 -0
  24. data/app/assets/javascripts/materialize/forms.js +245 -0
  25. data/app/assets/javascripts/materialize/hammer.min.js +1 -0
  26. data/app/assets/javascripts/materialize/init.js +152 -0
  27. data/app/assets/javascripts/materialize/jquery.easing.1.3.js +205 -0
  28. data/app/assets/javascripts/materialize/jquery.hammer.js +33 -0
  29. data/app/assets/javascripts/materialize/jquery.timeago.min.js +1 -0
  30. data/app/assets/javascripts/materialize/leanModal.js +96 -0
  31. data/app/assets/javascripts/materialize/materialbox.js +237 -0
  32. data/app/assets/javascripts/materialize/parallax.js +50 -0
  33. data/app/assets/javascripts/materialize/prism.js +8 -0
  34. data/app/assets/javascripts/materialize/pushpin.js +87 -0
  35. data/app/assets/javascripts/materialize/scrollspy.js +287 -0
  36. data/app/assets/javascripts/materialize/sideNav.js +278 -0
  37. data/app/assets/javascripts/materialize/slider.js +257 -0
  38. data/app/assets/javascripts/materialize/tabs.js +130 -0
  39. data/app/assets/javascripts/materialize/toasts.js +100 -0
  40. data/app/assets/javascripts/materialize/tooltip.js +167 -0
  41. data/app/assets/javascripts/materialize/velocity.min.js +4 -0
  42. data/app/assets/javascripts/materialize/waves.js +335 -0
  43. data/app/assets/stylesheets/components/_buttons.scss +111 -0
  44. data/app/assets/stylesheets/components/_cards.scss +121 -0
  45. data/app/assets/stylesheets/components/_collapsible.scss +78 -0
  46. data/app/assets/stylesheets/components/_color.scss +411 -0
  47. data/app/assets/stylesheets/components/_dropdown.scss +31 -0
  48. data/app/assets/stylesheets/components/_form.scss +641 -0
  49. data/app/assets/stylesheets/components/_global.scss +582 -0
  50. data/app/assets/stylesheets/components/_grid.scss +119 -0
  51. data/app/assets/stylesheets/components/_icons-material-design.scss +2247 -0
  52. data/app/assets/stylesheets/components/_materialbox.scss +42 -0
  53. data/app/assets/stylesheets/components/_mixins.scss +5 -0
  54. data/app/assets/stylesheets/components/_modal.scss +50 -0
  55. data/app/assets/stylesheets/components/_navbar.scss +129 -0
  56. data/app/assets/stylesheets/components/_normalize.scss +427 -0
  57. data/app/assets/stylesheets/components/_prefixer.scss +417 -0
  58. data/app/assets/stylesheets/components/_preloader.scss +320 -0
  59. data/app/assets/stylesheets/components/_roboto.scss +28 -0
  60. data/app/assets/stylesheets/components/_sideNav.scss +143 -0
  61. data/app/assets/stylesheets/components/_slider.scss +87 -0
  62. data/app/assets/stylesheets/components/_table_of_contents.scss +33 -0
  63. data/app/assets/stylesheets/components/_tabs.scss +43 -0
  64. data/app/assets/stylesheets/components/_toast.scss +64 -0
  65. data/app/assets/stylesheets/components/_tooltip.scss +34 -0
  66. data/app/assets/stylesheets/components/_typography.scss +55 -0
  67. data/app/assets/stylesheets/components/_variables.scss +128 -0
  68. data/app/assets/stylesheets/components/_waves.scss +167 -0
  69. data/app/assets/stylesheets/components/date_picker/_default.date.scss +431 -0
  70. data/app/assets/stylesheets/components/date_picker/_default.scss +201 -0
  71. data/app/assets/stylesheets/components/date_picker/_default.time.scss +125 -0
  72. data/app/assets/stylesheets/materialize.scss +38 -0
  73. data/lib/materialize-sass.rb +8 -0
  74. data/lib/materialize-sass/version.rb +6 -0
  75. data/materialize-sass.gemspec +23 -0
  76. metadata +146 -0
@@ -0,0 +1,28 @@
1
+ @font-face {
2
+ font-family: "Roboto";
3
+ src: font-url("roboto/Roboto-Thin.ttf");
4
+ font-weight: 200;
5
+ }
6
+ @font-face {
7
+ font-family: "Roboto";
8
+ src: font-url("roboto/Roboto-Light.ttf");
9
+ font-weight: 300;
10
+ }
11
+
12
+ @font-face {
13
+ font-family: "Roboto";
14
+ src: font-url("roboto/Roboto-Regular.ttf");
15
+ font-weight: 400;
16
+ }
17
+
18
+ @font-face {
19
+ font-family: "Roboto";
20
+ src: font-url("roboto/Roboto-Medium.ttf");
21
+ font-weight: 500;
22
+ }
23
+
24
+ @font-face {
25
+ font-family: "Roboto";
26
+ src: font-url("roboto/Roboto-Bold.ttf");
27
+ font-weight: 700;
28
+ }
@@ -0,0 +1,143 @@
1
+ $sidenav-width: 240px;
2
+ @media #{$medium-and-down} {
3
+ ul.side-nav {
4
+ position: fixed;
5
+ width: $sidenav-width;
6
+ left: -1 * ($sidenav-width + 10);
7
+ top: 0;
8
+ height: 100%;
9
+ height: calc(100% + 60px);
10
+ padding-bottom: 60px;
11
+ background-color: #FFF;
12
+ z-index: 999;
13
+
14
+ will-change: left;
15
+
16
+ // Right Align
17
+ &.right-aligned {
18
+ will-change: right;
19
+ right: -1 * ($sidenav-width + 10);
20
+ left: auto;
21
+ }
22
+
23
+ .collapsible{
24
+ margin: 0;
25
+ }
26
+
27
+
28
+ li {
29
+ float: none;
30
+ padding: 0 15px;
31
+ width: 240px;
32
+ &:hover, &.active { background-color: #ddd; }
33
+ }
34
+ a {
35
+ color: #444;
36
+ }
37
+ }
38
+
39
+ }
40
+
41
+ // Touch interaction
42
+ .drag-target {
43
+ height: 100%;
44
+ width: 10px;
45
+ position: fixed;
46
+ top: 0;
47
+ z-index: 998;
48
+ }
49
+
50
+
51
+ // Hidden side-nav for all sizes
52
+ ul.side-nav.full,
53
+ ul.side-nav.fixed {
54
+ position: fixed;
55
+ width: $sidenav-width;
56
+ left: -1 * ($sidenav-width + 10);
57
+ top: 0;
58
+ margin: 0;
59
+ padding-bottom: 60px;
60
+ height: 100%;
61
+ height: calc(100% + 60px);
62
+ background-color: #FFF;
63
+ z-index: 999;
64
+ @extend .z-depth-1;
65
+
66
+ will-change: left;
67
+
68
+ // Right Align
69
+ &.right-aligned {
70
+ will-change: right;
71
+ right: -1 * ($sidenav-width + 10);
72
+ left: auto;
73
+ }
74
+
75
+ .collapsible{
76
+ margin: 0;
77
+ }
78
+
79
+ li {
80
+ float: none;
81
+ line-height: 64px;
82
+ padding: 0 15px;
83
+ width: $sidenav-width;
84
+
85
+ @include transition(background-color 0s);
86
+
87
+ &:hover, &.active { background-color: #ddd; }
88
+ }
89
+ a {
90
+ display: block;
91
+ padding: 0 15px;
92
+ color: #444;
93
+ }
94
+ }
95
+
96
+
97
+ // Fixed side-nav shown
98
+ ul.side-nav.fixed {
99
+ left: 0;
100
+ position: fixed;
101
+
102
+ // Right Align
103
+ &.right-aligned {
104
+ will-change: right;
105
+ right: 0;
106
+ left: auto;
107
+ }
108
+ }
109
+
110
+ // Fixed sideNav hide on smaller
111
+ @media #{$medium-and-down} {
112
+ ul.side-nav.fixed {
113
+ left: -1 * ($sidenav-width + 10);
114
+
115
+ &.right-aligned {
116
+ right: -1 * ($sidenav-width + 10);
117
+ left: auto;
118
+ }
119
+ }
120
+ }
121
+
122
+
123
+ ul.side-nav .collapsible-body li.active,
124
+ ul.side-nav.fixed .collapsible-body li.active {
125
+ background-color: $primary-color;
126
+ a {
127
+ color: #fff;
128
+ }
129
+ }
130
+
131
+
132
+ #sidenav-overlay {
133
+ position: fixed;
134
+ top: 0px;
135
+ left: 0px;
136
+ right: 0px;
137
+
138
+ height: 120vh;
139
+ background-color: rgba(0,0,0,.5);
140
+ z-index: 997;
141
+
142
+ will-change: opacity;
143
+ }
@@ -0,0 +1,87 @@
1
+ .slider {
2
+ position: relative;
3
+ height: 440px;
4
+ width: 100%;
5
+
6
+ // Fullscreen slider
7
+ &.fullscreen {
8
+ height: 100%;
9
+ width: 100%;
10
+ position: absolute;
11
+ top: 0;
12
+ left: 0;
13
+ right: 0;
14
+ bottom: 0;
15
+
16
+ ul.slides {
17
+ height: 100%;
18
+ }
19
+
20
+ ul.indicators {
21
+ z-index: 2;
22
+ bottom: 30px;
23
+ }
24
+ }
25
+
26
+ ul.slides {
27
+ background-color: color('grey', 'base');
28
+ margin: 0;
29
+ height: 400px;
30
+
31
+ li {
32
+ @include opacity(0);
33
+ position: absolute;
34
+ top: 0;
35
+ left: 0;
36
+ z-index: 1;
37
+ width: 100%;
38
+ height: inherit;
39
+ overflow: hidden;
40
+
41
+ img { height: 100%; }
42
+
43
+ .caption {
44
+ color: #fff;
45
+ position: absolute;
46
+ top: 15%;
47
+ left: 15%;
48
+ width: 70%;
49
+ @include opacity(0);
50
+
51
+ p { color: color('grey', 'lighten-2'); }
52
+ }
53
+
54
+ &.active {
55
+ z-index: 2;
56
+ }
57
+ }
58
+ }
59
+
60
+
61
+ ul.indicators {
62
+ position: absolute;
63
+ text-align: center;
64
+ left: 0;
65
+ right: 0;
66
+ bottom: 0;
67
+ margin: 0;
68
+
69
+ li.indicator-item {
70
+ display: inline-block;
71
+ position: relative;
72
+ cursor: pointer;
73
+ height: 16px;
74
+ width: 16px;
75
+ margin: 0 12px;
76
+ background-color: color('grey', 'lighten-2');
77
+
78
+ @include transition(background-color .3s);
79
+ @include border-radius(50%);
80
+
81
+ &.active {
82
+ background-color: color('green', 'base');
83
+ }
84
+ }
85
+ }
86
+
87
+ }
@@ -0,0 +1,33 @@
1
+ /***************
2
+ Nav List
3
+ ***************/
4
+ ul.table-of-contents {
5
+ &.fixed {
6
+ position: fixed;
7
+ }
8
+
9
+ li {
10
+ padding: 2px 0;
11
+ }
12
+ a {
13
+ display: inline-block;
14
+ font-weight: 300;
15
+ color: #757575;
16
+ padding-left: 20px;
17
+ height: 1.5rem;
18
+ line-height: 1.5rem;
19
+ letter-spacing: .4;
20
+ display: inline-block;
21
+
22
+ &:hover {
23
+ color: lighten(#757575, 20%);
24
+ padding-left: 19px;
25
+ border-left: 1px solid lighten(color("materialize-red", "base"),10%);
26
+ }
27
+ &.active {
28
+ font-weight: 500;
29
+ padding-left: 18px;
30
+ border-left: 2px solid lighten(color("materialize-red", "base"),10%);
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,43 @@
1
+ .tabs {
2
+ position: relative;
3
+ height: 48px;
4
+ background-color: #FFF;
5
+ margin: 0 auto;
6
+ width: 100%;
7
+ white-space: nowrap;
8
+
9
+ li.tab {
10
+ display: block;
11
+ float: left;
12
+ text-align: center;
13
+ background-color: #fff;
14
+ line-height: 48px;
15
+ height: 48px;
16
+ padding: 0 20px;
17
+ margin: 0;
18
+ text-transform: uppercase;
19
+ letter-spacing: .8px;
20
+ width: 15%;
21
+
22
+ a {
23
+ color: $tabs-text-color;
24
+ display: block;
25
+ width: 100%;
26
+ height: 100%;
27
+ @include transition( color .28s ease);
28
+ &:hover {
29
+ color: lighten($tabs-text-color, 20%);
30
+ }
31
+ }
32
+ }
33
+ .indicator {
34
+ position: absolute;
35
+ bottom: 0;
36
+ height: 2px;
37
+ background-color: $tabs-underline-color;
38
+ will-change: left, right;
39
+ }
40
+ }
41
+
42
+ ul.tabs li.tab { padding: 0; }
43
+
@@ -0,0 +1,64 @@
1
+ #toast-container {
2
+ display:block;
3
+ position: fixed;
4
+ z-index: 1001;
5
+
6
+ @media #{$small-and-down} {
7
+ min-width: 100%;
8
+ bottom: 0%;
9
+ }
10
+ @media #{$medium-only} {
11
+ min-width: 30%;
12
+ left: 5%;
13
+ bottom: 7%;
14
+ }
15
+ @media #{$large-and-up} {
16
+ min-width: 8%;
17
+ top: 10%;
18
+ right: 7%;
19
+ }
20
+ }
21
+
22
+ .toast {
23
+ @extend .z-depth-1;
24
+ @include border-radius(2px);
25
+ @include box-sizing(border-box);
26
+ top: 0px;
27
+ width: auto;
28
+ clear: both;
29
+ margin-top: 10px;
30
+ position: relative;
31
+ max-width:100%;
32
+ height: $toast-height;
33
+ line-height: $toast-height;
34
+ background-color: $toast-color;
35
+ padding: 0px 25px;
36
+ font-size: 1.1rem;
37
+ font-weight: 300;
38
+ color: $toast-text-color;
39
+
40
+ @include flexbox();
41
+ @include align(center);
42
+ @include justify-content(space-between);
43
+
44
+ .btn, .btn-flat {
45
+ margin: 0;
46
+ margin-left: 3rem;
47
+ }
48
+
49
+ &.rounded{
50
+ border-radius: 24px;
51
+ }
52
+
53
+ @media #{$small-and-down} {
54
+ width:100%;
55
+ @include border-radius(0px);
56
+ }
57
+ @media #{$medium-only} {
58
+ float: left;
59
+ }
60
+ @media #{$large-and-up} {
61
+ float: right;
62
+ }
63
+
64
+ }
@@ -0,0 +1,34 @@
1
+ .material-tooltip {
2
+ padding: 10px 8px;
3
+ font-size: 1rem;
4
+ z-index: 1000;
5
+ background-color: transparent;
6
+ @include border-radius(2px);
7
+ color: #fff;
8
+ min-height: 36px;
9
+ line-height: 1rem;
10
+ // max-width: 350px;
11
+ opacity: 0;
12
+ display: none;
13
+ position: absolute;
14
+ text-align: center;
15
+ overflow: hidden;
16
+ left:0;
17
+ top:0;
18
+
19
+ will-change: top, left;
20
+ }
21
+
22
+ .backdrop {
23
+ position: absolute;
24
+ opacity: 0;
25
+ display: none;
26
+ height: 7px;
27
+ width: 14px;
28
+ @include border-radius(0 0 14px 14px);
29
+ background-color: #323232;
30
+ z-index: -1;
31
+ @include transform-origin( 50% 10%);
32
+
33
+ will-change: transform, opacity;
34
+ }
@@ -0,0 +1,55 @@
1
+ a {
2
+ text-decoration: none;
3
+ }
4
+
5
+ html{
6
+ line-height: 1.5;
7
+
8
+ @media only screen and (min-width: 0) {
9
+ font-size: 14px;
10
+ }
11
+
12
+ @media only screen and (min-width: $medium-screen) {
13
+ font-size: 14.5px;
14
+ }
15
+
16
+ @media only screen and (min-width: $large-screen) {
17
+ font-size: 15px;
18
+ }
19
+
20
+ font-family: "Roboto", sans-serif;
21
+ font-weight: normal;
22
+ color: $off-black;
23
+ }
24
+ h1, h2, h3, h4, h5, h6 {
25
+ font-weight: 400;
26
+ }
27
+
28
+ // Header Styles
29
+ h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
30
+ h1 { font-size: $h1-fontsize; line-height: 1.1*$h1-fontsize; margin: ($h1-fontsize / 2) 0 ($h1-fontsize / 2.5) 0;}
31
+ h2 { font-size: $h2-fontsize; line-height: 1.1*$h2-fontsize; margin: ($h2-fontsize / 2) 0 ($h2-fontsize / 2.5) 0;}
32
+ h3 { font-size: $h3-fontsize; line-height: 1.1*$h3-fontsize; margin: ($h3-fontsize / 2) 0 ($h3-fontsize / 2.5) 0;}
33
+ h4 { font-size: $h4-fontsize; line-height: 1.1*$h4-fontsize; margin: ($h4-fontsize / 2) 0 ($h4-fontsize / 2.5) 0;}
34
+ h5 { font-size: $h5-fontsize; line-height: 1.1*$h5-fontsize; margin: ($h5-fontsize / 2) 0 ($h5-fontsize / 2.5) 0;}
35
+ h6 { font-size: $h6-fontsize; line-height: 1.1*$h6-fontsize; margin: ($h6-fontsize / 2) 0 ($h6-fontsize / 2.5) 0;}
36
+
37
+ // Text Styles
38
+ em { font-style: italic; }
39
+ strong { font-weight: 500; }
40
+ small { font-size: 75%; }
41
+ .light { font-weight: 300; }
42
+
43
+ .flow-text{
44
+ font-weight: 300;
45
+ $i: 0;
46
+ @while $i <= $intervals {
47
+ @media only screen and (min-width : 360 + ($i * $interval-size)) {
48
+ font-size: 1.2rem * (1 + (.02 * $i));
49
+ }
50
+ @media only screen and (min-width : 0 + ($i * $interval-size)) {
51
+ line-height: .8rem * (1 + (.13 * $i));
52
+ }
53
+ $i: $i + 1;
54
+ }
55
+ }