material-sass 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +2 -0
  3. data/app/assets/fonts/MaterialDesignIcon.eot +0 -0
  4. data/app/assets/fonts/MaterialDesignIcon.svg +772 -766
  5. data/app/assets/fonts/MaterialDesignIcon.ttf +0 -0
  6. data/app/assets/fonts/MaterialDesignIcon.woff +0 -0
  7. data/app/assets/javascripts/material.js +326 -128
  8. data/app/assets/javascripts/material/_.js +5 -9
  9. data/app/assets/javascripts/material/bootstrap.js +3 -0
  10. data/app/assets/javascripts/material/content.js +15 -14
  11. data/app/assets/javascripts/material/datepicker.js +1 -1
  12. data/app/assets/javascripts/material/dropdown.js +25 -9
  13. data/app/assets/javascripts/material/esc.js +1 -1
  14. data/app/assets/javascripts/material/footer.js +3 -1
  15. data/app/assets/javascripts/material/form-adv.js +1 -2
  16. data/app/assets/javascripts/material/get-target.js +8 -0
  17. data/app/assets/javascripts/material/header.js +37 -7
  18. data/app/assets/javascripts/material/menu.js +47 -12
  19. data/app/assets/javascripts/material/modal.js +10 -0
  20. data/app/assets/javascripts/material/sortable.js +1 -2
  21. data/app/assets/javascripts/material/tab.js +1 -1
  22. data/app/assets/javascripts/material/tile.js +57 -14
  23. data/app/assets/javascripts/material/toast.js +53 -42
  24. data/app/assets/javascripts/material/wave.js +7 -0
  25. data/app/assets/javascripts/material/webfont.js +33 -0
  26. data/app/assets/javascripts/material/winresize.js +19 -4
  27. data/app/assets/stylesheets/material/_code.scss +40 -43
  28. data/app/assets/stylesheets/material/_grid.scss +72 -74
  29. data/app/assets/stylesheets/material/_print.scss +83 -0
  30. data/app/assets/stylesheets/material/_reset.scss +104 -84
  31. data/app/assets/stylesheets/material/_utilities-responsive.scss +97 -0
  32. data/app/assets/stylesheets/material/{_utilitise.scss → _utilities.scss} +87 -29
  33. data/app/assets/stylesheets/material/_variable.scss +78 -77
  34. data/app/assets/stylesheets/material/addon/_material-design-icon.scss +6 -3050
  35. data/app/assets/stylesheets/material/addon/_waves.scss +51 -0
  36. data/app/assets/stylesheets/material/addon/material-design-icon/_core.scss +17 -0
  37. data/app/assets/stylesheets/material/addon/material-design-icon/_icons.scss +773 -0
  38. data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +10 -0
  39. data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +777 -0
  40. data/app/assets/stylesheets/material/base.scss +43 -10
  41. data/app/assets/stylesheets/material/element/_avatar.scss +23 -19
  42. data/app/assets/stylesheets/material/element/_breadcrumb.scss +27 -0
  43. data/app/assets/stylesheets/material/element/_button-float.scss +118 -48
  44. data/app/assets/stylesheets/material/element/_button.scss +56 -68
  45. data/app/assets/stylesheets/material/element/_card.scss +104 -50
  46. data/app/assets/stylesheets/material/element/_dropdown.scss +51 -32
  47. data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +123 -0
  48. data/app/assets/stylesheets/material/element/_form-adv-datepicker.scss +250 -227
  49. data/app/assets/stylesheets/material/element/_form-adv-label.scss +64 -0
  50. data/app/assets/stylesheets/material/element/_form-adv-switch.scss +76 -0
  51. data/app/assets/stylesheets/material/element/_form-adv-textarea.scss +4 -0
  52. data/app/assets/stylesheets/material/element/_form.scss +163 -126
  53. data/app/assets/stylesheets/material/element/_label.scss +22 -0
  54. data/app/assets/stylesheets/material/element/_modal.scss +25 -10
  55. data/app/assets/stylesheets/material/element/_nav.scss +3 -0
  56. data/app/assets/stylesheets/material/element/_progress.scss +504 -0
  57. data/app/assets/stylesheets/material/element/_tab.scss +18 -14
  58. data/app/assets/stylesheets/material/element/_table.scss +14 -43
  59. data/app/assets/stylesheets/material/element/_tile.scss +154 -113
  60. data/app/assets/stylesheets/material/element/_toast.scss +31 -24
  61. data/app/assets/stylesheets/material/mixin/_css3.scss +5 -0
  62. data/app/assets/stylesheets/material/mixin/_grid.scss +28 -24
  63. data/app/assets/stylesheets/material/mixin/_responsive.scss +1 -1
  64. data/app/assets/stylesheets/material/mixin/{_utilitise.scss → _utilities.scss} +4 -3
  65. data/app/assets/stylesheets/material/project.scss +8 -2
  66. data/app/assets/stylesheets/material/theme/_content.scss +33 -38
  67. data/app/assets/stylesheets/material/theme/_footer.scss +1 -7
  68. data/app/assets/stylesheets/material/theme/_header.scss +175 -8
  69. data/app/assets/stylesheets/material/theme/_menu.scss +267 -78
  70. data/lib/material-sass/engine.rb +1 -1
  71. data/lib/material-sass/version.rb +1 -1
  72. metadata +33 -48
  73. data/app/assets/fonts/FontAwesome.otf +0 -0
  74. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  75. data/app/assets/fonts/fontawesome-webfont.svg +0 -565
  76. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  77. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  78. data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
  79. data/app/assets/javascripts/material/btn.js +0 -11
  80. data/app/assets/stylesheets/material/_addon.scss +0 -2
  81. data/app/assets/stylesheets/material/_element.scss +0 -15
  82. data/app/assets/stylesheets/material/_mixin.scss +0 -4
  83. data/app/assets/stylesheets/material/_theme.scss +0 -4
  84. data/app/assets/stylesheets/material/_variable-color.scss +0 -6
  85. data/app/assets/stylesheets/material/addon/_font-awesome.scss +0 -18
  86. data/app/assets/stylesheets/material/addon/font-awesome/_animated.scss +0 -33
  87. data/app/assets/stylesheets/material/addon/font-awesome/_bordered-pulled.scss +0 -11
  88. data/app/assets/stylesheets/material/addon/font-awesome/_core.scss +0 -10
  89. data/app/assets/stylesheets/material/addon/font-awesome/_fixed-width.scss +0 -5
  90. data/app/assets/stylesheets/material/addon/font-awesome/_flipped-rotated.scss +0 -29
  91. data/app/assets/stylesheets/material/addon/font-awesome/_icon.scss +0 -593
  92. data/app/assets/stylesheets/material/addon/font-awesome/_icons.scss +0 -593
  93. data/app/assets/stylesheets/material/addon/font-awesome/_larger.scss +0 -22
  94. data/app/assets/stylesheets/material/addon/font-awesome/_list.scss +0 -21
  95. data/app/assets/stylesheets/material/addon/font-awesome/_mixins.scss +0 -25
  96. data/app/assets/stylesheets/material/addon/font-awesome/_path.scss +0 -12
  97. data/app/assets/stylesheets/material/addon/font-awesome/_stacked.scss +0 -29
  98. data/app/assets/stylesheets/material/addon/font-awesome/_variable.scss +0 -601
  99. data/app/assets/stylesheets/material/addon/font-awesome/_variables.scss +0 -602
  100. data/app/assets/stylesheets/material/element/_form-adv.scss +0 -277
