material-sass 0.0.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/fonts/MaterialIcons-Regular.eot +0 -0
  3. data/app/assets/fonts/MaterialIcons-Regular.ijmap +1 -0
  4. data/app/assets/fonts/MaterialIcons-Regular.ttf +0 -0
  5. data/app/assets/fonts/MaterialIcons-Regular.woff +0 -0
  6. data/app/assets/fonts/MaterialIcons-Regular.woff2 +0 -0
  7. data/app/assets/images/bg/amber.jpg +0 -0
  8. data/app/assets/images/bg/brand.jpg +0 -0
  9. data/app/assets/images/bg/green.jpg +0 -0
  10. data/app/assets/images/bg/purple.jpg +0 -0
  11. data/app/assets/images/bg/red.jpg +0 -0
  12. data/app/assets/images/bg/teal.jpg +0 -0
  13. data/app/assets/javascripts/material.js +664 -507
  14. data/app/assets/javascripts/material.min.js +2 -0
  15. data/app/assets/javascripts/material/_.js +6 -3
  16. data/app/assets/javascripts/material/bootstrap.js +6 -3
  17. data/app/assets/javascripts/material/datepicker.js +95 -64
  18. data/app/assets/javascripts/material/form-adv-label.js +49 -0
  19. data/app/assets/javascripts/material/form-adv-textarea.js +13 -0
  20. data/app/assets/javascripts/material/header.js +12 -56
  21. data/app/assets/javascripts/material/menu.js +188 -38
  22. data/app/assets/javascripts/material/modal.js +10 -8
  23. data/app/assets/javascripts/material/snackbar.js +116 -0
  24. data/app/assets/javascripts/material/tab.js +47 -27
  25. data/app/assets/javascripts/material/tile.js +169 -74
  26. data/app/assets/javascripts/material/wave.js +12 -7
  27. data/app/assets/stylesheets/material.min.css +13 -0
  28. data/app/assets/stylesheets/material/addons/_material-icons.scss +9 -0
  29. data/app/assets/stylesheets/material/addons/_waves.scss +44 -0
  30. data/app/assets/stylesheets/material/{addon/material-design-icon → addons/material-icons}/_core.scss +8 -8
  31. data/app/assets/stylesheets/material/{addon/material-design-icon → addons/material-icons}/_larger.scss +5 -2
  32. data/app/assets/stylesheets/material/addons/material-icons/_path.scss +11 -0
  33. data/app/assets/stylesheets/material/addons/material-icons/_variables.scss +3 -0
  34. data/app/assets/stylesheets/material/base.scss +39 -40
  35. data/app/assets/stylesheets/material/{_grid.scss → base/_grid.scss} +13 -12
  36. data/app/assets/stylesheets/material/{_reset.scss → base/_reset.scss} +160 -161
  37. data/app/assets/stylesheets/material/components/_avatar.scss +94 -0
  38. data/app/assets/stylesheets/material/{element → components}/_breadcrumb.scss +3 -4
  39. data/app/assets/stylesheets/material/components/_button-flat.scss +35 -0
  40. data/app/assets/stylesheets/material/components/_button-float.scss +187 -0
  41. data/app/assets/stylesheets/material/components/_button.scss +86 -0
  42. data/app/assets/stylesheets/material/components/_card.scss +175 -0
  43. data/app/assets/stylesheets/material/{_code.scss → components/_code.scss} +14 -12
  44. data/app/assets/stylesheets/material/components/_dropdown.scss +103 -0
  45. data/app/assets/stylesheets/material/components/_form-adv-checkbox.scss +161 -0
  46. data/app/assets/stylesheets/material/{element → components}/_form-adv-datepicker.scss +87 -108
  47. data/app/assets/stylesheets/material/{element → components}/_form-adv-label.scss +17 -23
  48. data/app/assets/stylesheets/material/components/_form-adv-switch.scss +96 -0
  49. data/app/assets/stylesheets/material/{element → components}/_form-adv-textarea.scss +1 -1
  50. data/app/assets/stylesheets/material/{element → components}/_form.scss +34 -95
  51. data/app/assets/stylesheets/material/components/_label.scss +23 -0
  52. data/app/assets/stylesheets/material/{element → components}/_modal.scss +43 -18
  53. data/app/assets/stylesheets/material/{element → components}/_nav.scss +15 -8
  54. data/app/assets/stylesheets/material/{element → components}/_progress-circular.scss +36 -32
  55. data/app/assets/stylesheets/material/{element → components}/_progress-loadbar.scss +15 -21
  56. data/app/assets/stylesheets/material/{element → components}/_progress.scss +40 -30
  57. data/app/assets/stylesheets/material/components/_snackbar.scss +60 -0
  58. data/app/assets/stylesheets/material/components/_tab.scss +85 -0
  59. data/app/assets/stylesheets/material/components/_table.scss +82 -0
  60. data/app/assets/stylesheets/material/components/_tile.scss +155 -0
  61. data/app/assets/stylesheets/material/elements/_content.scss +42 -0
  62. data/app/assets/stylesheets/material/elements/_footer.scss +10 -0
  63. data/app/assets/stylesheets/material/elements/_header.scss +145 -0
  64. data/app/assets/stylesheets/material/{theme → elements}/_menu.scss +92 -150
  65. data/app/assets/stylesheets/material/mixin/_grid.scss +1 -9
  66. data/app/assets/stylesheets/material/mixin/_responsive.scss +1 -1
  67. data/app/assets/stylesheets/material/mixin/_utilities.scss +1 -1
  68. data/app/assets/stylesheets/material/{_print.scss → utilities/_print.scss} +4 -4
  69. data/app/assets/stylesheets/material/{_utilities-responsive.scss → utilities/_utilities-responsive.scss} +1 -1
  70. data/app/assets/stylesheets/material/{_utilities.scss → utilities/_utilities.scss} +197 -110
  71. data/app/assets/stylesheets/material/var/_colours.scss +336 -0
  72. data/app/assets/stylesheets/material/var/_variables.scss +78 -0
  73. data/lib/material-sass/version.rb +1 -1
  74. metadata +55 -53
  75. data/app/assets/javascripts/material/content.js +0 -46
  76. data/app/assets/javascripts/material/dropdown.js +0 -18
  77. data/app/assets/javascripts/material/esc.js +0 -10
  78. data/app/assets/javascripts/material/footer.js +0 -6
  79. data/app/assets/javascripts/material/form-adv.js +0 -64
  80. data/app/assets/javascripts/material/get-target.js +0 -8
  81. data/app/assets/javascripts/material/toast.js +0 -79
  82. data/app/assets/javascripts/material/webfont.js +0 -47
  83. data/app/assets/javascripts/material/winresize.js +0 -28
  84. data/app/assets/stylesheets/material/_variable.scss +0 -120
  85. data/app/assets/stylesheets/material/addon/_material-design-icon.scss +0 -9
  86. data/app/assets/stylesheets/material/addon/_waves.scss +0 -45
  87. data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +0 -11
  88. data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +0 -3
  89. data/app/assets/stylesheets/material/element/_avatar.scss +0 -67
  90. data/app/assets/stylesheets/material/element/_button-flat.scss +0 -32
  91. data/app/assets/stylesheets/material/element/_button-float.scss +0 -202
  92. data/app/assets/stylesheets/material/element/_button.scss +0 -95
  93. data/app/assets/stylesheets/material/element/_card.scss +0 -245
  94. data/app/assets/stylesheets/material/element/_dropdown.scss +0 -132
  95. data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +0 -109
  96. data/app/assets/stylesheets/material/element/_form-adv-switch.scss +0 -102
  97. data/app/assets/stylesheets/material/element/_label.scss +0 -22
  98. data/app/assets/stylesheets/material/element/_sortable.scss +0 -8
  99. data/app/assets/stylesheets/material/element/_tab.scss +0 -107
  100. data/app/assets/stylesheets/material/element/_table.scss +0 -48
  101. data/app/assets/stylesheets/material/element/_tile.scss +0 -193
  102. data/app/assets/stylesheets/material/element/_toast.scss +0 -67
  103. data/app/assets/stylesheets/material/project.scss +0 -8
  104. data/app/assets/stylesheets/material/theme/_content.scss +0 -74
  105. data/app/assets/stylesheets/material/theme/_footer.scss +0 -17
  106. data/app/assets/stylesheets/material/theme/_header.scss +0 -128
