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
@@ -1,277 +0,0 @@
1
- // checkbox & radio
2
- .checkbox-adv {
3
- font-size: $font-size;
4
- line-height: $line-height;
5
- [class^="circle"] {
6
- display: block;
7
- height: $font-size;
8
- position: absolute;
9
- top: (($line-height - $font-size) / 2 - 1);
10
- left: 0;
11
- width: $font-size;
12
- }
13
- .circle {
14
- border: 2px solid $black-sec;
15
- @include transition(border-color 0.3s $timing);
16
- }
17
- &.disabled,
18
- fieldset[disabled] & {
19
- .circle {
20
- border-color: $black-hint !important;
21
- }
22
- }
23
- input.access-hide:focus ~ .circle {
24
- border-color: $black-text;
25
- }
26
- input.access-hide:checked ~ .circle {
27
- border-color: $brand-color;
28
- }
29
- .circle-check {
30
- background-color: transparent;
31
- @include transform(scale(0));
32
- @include transition(background-color 0.3s $timing, transform 0.3s $timing);
33
- &:after {
34
- background-color: $brand-color;
35
- border-radius: 50%;
36
- content: '';
37
- display: block;
38
- height: ($font-size * 5);
39
- position: absolute;
40
- top: ($font-size * -2);
41
- left: ($font-size * -2);
42
- width: ($font-size * 5);
43
- @include opacity(0);
44
- }
45
- }
46
- &.disabled,
47
- fieldset[disabled] & {
48
- .circle-check:after {
49
- background-color: $black-hint;
50
- }
51
- }
52
- input.access-hide:checked ~ .circle-check {
53
- @include transform(scale(0.5));
54
- &:after {
55
- @include animation(circle-check 0.6s);
56
- }
57
- }
58
- .circle-icon {
59
- background-color: transparent;
60
- color: transparent;
61
- @include transform(scale(0.5));
62
- @include transition(background-color 0.3s $timing, transform 0.3s $timing);
63
- }
64
- input.access-hide:checked ~ .circle-icon {
65
- background-color: $brand-color;
66
- color: $white;
67
- @include transform(scale(1));
68
- }
69
- &.disabled,
70
- fieldset[disabled] & {
71
- input.access-hide:checked ~ .circle-icon {
72
- background-color: $black-hint;
73
- }
74
- }
75
- }
76
-
77
- .radio-adv {
78
- @extend .checkbox-adv;
79
- [class^="circle"] {
80
- border-radius: 50%;
81
- }
82
- input.access-hide:checked ~ .circle-check {
83
- background-color: $brand-color;
84
- }
85
- &.disabled,
86
- fieldset[disabled] & {
87
- input.access-hide:checked ~ .circle-check {
88
- background-color: $black-hint;
89
- }
90
- }
91
- }
92
-
93
- // floating label
94
- .floating-label {
95
- color: $black-hint;
96
- cursor: text;
97
- font-size: $font-size;
98
- line-height: 1;
99
- margin: 0;
100
- padding: 0;
101
- position: absolute;
102
- top: (($input-height - $font-size) / 2);
103
- left: 0;
104
- @include transition(color 0.3s $timing, font-size 0.3s $timing, top 0.3s $timing);
105
- .form-group-label [class*="col-"] & {
106
- // position
107
- left: $grid-gutter;
108
- }
109
- .form-group-label.control-focus &,
110
- .form-group-label.control-highlight & {
111
- font-size: ($input-height - $line-height);
112
- // position
113
- top: (($input-height - $line-height) / -2);
114
- }
115
- .form-group-label.control-focus & {
116
- color: $link-color;
117
- }
118
- .form-group-label.form-group-alt & {
119
- color: $brand-color;
120
- }
121
- .form-group-label.form-group-blue & {
122
- color: $palette-blue;
123
- }
124
- .form-group-label.form-group-green & {
125
- color: $palette-green;
126
- }
127
- .form-group-label.form-group-purple & {
128
- color: $palette-purple;
129
- }
130
- .form-group-label.form-group-red & {
131
- color: $palette-red;
132
- }
133
- .form-group-label.form-group-yellow & {
134
- color: $palette-yellow;
135
- }
136
- }
137
-
138
- .form-group-label {
139
- position: relative;
140
- .form-control {
141
- @include placeholder(transparent);
142
- }
143
- }
144
-
145
- // icon label
146
- .form-icon-label {
147
- cursor: pointer;
148
- display: block;
149
- padding: (($input-height - $line-height) / 2) 0;
150
- .form-group-icon.control-focus & {
151
- color: $link-color;
152
- }
153
- .form-group-icon.form-group-blue & {
154
- color: $palette-blue;
155
- }
156
- .form-group-icon.form-group-green & {
157
- color: $palette-green;
158
- }
159
- .form-group-icon.form-group-purple & {
160
- color: $palette-purple;
161
- }
162
- .form-group-icon.form-group-red & {
163
- color: $palette-red;
164
- }
165
- .form-group-icon.form-group-yellow & {
166
- color: $palette-yellow;
167
- }
168
- }
169
-
170
- // switch
171
- .switch {
172
- position: relative;
173
- &.checkbox,
174
- &.radio {
175
- label {
176
- padding-left: ($font-size-h4 + ($font-size * 5 - $font-size-h4) / 4 + $grid-gutter / 2);
177
- }
178
- }
179
- }
180
-
181
- .switch-toggle {
182
- background-color: $black-hint;
183
- border-radius: ($font-size-h6 / 2);
184
- cursor: pointer;
185
- display: inline-block;
186
- height: $font-size-h6;
187
- margin-right: ($grid-gutter / 2);
188
- position: relative;
189
- vertical-align: middle;
190
- width: ($font-size-h4 + ($font-size * 5 - $font-size-h4) / 4);
191
- @include transition(background-color 0.3s $timing);
192
- &:after {
193
- background-color: $white;
194
- border-radius: 50%;
195
- content: '';
196
- display: block;
197
- height: $font-size-h4;
198
- position: absolute;
199
- top:(($font-size-h4 - $font-size-h6) / -2);
200
- left: 0;
201
- width: $font-size-h4;
202
- @include box-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
203
- @include transition(background-color 0.3s $timing, box-shadow 0.15s $timing, left 0.3s $timing);
204
- }
205
- input[type="checkbox"]:checked + &,
206
- input[type="radio"]:checked + & {
207
- background-color: $brand-color-light-m;
208
- &:after {
209
- background-color: $brand-color;
210
- // position
211
- left: (($font-size * 5 - $font-size-h4) / 4);
212
- }
213
- }
214
- .checkbox.switch &,
215
- .radio.switch & {
216
- position: absolute;
217
- top: (($line-height - $font-size-h6) / 2);
218
- left: 0;
219
- }
220
- .no-touch & {
221
- &:active:after {
222
- @include box-shadow(0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(0, 0, 0, 0.1));
223
- }
224
- }
225
- .no-touch input[type="checkbox"]:checked + &,
226
- .no-touch input[type="radio"]:checked + & {
227
- &:active:after {
228
- @include box-shadow(0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red($brand-color), green($brand-color), blue($brand-color), 0.25));
229
- }
230
- }
231
- .touch & {
232
- @include transition(background-color 0.3s $timing 0.15s);
233
- &:after {
234
- @include transition(background-color 0.3s $timing 0.15s, box-shadow 0.15s $timing, left 0.3s $timing 0.15s);
235
- }
236
- &.switch-toggle-on:after {
237
- @include box-shadow(0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red($brand-color), green($brand-color), blue($brand-color), 0.25));
238
- }
239
- }
240
- .touch input[type="checkbox"]:checked + &,
241
- .touch input[type="radio"]:checked + & {
242
- &.switch-toggle-on:after {
243
- @include box-shadow(0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(0, 0, 0, 0.1));
244
- }
245
- }
246
- }
247
-
248
- // textarea autosize
249
- .textarea-autosize {
250
- min-height: $input-height;
251
- overflow-x: hidden;
252
- }
253
-
254
- // ###
255
- @-webkit-keyframes circle-check {
256
- 0% {
257
- opacity: 0;
258
- }
259
- 25% {
260
- opacity: 0.25;
261
- }
262
- 100% {
263
- opacity: 0;
264
- }
265
- }
266
-
267
- @keyframes circle-check {
268
- 0% {
269
- opacity: 0;
270
- }
271
- 25% {
272
- opacity: 0.25;
273
- }
274
- 100% {
275
- opacity: 0;
276
- }
277
- }