@@ -4,262 +4,285 @@
4
4
  @include user-select(none);
5
5
  }
6
6
 
7
- // datepicker
8
- .picker__input {
9
- border-bottom-style: solid !important;
10
- color: $black-text !important;
11
- cursor: text !important;
12
- &.picker__input--active {
13
- border-bottom-color: $link-color;
14
- border-bottom-width: 2px;
7
+ .picker__box {
8
+ background-clip: padding-box;
9
+ background-color: $white;
10
+ border-radius: 4px;
11
+ outline: 0;
12
+ overflow: hidden;
13
+ vertical-align: middle;
14
+ @include box-shadow(0 1px 30px rgba(0, 0, 0, 0.5));
15
+ @include clearfix();
16
+ }
17
+
18
+ .picker__date-display {
19
+ background-color: $brand-color;
20
+ border-radius: 4px 4px 0 0;
21
+ color: $white;
22
+ // 992
23
+ @include responsive(md) {
24
+ border-radius: 4px 0 0 0;
25
+ float: left;
26
+ width: 50%;
15
27
  }
16
- }
28
+ }
17
29
 
18
- // datepicker element
19
- .picker__box {
20
- background-clip: padding-box;
21
- background-color: $white;
22
- border-radius: 4px;
23
- outline: 0;
24
- overflow: hidden;
25
- vertical-align: middle;
26
- @include box-shadow(0 1px 30px rgba(0, 0, 0, 0.5));
27
- @include clearfix();
30
+ .picker__day {
31
+ border-radius: 50%;
32
+ display: inline-block;
33
+ height: ($line-height * 1.5);
34
+ padding: ($line-height / 4) 0;
35
+ width: ($line-height * 1.5);
36
+ &:focus,
37
+ &:hover {
38
+ color: $link-color;
39
+ cursor: pointer;
28
40
  }
41
+ &.picker__day--selected {
42
+ background-color: $brand-color;
43
+ color: $white !important;
44
+ }
45
+ &.picker__day--today {
46
+ color: $brand-color;
47
+ }
48
+ }
29
49
 
30
- // calendar
31
- .picker__day {
32
- border-radius: 50%;
33
- height: ($line-height * 1.5);
34
- margin: ($line-height / 4);
35
- padding: ($line-height / 4) 0;
36
- width: ($line-height * 1.5);
37
- &:focus,
38
- &:hover {
39
- color: $link-color;
40
- cursor: pointer;
41
- }
42
- &.picker__day--selected {
43
- background-color: $brand-color;
44
- color: $white !important;
45
- }
46
- &.picker__day--today {
47
- color: $brand-color;
50
+ .picker__day-display {
51
+ font-size: $font-size-lg;
52
+ line-height: $line-height-lg;
53
+ padding: 0 $grid-gutter;
54
+ // 992
55
+ @include responsive(md) {
56
+ div {
57
+ font-size: 2em;
48
58
  }
49
59
  }
60
+ }
50
61
 
51
- .picker__day--outfocus {
52
- color: $white-bg-dark;
53
- }
62
+ .picker__day--outfocus {
63
+ color: $white-bg-dark;
64
+ }
54
65
 
55
- .picker__table {
56
- border-collapse: collapse;
57
- border-spacing: 0;
58
- margin: 0 ($grid-gutter / 2);
59
- table-layout: fixed;
60
- // 992
61
- @include responsive(md) {
62
- float: left;
63
- margin: 0;
64
- width: 50%;
65
- }
66
+ .picker__footer {
67
+ clear: both;
68
+ padding: ($line-height / 2) ($grid-gutter / 2);
69
+ button {
70
+ margin-left: ($grid-gutter / 2);
71
+ &:first-child {
72
+ margin-left: 0;
66
73
  }
67
-
68
- .picker__table td,
69
- .picker__table th {
70
- border: 0;
71
- font-size: floor($font-size * 0.9);
72
- line-height: $line-height;
73
- margin: 0;
74
- min-width: ($line-height * 2);
75
- padding: 0;
76
- text-align: center;
77
- vertical-align: middle;
74
+ }
75
+ // 480
76
+ @include responsive(xs) {
77
+ text-align: right;
78
78
  }
79
+ }
79
80
 
80
- .picker__weekday {
81
- color: $black-hint;
82
- font-weight: 300;
81
+ .picker__frame {
82
+ display: inline-block;
83
+ margin: ($line-height * 2) auto;
84
+ max-width: ($grid-gutter + $line-height * 1.5 * 7);
85
+ vertical-align: middle;
86
+ white-space: normal;
87
+ @include transform(scale(0, 0));
88
+ @include transition(all 0.3s $timing);
89
+ -webkit-transition-property: -webkit-transform;
90
+ transition-property: transform;
91
+ .picker--opened & {
92
+ @include transform(scale(1, 1));
93
+ }
94
+ // 480
95
+ @include responsive(xs) {
96
+ max-width: ($grid-gutter + $line-height * 1.75 * 7);
83
97
  }
84
-
85
- // footer
86
- .picker__footer {
87
- clear: both;
88
- padding: ($line-height / 2) ($grid-gutter / 2);
89
- text-align: right;
90
- button {
91
- margin-left: ($grid-gutter / 2);
92
- &:first-child {
93
- margin-left: 0;
94
- }
95
- }
98
+ // 992
99
+ @include responsive(md) {
100
+ max-width: (($grid-gutter + $line-height * 1.5 * 7) * 2);
96
101
  }
102
+ }
97
103
 
98
- // header
99
- .picker__header {
100
- margin: ($line-height / 2) ($grid-gutter / 2);
101
- position: relative;
102
- // 992
103
- @include responsive(md) {
104
- float: left;
105
- margin-top: ($line-height / 4);
106
- margin-right: 0;
107
- margin-left: 0;
108
- width: 50%;
109
- }
104
+ .picker__header {
105
+ margin: ($line-height / 2) ($grid-gutter / 2) ($line-height / 4);
106
+ position: relative;
107
+ // 992
108
+ @include responsive(md) {
109
+ float: left;
110
+ margin-top: ($line-height / 4);
111
+ margin-right: 0;
112
+ margin-left: 0;
113
+ width: 50%;
110
114
  }
115
+ }
111
116
 
112
- .picker__month,
113
- .picker__year {
114
- display: inline;
115
- margin-left: $grid-gutter;
116
- &:first-child {
117
- margin-left: 0;
118
- }
119
- }
117
+ .picker__holder {
118
+ overflow-x: hidden;
119
+ overflow-y: auto;
120
+ position: fixed;
121
+ top: 100%;
122
+ right: 0;
123
+ bottom: 0;
124
+ left: 0;
125
+ text-align: center;
126
+ white-space: nowrap;
127
+ width: 100%;
128
+ -webkit-overflow-scrolling: touch;
129
+ -ms-overflow-style: -ms-autohiding-scrollbar;
130
+ @include backface(hidden);
131
+ @include transition(background-color 0.3s $timing, top 0s linear 0.3s);
132
+ &:after {
133
+ content: "";
134
+ display: inline-block;
135
+ height: 100%;
136
+ vertical-align: middle;
137
+ width: 1px;
138
+ }
139
+ .picker--opened & {
140
+ background-color: rgba(0, 0, 0, 0.5);
141
+ // position
142
+ top: 0;
143
+ @include transition(background-color 0.3s $timing, top 0s linear 0s);
144
+ }
145
+ }
120
146
 
121
- .picker__nav--next,
122
- .picker__nav--prev {
123
- cursor: pointer;
124
- line-height: $line-height;
125
- margin-top: ($line-height / -2);
126
- padding: 0 $grid-gutter;
127
- position: absolute;
128
- top: 50%;
129
- &:focus,
130
- &:hover {
131
- color: $link-color;
132
- }
133
- }
147
+ .picker__input {
148
+ border-bottom-style: solid !important;
149
+ color: $black-text !important;
150
+ cursor: text !important;
151
+ &.picker__input--active {
152
+ border-bottom-color: $link-color;
153
+ border-bottom-width: 2px;
154
+ }
155
+ }
134
156
 
135
- .picker__nav--next {
136
- // position
137
- right: 0;
138
- }
157
+ .picker__month,
158
+ .picker__year {
159
+ display: inline;
160
+ margin-left: $grid-gutter;
161
+ &:first-child {
162
+ margin-left: 0;
163
+ }
164
+ }
139
165
 
140
- .picker__nav--prev {
141
- // position
142
- left: 0;
166
+ .picker__month-display {
167
+ font-size: $font-size-h3;
168
+ font-weight: 300;
169
+ line-height: $line-height-h3;
170
+ padding: ($line-height / 2) $grid-gutter 0;
171
+ text-transform: uppercase;
172
+ // 992
173
+ @include responsive(md) {
174
+ padding-top: $line-height;
175
+ padding-bottom: (($line-height * 1.5 * 6 + $line-height - $line-height-lg) / 2 - $line-height - $line-height-h3);
143
176
  }
177
+ }
144
178
 
145
- .picker__select--month,
146
- .picker__select--year {
147
- @extend .form-control;
148
- border-bottom: 0;
149
- display: inline-block;
150
- height: $line-height;
151
- margin-left: $grid-gutter;
152
- padding-top: 0;
153
- padding-bottom: 0;
154
- width: auto;
155
- &:first-child {
156
- margin-left: 0;
157
- }
158
- }
179
+ .picker__nav--next,
180
+ .picker__nav--prev {
181
+ cursor: pointer;
182
+ line-height: $line-height;
183
+ margin-top: ($line-height / -2);
184
+ padding: 0 $grid-gutter;
185
+ position: absolute;
186
+ top: 50%;
187
+ &:focus,
188
+ &:hover {
189
+ color: $link-color;
190
+ }
191
+ }
159
192
 
160
- @media only screen and (-webkit-min-device-pixel-ratio: 0) {
161
- select.picker__select--month,
162
- select.picker__select--year {
163
- background-position: 100% 50%;
164
- }
165
- }
193
+ .picker__nav--next {
194
+ // position
195
+ right: 0;
196
+ }
166
197
 
167
- // top date
168
- .picker__date-display {
169
- background-color: $brand-color;
170
- border-radius: 4px 4px 0 0;
171
- color: $white;
172
- // 992
173
- @include responsive(md) {
174
- border-radius: 4px 0 0 0;
175
- float: left;
176
- width: 50%;
177
- }
178
- }
179
-
180
- .picker__day-display {
181
- font-size: $font-size-lg;
182
- line-height: $line-height-lg;
183
- padding: 0 $grid-gutter;
184
- }
198
+ .picker__nav--prev {
199
+ // position
200
+ left: 0;
201
+ }
185
202
 
186
- .picker__month-display {
187
- font-size: $font-size-h3;
188
- font-weight: 300;
189
- line-height: $line-height-h3;
190
- padding: ($line-height / 2) $grid-gutter 0;
191
- text-transform: uppercase;
192
- // 992
193
- @include responsive(md) {
194
- padding-top: ($line-height * 2);
195
- padding-bottom: $line-height;
196
- }
197
- }
203
+ .picker__select--month,
204
+ .picker__select--year {
205
+ @extend .form-control;
206
+ border-bottom: 0;
207
+ display: inline-block;
208
+ height: $line-height;
209
+ margin-left: $grid-gutter;
210
+ padding-top: 0;
211
+ padding-bottom: 0;
212
+ width: auto;
213
+ &:first-child {
214
+ margin-left: 0;
215
+ }
216
+ }
198
217
 
199
- .picker__weekday-display {
200
- background-color: $brand-color-dark-m;
201
- border-radius: 4px 4px 0 0;
202
- padding: ($line-height / 4) $grid-gutter;
203
- }
218
+ @media only screen and (-webkit-min-device-pixel-ratio: 0) {
219
+ select.picker__select--month,
220
+ select.picker__select--year {
221
+ background-position: 100% 50%;
222
+ }
223
+ }
204
224
 
205
- .picker__year-display {
206
- color: $white-bg;
207
- font-size: $font-size-h3;
208
- font-weight: 300;
209
- line-height: $line-height-h3;
210
- padding: 0 $grid-gutter ($line-height / 2);
211
- // 992
212
- @include responsive(md) {
213
- padding-top: $line-height;
214
- padding-bottom: ($line-height * 2);
215
- }
225
+ .picker__table {
226
+ border-collapse: collapse;
227
+ border-spacing: 0;
228
+ margin: 0 ($grid-gutter / 2);
229
+ table-layout: fixed;
230
+ // 992
231
+ @include responsive(md) {
232
+ float: left;
233
+ margin: 0;
234
+ width: 50%;
216
235
  }
236
+ }
217
237
 
218
- // frame & holder
219
- .picker__frame {
220
- display: inline-block;
221
- margin: ($line-height * 2) auto;
222
- max-width: ($grid-gutter + $line-height * 14);
223
- vertical-align: middle;
224
- white-space: normal;
225
- @include transform(scale(0, 0));
226
- -webkit-transition: -webkit-transform 0.3s $timing 0s;
227
- transition: transform 0.3s $timing 0s;
228
- .picker--opened & {
229
- @include transform(scale(1, 1));
238
+ .picker__table td,
239
+ .picker__table th {
240
+ border: 0;
241
+ font-size: floor($font-size * 0.9);
242
+ line-height: $line-height;
243
+ margin: 0;
244
+ padding: 0;
245
+ text-align: center;
246
+ vertical-align: middle;
247
+ width: ($line-height * 1.5);
248
+ // 480
249
+ @include responsive(xs) {
250
+ width: ($line-height * 1.75);
230
251
  }
231
- // 992
232
- @include responsive(md) {
233
- max-width: (($grid-gutter + $line-height * 14) * 2);
252
+ // 992
253
+ @include responsive(md) {
254
+ width: ($line-height * 1.5);
255
+ &:first-child {
256
+ padding-left: ($grid-gutter / 2);
257
+ width: ($grid-gutter / 2 + $line-height * 1.5);
258
+ }
259
+ &:last-child {
260
+ padding-right: ($grid-gutter / 2);
261
+ width: ($grid-gutter / 2 + $line-height * 1.5);
234
262
  }
235
- }
236
-
237
- .picker__holder {
238
- overflow-x: hidden;
239
- overflow-y: auto;
240
- position: fixed;
241
- top: 100%;
242
- right: 0;
243
- bottom: 0;
244
- left: 0;
245
- text-align: center;
246
- white-space: nowrap;
247
- width: 100%;
248
- -webkit-backface-visibility: hidden;
249
- -webkit-overflow-scrolling: touch;
250
- -ms-overflow-style: -ms-autohiding-scrollbar;
251
- @include transition(background-color 0.3s $timing, top 0s linear 0.3s);
252
- &:after {
253
- content: '';
254
- display: inline-block;
255
- height: 100%;
256
- vertical-align: middle;
257
- width: 1px;
258
263
  }
259
- .picker--opened & {
260
- background-color: rgba(0, 0, 0, 0.5);
261
- // position
262
- top: 0;
263
- @include transition(background-color 0.3s $timing, top 0s linear 0s);
264
+ }
265
+
266
+ .picker__weekday {
267
+ color: $black-hint;
268
+ font-weight: 300;
269
+ }
270
+
271
+ .picker__weekday-display {
272
+ background-color: $brand-color-dark-m;
273
+ border-radius: 4px 4px 0 0;
274
+ padding: ($line-height / 4) $grid-gutter;
275
+ }
276
+
277
+ .picker__year-display {
278
+ color: $brand-color-light;
279
+ font-size: $font-size-h3;
280
+ font-weight: 300;
281
+ line-height: $line-height-h3;
282
+ padding: 0 $grid-gutter ($line-height / 2);
283
+ // 992
284
+ @include responsive(md) {
285
+ padding-top: (($line-height * 1.5 * 6 + $line-height - $line-height-lg) / 2 - $line-height - $line-height-h3);
286
+ padding-bottom: $line-height;
264
287
  }
265
- }
288
+ }