@@ -1,95 +0,0 @@
1
- .btn {
2
- background-color: $white;
3
- background-image: none;
4
- background-position: 50% 50%;
5
- background-size: 100% 100%;
6
- border: 1px solid transparent;
7
- border-radius: 2px;
8
- box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15), 0 1px 5px 1px rgba(0, 0, 0, 0.15);
9
- color: $black-text;
10
- cursor: pointer;
11
- display: inline-block;
12
- font-size: $font-size;
13
- font-weight: $font-weight;
14
- line-height: $line-height;
15
- margin-bottom: 0;
16
- max-width: 100%;
17
- padding: (($btn-height - $line-height - 2) / 2) ($grid-gutter - 1);
18
- position: relative;
19
- text-align: center;
20
- text-transform: uppercase;
21
- transition: background-color 0.3s $timing, box-shadow 0.3s $timing;
22
- user-select: none;
23
- vertical-align: middle;
24
- white-space: nowrap;
25
- &:active,
26
- &:focus,
27
- &:hover {
28
- box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15), 0 5px 10px 1px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.15);
29
- color: $black-text;
30
- outline: 0;
31
- text-decoration: none;
32
- }
33
- &[disabled],
34
- fieldset[disabled] & {
35
- cursor: not-allowed;
36
- opacity: 0.5;
37
- }
38
- &.waves-effect {
39
- border: 0;
40
- padding: (($btn-height - $line-height) / 2) $grid-gutter;
41
- }
42
- }
43
-
44
- // colour
45
- @each $color in $palette-list {
46
- $i: index($palette-list, $color);
47
-
48
- .btn-#{$color} {
49
- background-color: nth($palette-color, $i);
50
- color: $white;
51
- &:active,
52
- &:focus,
53
- &:hover {
54
- color: $white;
55
- }
56
- &[disabled],
57
- fieldset[disabled] & {
58
- background-color: nth($palette-color, $i);
59
- }
60
- }
61
- }
62
-
63
- // size
64
- .btn-lg {
65
- font-size: $font-size-h4;
66
- line-height: $line-height-h4;
67
- padding: (($base * 3 * 2.5 - $line-height-h4 - 2) / 2) ($grid-gutter * 1.5 - 1);
68
- &.waves-effect {
69
- padding: (($base * 3 * 2.5 - $line-height-h4) / 2) ($grid-gutter * 1.5);
70
- }
71
- }
72
-
73
- .btn-sm {
74
- font-size: $font-size-h6;
75
- line-height: ($line-height - 2);
76
- padding: 0 ($grid-gutter / 2 - 1);
77
- &.waves-effect {
78
- padding: 1px ($grid-gutter / 2);
79
- }
80
- }
81
-
82
- .btn-block {
83
- display: block;
84
- white-space: normal;
85
- width: 100%;
86
- }
87
-
88
- .btn-text {
89
- color: $black-text;
90
- display: inline-block;
91
- font-size: $font-size;
92
- font-weight: $font-weight;
93
- line-height: $line-height;
94
- padding: (($btn-height - $line-height) / 2) 0;
95
- }
@@ -1,245 +0,0 @@
1
- .card {
2
- background-color: $white;
3
- border-radius: 2px;
4
- box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
5
- display: block;
6
- display: flex;
7
- margin-bottom: $line-height;
8
- transition: box-shadow 0.3s $timing;
9
- position: relative;
10
- &[class*="-bg"] {
11
- color: $white;
12
- }
13
- // no boxshadow
14
- .no-boxshadow & {
15
- border: 1px solid $black-bg;
16
- }
17
- }
18
-
19
- // colour
20
- .card-offwhite {
21
- background-color: $white-bg;
22
- }
23
-
24
- @each $color in $palette-list {
25
- $i: index($palette-list, $color);
26
-
27
- .card-#{$color} {
28
- box-shadow: 0 0 2px rgba(0, 0, 0, 0.3), 0 1px 6px rgba(red(nth($palette-color, $i)), green(nth($palette-color, $i)), blue(nth($palette-color, $i)), 0.3);
29
- // no boxshadow
30
- .no-boxshadow & {
31
- border-color: nth($palette-color-light, $i);
32
- }
33
- }
34
-
35
- .card-#{$color}-bg {
36
- @extend .card-#{$color};
37
- background-color: nth($palette-color, $i);
38
- }
39
- }
40
-
41
- .card-action {
42
- border-top: 1px solid $black-bg;
43
- position: relative;
44
- @include clearfix();
45
- &:first-child {
46
- border-top: 0;
47
- }
48
- .nav {
49
- margin-top: 0;
50
- margin-bottom: 0;
51
- > li {
52
- > a,
53
- > .a {
54
- color: $black-sec;
55
- &:focus,
56
- &:hover {
57
- color: $link-color;
58
- }
59
- .card[class*="-bg"] & {
60
- color: $white;
61
- }
62
- }
63
- &.active > {
64
- a,
65
- .a {
66
- color: $link-color;
67
- }
68
- }
69
- &.open > {
70
- a,
71
- .a {
72
- color: $black-text;
73
- }
74
- }
75
- }
76
- }
77
- }
78
-
79
- // colour
80
- @each $color in $palette-list {
81
- $i: index($palette-list, $color);
82
-
83
- .card-#{$color} .card-action {
84
- border-top-color: nth($palette-color-light, $i);
85
- }
86
-
87
- .card-#{$color}-bg .card-action {
88
- border-top-color: nth($palette-color-dark-m, $i);
89
- }
90
- }
91
-
92
- .card-header {
93
- padding-top: ($line-height / 4);
94
- padding-bottom: ($line-height / 4);
95
- position: relative;
96
- @include clearfix();
97
- &:before {
98
- border-bottom: 1px solid $black-bg;
99
- content: "";
100
- display: block;
101
- position: absolute;
102
- bottom: 0;
103
- left: 0;
104
- width: 100%;
105
- }
106
- }
107
-
108
- .card-heading {
109
- display: block;
110
- font-size: $font-size-h4;
111
- line-height: $line-height-h4;
112
- margin-top: $line-height;
113
- margin-bottom: $line-height;
114
- .card-header & {
115
- margin-top: 0;
116
- margin-bottom: 0;
117
- }
118
- }
119
-
120
- .card-img {
121
- overflow: hidden;
122
- position: relative;
123
- &:first-child {
124
- border-radius: 2px 2px 0 0;
125
- }
126
- &:last-child {
127
- border-radius: 0 0 2px 2px;
128
- }
129
- img {
130
- display: block;
131
- height: auto;
132
- width: 100%;
133
- }
134
- }
135
-
136
- .card-img-heading {
137
- background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
138
- color: $white;
139
- font-size: $font-size-h4;
140
- line-height: $line-height-h4;
141
- margin: 0;
142
- padding: ($line-height / 2) $grid-gutter;
143
- position: absolute;
144
- bottom: 0;
145
- left: 0;
146
- width: 100%;
147
- }
148
-
149
- .card-inner {
150
- padding-right: $grid-gutter;
151
- padding-left: $grid-gutter;
152
- position: relative;
153
- z-index: 1;
154
- .card-header & {
155
- padding-top: ($line-height / 2);
156
- padding-bottom: ($line-height / 2);
157
- }
158
- .card-inner-side ~ & {
159
- overflow: hidden;
160
- }
161
- }
162
-
163
- .card-inner-side {
164
- padding-top: ($line-height / 2);
165
- padding-bottom: ($line-height / 2);
166
- &.pull-left {
167
- padding-left: $grid-gutter;
168
- }
169
- &.pull-right {
170
- padding-right: $grid-gutter;
171
- }
172
- }
173
-
174
- .card-main {
175
- flex: 1;
176
- }
177
-
178
- // colour
179
- @each $color in $palette-list {
180
- $i: index($palette-list, $color);
181
-
182
- .card-#{$color}-bg .card-main a {
183
- color: nth($palette-color-light, $i);
184
- }
185
- }
186
-
187
- .card-side {
188
- background-color: $white-bg;
189
- border-radius: 2px 0 0 2px;
190
- max-width: 33.33333%;
191
- padding-right: $grid-gutter;
192
- padding-left: $grid-gutter;
193
- &[href] {
194
- color: $black-text;
195
- &:focus,
196
- &:hover {
197
- background-color: $white-bg-dark;
198
- text-decoration: none;
199
- }
200
- }
201
- &.card-side-img {
202
- overflow: hidden;
203
- padding-right: 0;
204
- padding-left: 0;
205
- }
206
- &.card-side-right {
207
- border-radius: 0 2px 2px 0;
208
- order: 2;
209
- }
210
- }
211
-
212
- // colour
213
- .card-offwhite .card-side {
214
- background-color: $white-bg-dark;
215
- }
216
-
217
- @each $color in $palette-list {
218
- $i: index($palette-list, $color);
219
-
220
- .card-side {
221
- .card-#{$color} & {
222
- background-color: nth($palette-color, $i);
223
- color: $white;
224
- &[href] {
225
- &:focus,
226
- &:hover {
227
- background-color: nth($palette-color-dark-m, $i);
228
- }
229
- }
230
- }
231
- .card-#{$color}-bg & {
232
- background-color: nth($palette-color-dark-m, $i);
233
- &[href] {
234
- &:focus,
235
- &:hover {
236
- background-color: nth($palette-color-dark, $i);
237
- }
238
- }
239
- }
240
- }
241
- }
242
-
243
- .card-wrap {
244
- margin-top: $line-height;
245
- }
@@ -1,132 +0,0 @@
1
- .dropdown {
2
- position: relative;
3
- transition: z-index 0s 0.3s;
4
- &.open {
5
- transition: z-index 0s;
6
- z-index: ($content-base + 1);
7
- }
8
- [data-toggle="dropdown"] {
9
- cursor: pointer;
10
- }
11
- }
12
-
13
- .dropdown-inline {
14
- display: inline-block;
15
- }
16
-
17
- .dropdown-menu {
18
- background-color: $white;
19
- border: 1px solid $black-hint;
20
- border-radius: 0 2px 2px 2px;
21
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.15);
22
- list-style: none;
23
- margin: -1px 0 0 !important;
24
- min-width: 100%;
25
- opacity: 0;
26
- padding-top: ($line-height / 2) !important;
27
- padding-right: 0;
28
- padding-bottom: ($line-height / 2) !important;
29
- padding-left: 0;
30
- position: absolute;
31
- top: 100%;
32
- left: 0;
33
- transform: scale(0.25, 0);
34
- transform-origin: 0 0;
35
- transition: all 0.3s $timing;
36
- transition-property: opacity, transform;
37
- .dropdown.open & {
38
- opacity: 1;
39
- transform: scale(1, 1);
40
- }
41
- &.dropdown-menu-right,
42
- .dropdown.pull-right &,
43
- .nav.pull-right & {
44
- border-radius: 2px 0 2px 2px;
45
- // position
46
- right: 0;
47
- left: auto;
48
- transform-origin: 100% 0;
49
- }
50
- a,
51
- .a {
52
- color: $black-text;
53
- display: block;
54
- padding: ($line-height / 2) $grid-gutter;
55
- overflow: hidden;
56
- position: relative;
57
- text-align: left;
58
- text-overflow: ellipsis;
59
- white-space: nowrap;
60
- &:focus,
61
- &:hover {
62
- background-color: $white-bg;
63
- text-decoration: none;
64
- }
65
- }
66
- .active > a,
67
- .active > .a {
68
- background-color: $white-bg;
69
- }
70
- li {
71
- display: block;
72
- position: relative;
73
- }
74
- // no csstransform
75
- .no-csstransforms & {
76
- display: none;
77
- }
78
- .no-csstransforms .dropdown.open & {
79
- display: block;
80
- }
81
- }
82
-
83
- .dropdown-toggle {
84
- transition: background-color 0.3s $timing;
85
- .dropdown.open & {
86
- background-color: $black-bg;
87
- border-radius: 2px 2px 0 0;
88
- }
89
- }
90
-
91
- // colour
92
- @each $color in $palette-list {
93
- $i: index($palette-list, $color);
94
-
95
- .dropdown-toggle-#{$color} {
96
- .dropdown.open & {
97
- background-color: nth($palette-color-dark, $i);
98
- }
99
- }
100
- }
101
-
102
- .dropdown-toggle-btn {
103
- position: relative;
104
- z-index: 1;
105
- .dropdown.open & {
106
- background-color: $white;
107
- box-shadow: none;
108
- color: $black-text;
109
- }
110
- ~ .dropdown-menu {
111
- min-width: 101%;
112
- min-width: calc(100% + 2px);
113
- padding-top: ($btn-height + $line-height / 2) !important;
114
- // position
115
- top: ($line-height / -2);
116
- left: -1px;
117
- transform: scale(1, 0);
118
- &.dropdown-menu-right,
119
- .dropdown.pull-right &,
120
- .nav.pull-right & {
121
- // position
122
- right: -1px;
123
- left: auto;
124
- }
125
- }
126
- }
127
-
128
- .dropdown-wrap {
129
- margin-top: $line-height;
130
- margin-bottom: $line-height;
131
- @include clearfix();
132
- }