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
@@ -0,0 +1,97 @@
1
+ .visible-lg-block,
2
+ .visible-lg-inline,
3
+ .visible-lg-inline-block,
4
+ .visible-md-block,
5
+ .visible-md-inline,
6
+ .visible-md-inline-block,
7
+ .visible-sm-block,
8
+ .visible-sm-inline,
9
+ .visible-sm-inline-block,
10
+ .visible-xs-block,
11
+ .visible-xs-inline,
12
+ .visible-xs-inline-block,
13
+ .visible-xx-block,
14
+ .visible-xx-inline,
15
+ .visible-xx-inline-block {
16
+ display: none !important;
17
+ }
18
+
19
+ // 0 - 479
20
+ @include responsive("(max-width: #{$screen-xs - 1})") {
21
+ .hidden-xx {
22
+ display: none !important;
23
+ }
24
+ .visible-xx-block {
25
+ display: block !important;
26
+ }
27
+ .visible-xx-inline {
28
+ display: inline !important;
29
+ }
30
+ .visible-xx-inline-block {
31
+ display: inline-block !important;
32
+ }
33
+ }
34
+
35
+ // 480 - 767
36
+ @include responsive("(min-width: #{$screen-xs}) and (max-width: #{$screen-sm - 1})") {
37
+ .hidden-xs {
38
+ display: none !important;
39
+ }
40
+ .visible-xs-block {
41
+ display: block !important;
42
+ }
43
+ .visible-xs-inline {
44
+ display: inline !important;
45
+ }
46
+ .visible-xs-inline-block {
47
+ display: inline-block !important;
48
+ }
49
+ }
50
+
51
+ // 768 - 991
52
+ @include responsive("(min-width: #{$screen-sm}) and (max-width: #{$screen-md - 1})") {
53
+ .hidden-sm {
54
+ display: none !important;
55
+ }
56
+ .visible-sm-block {
57
+ display: block !important;
58
+ }
59
+ .visible-sm-inline {
60
+ display: inline !important;
61
+ }
62
+ .visible-sm-inline-block {
63
+ display: inline-block !important;
64
+ }
65
+ }
66
+
67
+ // 992 - 1439
68
+ @include responsive("(min-width: #{$screen-md}) and (max-width: #{$screen-lg - 1})") {
69
+ .hidden-md {
70
+ display: none !important;
71
+ }
72
+ .visible-md-block {
73
+ display: block !important;
74
+ }
75
+ .visible-md-inline {
76
+ display: inline !important;
77
+ }
78
+ .visible-md-inline-block {
79
+ display: inline-block !important;
80
+ }
81
+ }
82
+
83
+ // 1440
84
+ @include responsive(lg) {
85
+ .hidden-lg {
86
+ display: none !important;
87
+ }
88
+ .visible-lg-block {
89
+ display: block !important;
90
+ }
91
+ .visible-lg-inline {
92
+ display: inline !important;
93
+ }
94
+ .visible-lg-inline-block {
95
+ display: inline-block !important;
96
+ }
97
+ }
@@ -34,6 +34,45 @@
34
34
  }
35
35
  }
36
36
 
37
+ .avoid-fout {
38
+ position: relative;
39
+ }
40
+
41
+ body.avoid-fout {
42
+ position: static;
43
+ }
44
+
45
+ .avoid-fout-indicator {
46
+ font-family: sans-serif !important;
47
+ height: 0;
48
+ overflow: hidden;
49
+ position: absolute;
50
+ top: 0;
51
+ left: 0;
52
+ text-align: center;
53
+ width: 0;
54
+ .avoid-fout > & {
55
+ background-color: $white;
56
+ height: 100%;
57
+ padding: $line-height $grid-gutter;
58
+ width: 100%;
59
+ z-index: ($top-base + 1);
60
+ @include box-shadow(0 -1px 0 $black-bg, 0 0 2px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.15));
61
+ @include opacity(1);
62
+ }
63
+ .avoid-fout-done > & {
64
+ height: 0;
65
+ padding: 0;
66
+ width: 0;
67
+ @include opacity(0);
68
+ @include transition(height 0s 0.3s, opacity 0.3s $timing, padding 0s 0.3s, width 0s 0.3s);
69
+ }
70
+ }
71
+
72
+ .avoid-fout-indicator-fixed {
73
+ position: fixed;
74
+ }
75
+
37
76
  .clearfix {
38
77
  @include clearfix();
39
78
  }
@@ -78,6 +117,15 @@
78
117
  }
79
118
  }
80
119
 
120
+ .iframe-seamless {
121
+ border: 0;
122
+ display: block;
123
+ height: 100%;
124
+ margin: 0;
125
+ padding: 0;
126
+ width: 100%;
127
+ }
128
+
81
129
  .img-responsive {
82
130
  @include img-responsive();
83
131
  }
@@ -163,6 +211,14 @@
163
211
  }
164
212
  }
165
213
 
214
+ .modal-scrollbar-measure {
215
+ height: 50px;
216
+ overflow: scroll;
217
+ position: absolute;
218
+ top: -99999px;
219
+ width: 50px;
220
+ }
221
+
166
222
  .no-overflow {
167
223
  overflow: hidden;
168
224
  }
@@ -177,16 +233,26 @@
177
233
  float: left;
178
234
  }
179
235
 
236
+ .pull-none {
237
+ float: none !important;
238
+ }
239
+
180
240
  .pull-right {
181
241
  float: right;
182
242
  }
183
243
 
184
- .scrollbar-measure {
185
- height: 50px;
186
- overflow: scroll;
187
- position: absolute;
188
- top: -99999px;
189
- width: 50px;
244
+ .text-break {
245
+ word-break: break-all;
246
+ -webkit-hyphens: auto;
247
+ -moz-hyphens: auto;
248
+ -ms-hyphens: auto;
249
+ hyphens: auto;
250
+ }
251
+
252
+ .text-lead {
253
+ font-size: $font-size-h4;
254
+ font-weight: 300;
255
+ line-height: $line-height-h4;
190
256
  }
191
257
 
192
258
  .text-overflow {
@@ -197,7 +263,7 @@
197
263
  white-space: nowrap;
198
264
  }
199
265
 
200
- // text alignment
266
+ // alignment
201
267
  .text-center {
202
268
  text-align: center;
203
269
  }
@@ -210,43 +276,35 @@
210
276
  text-align: right;
211
277
  }
212
278
 
213
- // text color
214
- .text-alt {
215
- color: $brand-color;
279
+ // color
280
+ .text-bg {
281
+ color: $black-bg;
216
282
  }
217
283
 
218
284
  .text-black {
219
- color: $black-text;
285
+ color: $black;
220
286
  }
221
287
 
222
- .text-blue {
223
- color: $palette-blue;
224
- }
225
-
226
- .text-green {
227
- color: $palette-green;
288
+ .text-default {
289
+ color: $black-text;
228
290
  }
229
291
 
230
292
  .text-hint {
231
293
  color: $black-hint;
232
294
  }
233
295
 
234
- .text-purple {
235
- color: $palette-purple;
236
- }
237
-
238
- .text-red {
239
- color: $palette-red;
240
- }
241
-
242
296
  .text-sec {
243
297
  color: $black-sec;
244
298
  }
245
299
 
246
- .text-yellow {
247
- color: $palette-yellow;
248
- }
249
-
250
300
  .text-white {
251
301
  color: $white;
302
+ }
303
+
304
+ @each $color in $palette-list {
305
+ $i: index($palette-list, $color);
306
+
307
+ .text-#{$color} {
308
+ color: nth($palette-color, $i);
309
+ }
252
310
  }
@@ -1,96 +1,97 @@
1
1
  // base
2
2
  $base: 8px;
3
+ $css-path: ".";
3
4
 
4
5
  // colour
5
6
  // basic colour
6
- // black
7
- $black: #000000;
8
- $black-bg: #e0e0e0;
9
- $black-hint: #9e9e9e;
10
- $black-sec: #616161;
11
- $black-text: #212121;
12
-
13
- // palette
14
- $palette-blue: #2196f3;
15
- $palette-blue-dark: #0d47a1;
16
- $palette-blue-dark-m: #1976d2;
17
- $palette-blue-light: #bbdefb;
18
- $palette-blue-light-m: #64b5f6;
19
-
20
- $palette-green: #4caf50;
21
- $palette-green-dark: #1b5e20;
22
- $palette-green-dark-m: #388e3c;
23
- $palette-green-light: #c8e6c9;
24
- $palette-green-light-m: #81c784;
25
-
26
- $palette-purple: #9c27b0;
27
- $palette-purple-dark: #4a148c;
28
- $palette-purple-dark-m: #7b1fa2;
29
- $palette-purple-light: #e1bee7;
30
- $palette-purple-light-m: #ba68c8;
31
-
32
- $palette-red: #f44336;
33
- $palette-red-dark: #b71c1c;
34
- $palette-red-dark-m: #d32f2f;
35
- $palette-red-light: #ffcdd2;
36
- $palette-red-light-m: #e57373;
37
-
38
- $palette-yellow: #ffc107;
39
- $palette-yellow-dark: #ff6f00;
40
- $palette-yellow-dark-m: #ffa000;
41
- $palette-yellow-light: #ffecb3;
42
- $palette-yellow-light-m: #ffd54f;
43
-
44
- // white
45
- $white: #ffffff;
46
- $white-bg: #f5f5f5;
47
- $white-bg-dark: #eeeeee;
48
- $white-bg-light: #fafafa;
7
+ $palette-blue: #2196f3;
8
+ $palette-blue-dark: #0d47a1;
9
+ $palette-blue-dark-m: #1976d2;
10
+ $palette-blue-light: #bbdefb;
11
+ $palette-blue-light-m: #64b5f6;
12
+
13
+ $palette-green: #8bc34a;
14
+ $palette-green-dark: #33691e;
15
+ $palette-green-dark-m: #689f38;
16
+ $palette-green-light: #dcedc8;
17
+ $palette-green-light-m: #aed581;
18
+
19
+ $palette-purple: #9c27b0;
20
+ $palette-purple-dark: #4a148c;
21
+ $palette-purple-dark-m: #7b1fa2;
22
+ $palette-purple-light: #e1bee7;
23
+ $palette-purple-light-m: #ba68c8;
24
+
25
+ $palette-red: #f44336;
26
+ $palette-red-dark: #b71c1c;
27
+ $palette-red-dark-m: #d32f2f;
28
+ $palette-red-light: #ffcdd2;
29
+ $palette-red-light-m: #e57373;
30
+
31
+ $palette-yellow: #ffc107;
32
+ $palette-yellow-dark: #ff6f00;
33
+ $palette-yellow-dark-m: #ffa000;
34
+ $palette-yellow-light: #ffecb3;
35
+ $palette-yellow-light-m: #ffd54f;
36
+
37
+ // black and white
38
+ $black: #000000;
39
+ $black-bg: #e0e0e0;
40
+ $black-hint: #9e9e9e;
41
+ $black-sec: #616161;
42
+ $black-text: #212121;
43
+
44
+ $white: #ffffff;
45
+ $white-bg: #f5f5f5;
46
+ $white-bg-dark: #eeeeee;
47
+ $white-bg-light: #fafafa;
49
48
 
50
49
  // brand colour
51
- @import "variable-color";
50
+ $brand-color: #4caf50;
51
+ $brand-color-dark: #1b5e20;
52
+ $brand-color-dark-m: #388e3c;
53
+ $brand-color-light: #c8e6c9;
54
+ $brand-color-light-m: #81c784;
52
55
 
53
56
  // list
54
- $palette-color: $brand-color, $palette-blue, $palette-green, $palette-purple, $palette-red, $palette-yellow;
55
- $palette-color-dark: $brand-color-dark, $palette-blue-dark, $palette-green-dark, $palette-purple-dark, $palette-red-dark, $palette-yellow-dark;
56
- $palette-color-dark-m: $brand-color-dark-m, $palette-blue-dark-m, $palette-green-dark-m, $palette-purple-dark-m, $palette-red-dark-m, $palette-yellow-dark-m;
57
- $palette-color-light: $brand-color-light, $palette-blue-light, $palette-green-light, $palette-purple-light, $palette-red-light, $palette-yellow-light;
57
+ $palette-color: $brand-color, $palette-blue, $palette-green, $palette-purple, $palette-red, $palette-yellow;
58
+ $palette-color-dark: $brand-color-dark, $palette-blue-dark, $palette-green-dark, $palette-purple-dark, $palette-red-dark, $palette-yellow-dark;
59
+ $palette-color-dark-m: $brand-color-dark-m, $palette-blue-dark-m, $palette-green-dark-m, $palette-purple-dark-m, $palette-red-dark-m, $palette-yellow-dark-m;
60
+ $palette-color-light: $brand-color-light, $palette-blue-light, $palette-green-light, $palette-purple-light, $palette-red-light, $palette-yellow-light;
58
61
  $palette-color-light-m: $brand-color-light-m, $palette-blue-light-m, $palette-green-light-m, $palette-purple-light-m, $palette-red-light-m, $palette-yellow-light-m;
59
- $palette-list: "alt", "blue", "green", "purple", "red", "yellow";
62
+ $palette-list: "alt", "blue", "green", "purple", "red", "yellow";
60
63
 
61
64
  // font
62
- $font-fam: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
63
- $font-fam-mono: Monaco, Menlo, Consolas, "Courier New", monospace;
65
+ $font-fam: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
66
+ $font-fam-mono: Monaco, Menlo, Consolas, "Courier New", monospace;
64
67
  $font-fam-serif: Georgia, serif;
65
68
 
66
- // base
67
- $base-font-size: ($base * 2); // 16px
68
- $base-line-height: ($base * 3); // 24px
69
-
70
69
  // font size
71
- $font-size: $base-font-size; // 16px
72
- $font-size-h1: ($base-font-size * 2.75); // 44px
73
- $font-size-h2: ($base-font-size * 2.25); // 36px
74
- $font-size-h3: ($base-font-size * 1.75); // 28px
75
- $font-size-h4: ($base-font-size * 1.25); // 20px
76
- $font-size-h5: ($base-font-size * 1); // 16px
77
- $font-size-h6: ($base-font-size * 0.75); // 12px
78
- $font-size-lg: ($base-font-size * 4); // 60px
70
+ $font-size: ($base * 2); // 16px
71
+ $font-size-h1: ($base * 5.5); // 44px
72
+ $font-size-h2: ($base * 4.5); // 36px
73
+ $font-size-h3: ($base * 3.5); // 28px
74
+ $font-size-h4: ($base * 2.5); // 20px
75
+ $font-size-h5: ($base * 2); // 16px
76
+ $font-size-h6: ($base * 1.5); // 12px
77
+ $font-size-lg: ($base * 7.5); // 60px
79
78
 
80
79
  // line height
81
- $line-height: $base-line-height; // 24px
82
- $line-height-h1: ($base-line-height * 2); // 48px
83
- $line-height-h2: ($base-line-height * 2); // 48px
84
- $line-height-h3: ($base-line-height * 2); // 48px
85
- $line-height-h4: ($base-line-height * 1); // 24px
86
- $line-height-h5: ($base-line-height * 1); // 24px
87
- $line-height-h6: ($base-line-height * 1); // 24px
88
- $line-height-lg: ($base-line-height * 3); // 72px
80
+ $line-height: ($base * 3); // 24px
81
+ $line-height-h1: ($base * 6); // 48px
82
+ $line-height-h2: ($base * 5); // 40px
83
+ $line-height-h3: ($base * 4); // 32px
84
+ $line-height-h4: ($base * 3.5); // 28px
85
+ $line-height-h5: ($base * 3); // 24px
86
+ $line-height-h6: ($base * 2.5); // 20px
87
+ $line-height-lg: ($base * 9); // 72px
89
88
 
90
89
  // other
91
- $btn-height: ($base-line-height * 1.5);
92
- $cell-height: ($base-line-height * 2);
93
- $input-height: ($base-line-height * 1.5);
90
+ $btn-height: (($base * 3) * 1.5); // 36px
91
+ $cell-height: (($base * 3) * 2); // 48px
92
+ $input-height: (($base * 3) * 1.5); // 36px
93
+
94
+ $fa-font-size-base: $font-size !default;
94
95
 
95
96
  // grid
96
97
  $grid-cols: 12;
@@ -110,7 +111,7 @@
110
111
  $timing: cubic-bezier(0.4, 0, 0.2, 1);
111
112
 
112
113
  // z-index
113
- $bottom-base: 10;
114
+ $bottom-base: 10;
114
115
  $content-base: 20;
115
- $header-base: 30;
116
- $top-base: 40;
116
+ $header-base: 30;
117
+ $top-base: 40;