material-sass 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/.gitignore +22 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +59 -0
  5. data/Rakefile +2 -0
  6. data/app/assets/fonts/FontAwesome.otf +0 -0
  7. data/app/assets/fonts/MaterialDesignIcon.eot +0 -0
  8. data/app/assets/fonts/MaterialDesignIcon.svg +767 -0
  9. data/app/assets/fonts/MaterialDesignIcon.ttf +0 -0
  10. data/app/assets/fonts/MaterialDesignIcon.woff +0 -0
  11. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  12. data/app/assets/fonts/fontawesome-webfont.svg +565 -0
  13. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  14. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  15. data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
  16. data/app/assets/javascripts/material-sprockets.js +1 -0
  17. data/app/assets/javascripts/material.js +403 -0
  18. data/app/assets/javascripts/material/_.js +11 -0
  19. data/app/assets/javascripts/material/btn.js +11 -0
  20. data/app/assets/javascripts/material/content.js +45 -0
  21. data/app/assets/javascripts/material/datepicker.js +21 -0
  22. data/app/assets/javascripts/material/dropdown.js +15 -0
  23. data/app/assets/javascripts/material/esc.js +10 -0
  24. data/app/assets/javascripts/material/footer.js +4 -0
  25. data/app/assets/javascripts/material/form-adv.js +65 -0
  26. data/app/assets/javascripts/material/header.js +17 -0
  27. data/app/assets/javascripts/material/menu.js +39 -0
  28. data/app/assets/javascripts/material/sortable.js +10 -0
  29. data/app/assets/javascripts/material/tab.js +31 -0
  30. data/app/assets/javascripts/material/tile.js +43 -0
  31. data/app/assets/javascripts/material/toast.js +68 -0
  32. data/app/assets/javascripts/material/winresize.js +13 -0
  33. data/app/assets/stylesheets/material.scss +3 -0
  34. data/app/assets/stylesheets/material/_addon.scss +2 -0
  35. data/app/assets/stylesheets/material/_code.scss +54 -0
  36. data/app/assets/stylesheets/material/_element.scss +15 -0
  37. data/app/assets/stylesheets/material/_grid.scss +83 -0
  38. data/app/assets/stylesheets/material/_mixin.scss +4 -0
  39. data/app/assets/stylesheets/material/_reset.scss +403 -0
  40. data/app/assets/stylesheets/material/_theme.scss +4 -0
  41. data/app/assets/stylesheets/material/_utilitise.scss +252 -0
  42. data/app/assets/stylesheets/material/_variable-color.scss +6 -0
  43. data/app/assets/stylesheets/material/_variable.scss +116 -0
  44. data/app/assets/stylesheets/material/addon/_font-awesome.scss +18 -0
  45. data/app/assets/stylesheets/material/addon/_material-design-icon.scss +3053 -0
  46. data/app/assets/stylesheets/material/addon/font-awesome/_animated.scss +33 -0
  47. data/app/assets/stylesheets/material/addon/font-awesome/_bordered-pulled.scss +11 -0
  48. data/app/assets/stylesheets/material/addon/font-awesome/_core.scss +10 -0
  49. data/app/assets/stylesheets/material/addon/font-awesome/_fixed-width.scss +5 -0
  50. data/app/assets/stylesheets/material/addon/font-awesome/_flipped-rotated.scss +29 -0
  51. data/app/assets/stylesheets/material/addon/font-awesome/_icon.scss +593 -0
  52. data/app/assets/stylesheets/material/addon/font-awesome/_icons.scss +593 -0
  53. data/app/assets/stylesheets/material/addon/font-awesome/_larger.scss +22 -0
  54. data/app/assets/stylesheets/material/addon/font-awesome/_list.scss +21 -0
  55. data/app/assets/stylesheets/material/addon/font-awesome/_mixins.scss +25 -0
  56. data/app/assets/stylesheets/material/addon/font-awesome/_path.scss +12 -0
  57. data/app/assets/stylesheets/material/addon/font-awesome/_stacked.scss +29 -0
  58. data/app/assets/stylesheets/material/addon/font-awesome/_variable.scss +601 -0
  59. data/app/assets/stylesheets/material/addon/font-awesome/_variables.scss +602 -0
  60. data/app/assets/stylesheets/material/base.scss +16 -0
  61. data/app/assets/stylesheets/material/element/_avatar.scss +63 -0
  62. data/app/assets/stylesheets/material/element/_button-float.scss +145 -0
  63. data/app/assets/stylesheets/material/element/_button.scss +131 -0
  64. data/app/assets/stylesheets/material/element/_card.scss +203 -0
  65. data/app/assets/stylesheets/material/element/_dropdown.scss +116 -0
  66. data/app/assets/stylesheets/material/element/_form-adv-datepicker.scss +265 -0
  67. data/app/assets/stylesheets/material/element/_form-adv.scss +277 -0
  68. data/app/assets/stylesheets/material/element/_form.scss +226 -0
  69. data/app/assets/stylesheets/material/element/_modal.scss +121 -0
  70. data/app/assets/stylesheets/material/element/_nav.scss +40 -0
  71. data/app/assets/stylesheets/material/element/_sortable.scss +8 -0
  72. data/app/assets/stylesheets/material/element/_tab.scss +71 -0
  73. data/app/assets/stylesheets/material/element/_table.scss +77 -0
  74. data/app/assets/stylesheets/material/element/_tile.scss +154 -0
  75. data/app/assets/stylesheets/material/element/_toast.scss +61 -0
  76. data/app/assets/stylesheets/material/mixin/_css3.scss +52 -0
  77. data/app/assets/stylesheets/material/mixin/_grid.scss +82 -0
  78. data/app/assets/stylesheets/material/mixin/_responsive.scss +32 -0
  79. data/app/assets/stylesheets/material/mixin/_utilitise.scss +35 -0
  80. data/app/assets/stylesheets/material/project.scss +2 -0
  81. data/app/assets/stylesheets/material/theme/_content.scss +79 -0
  82. data/app/assets/stylesheets/material/theme/_footer.scss +23 -0
  83. data/app/assets/stylesheets/material/theme/_header.scss +103 -0
  84. data/app/assets/stylesheets/material/theme/_menu.scss +221 -0
  85. data/lib/material-sass.rb +26 -0
  86. data/lib/material-sass/engine.rb +12 -0
  87. data/lib/material-sass/version.rb +5 -0
  88. data/material-sass.gemspec +23 -0
  89. metadata +166 -0
@@ -0,0 +1,4 @@
1
+ @import "mixin/css3";
2
+ @import "mixin/grid";
3
+ @import "mixin/responsive";
4
+ @import "mixin/utilitise";
@@ -0,0 +1,403 @@
1
+ @import url(//fonts.googleapis.com/css?family=Roboto:300,400,400italic,700);
2
+
3
+ *,
4
+ *:after,
5
+ *:before {
6
+ @include box-sizing(border-box);
7
+ }
8
+
9
+ @-webkit-viewport {
10
+ width: device-width;
11
+ }
12
+ @-moz-viewport {
13
+ width: device-width;
14
+ }
15
+ @-ms-viewport {
16
+ width: device-width;
17
+ }
18
+ @-o-viewport {
19
+ width: device-width;
20
+ }
21
+ @viewport {
22
+ width: device-width;
23
+ }
24
+
25
+ // basic
26
+ article,
27
+ aside,
28
+ footer,
29
+ header,
30
+ nav,
31
+ section {
32
+ display: block;
33
+ }
34
+
35
+ audio {
36
+ display: inline-block;
37
+ max-width: 100%;
38
+ vertical-align: baseline;
39
+ }
40
+
41
+ body {
42
+ background-color: $white-bg-light;
43
+ background-image: none;
44
+ color: $black-text;
45
+ font-family: $font-fam;
46
+ font-size: $font-size;
47
+ font-weight: 400;
48
+ line-height: $line-height;
49
+ margin: 0;
50
+ padding: 0;
51
+ }
52
+
53
+ html {
54
+ font-family: sans-serif;
55
+ font-size: 100%;
56
+ min-height: 100%;
57
+ position: relative;
58
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
59
+ -webkit-text-size-adjust: 100%;
60
+ -ms-text-size-adjust: 100%;
61
+ }
62
+
63
+ svg:not(:root) {
64
+ overflow: hidden;
65
+ }
66
+
67
+ template,
68
+ [hidden] {
69
+ display: none;
70
+ }
71
+
72
+ video {
73
+ display: block;
74
+ max-width: 100%;
75
+ }
76
+
77
+ // form
78
+ button,
79
+ input,
80
+ optgroup,
81
+ select,
82
+ textarea {
83
+ color: inherit;
84
+ font: inherit;
85
+ margin: 0;
86
+ }
87
+
88
+ button,
89
+ input[type="button"],
90
+ input[type="reset"],
91
+ input[type="submit"] {
92
+ cursor: pointer;
93
+ -webkit-appearance: button;
94
+ }
95
+
96
+ button,
97
+ select {
98
+ text-transform: none;
99
+ }
100
+
101
+ button {
102
+ overflow: visible;
103
+ }
104
+
105
+ button[disabled],
106
+ input[disabled] {
107
+ cursor: default;
108
+ }
109
+
110
+ button::-moz-focus-inner,
111
+ input::-moz-focus-inner {
112
+ border: 0;
113
+ padding: 0;
114
+ }
115
+
116
+ fieldset {
117
+ border: 0;
118
+ margin: 0;
119
+ min-width: 0;
120
+ padding: 0;
121
+ & ~ fieldset {
122
+ margin-top: $line-height;
123
+ }
124
+ }
125
+
126
+ input {
127
+ line-height: normal;
128
+ }
129
+
130
+ input[type="checkbox"],
131
+ input[type="radio"] {
132
+ line-height: normal;
133
+ margin: 4px 0 0;
134
+ margin-top: 1px \9;
135
+ padding: 0;
136
+ }
137
+
138
+ input[type="color"] {
139
+ min-width: $line-height;
140
+ width: auto;
141
+ }
142
+
143
+ input[type="date"],
144
+ input[type="datetime-local"],
145
+ input[type="month"],
146
+ input[type="time"] {
147
+ line-height: $line-height;
148
+ line-height: 1 #{\0};
149
+ }
150
+
151
+ input[type="file"] {
152
+ display: block;
153
+ height: auto;
154
+ line-height: 1;
155
+ min-height: $input-height;
156
+ padding-top: (($input-height - $line-height) / 2);
157
+ padding-bottom: (($input-height - $line-height) / 2);
158
+ }
159
+
160
+ input[type="number"]::-webkit-inner-spin-button,
161
+ input[type="number"]::-webkit-outer-spin-button {
162
+ height: auto;
163
+ }
164
+
165
+ input[type="range"] {
166
+ display: block;
167
+ height: $input-height;
168
+ width: 100%;
169
+ }
170
+
171
+ input[type="search"] {
172
+ -webkit-appearance: none;
173
+ @include box-sizing(border-box);
174
+ }
175
+
176
+ input[type="search"]::-webkit-search-cancel-button,
177
+ input[type="search"]::-webkit-search-decoration {
178
+ -webkit-appearance: none;
179
+ }
180
+
181
+ label {
182
+ display: inline-block;
183
+ font-weight: 400;
184
+ margin: 0;
185
+ max-width: 100%;
186
+ }
187
+
188
+ legend {
189
+ border: 0;
190
+ color: $black-text;
191
+ display: block;
192
+ font-size: $font-size-h3;
193
+ font-weight: 400;
194
+ line-height: $line-height-h3;
195
+ margin: 0;
196
+ padding: 0;
197
+ }
198
+
199
+ optgroup {
200
+ font-weight: 700;
201
+ }
202
+
203
+ select[multiple],
204
+ select[size] {
205
+ height: auto;
206
+ }
207
+
208
+ textarea {
209
+ overflow: auto;
210
+ }
211
+
212
+ // heading
213
+ h1,
214
+ h2,
215
+ h3,
216
+ h4,
217
+ h5,
218
+ h6,
219
+ .h1,
220
+ .h2,
221
+ .h3,
222
+ .h4,
223
+ .h5,
224
+ .h6 {
225
+ color: inherit;
226
+ font-family: $font-fam;
227
+ font-weight: 700;
228
+ margin-top: ($line-height * 2);
229
+ margin-bottom: $line-height;
230
+ }
231
+
232
+ h1,
233
+ .h1 {
234
+ font-size: $font-size-h1;
235
+ line-height: $line-height-h1;
236
+ }
237
+
238
+ h2,
239
+ .h2 {
240
+ font-size: $font-size-h2;
241
+ line-height: $line-height-h2;
242
+ }
243
+
244
+ h3,
245
+ .h3 {
246
+ font-size: $font-size-h3;
247
+ line-height: $line-height-h3;
248
+ }
249
+
250
+ h4,
251
+ .h4 {
252
+ font-size: $font-size-h4;
253
+ line-height: $line-height-h4;
254
+ }
255
+
256
+ h5,
257
+ .h5 {
258
+ font-size: $font-size-h5;
259
+ line-height: $line-height-h5;
260
+ }
261
+
262
+ h6,
263
+ .h6 {
264
+ font-size: $font-size-h6;
265
+ line-height: $line-height-h6;
266
+ }
267
+
268
+ h1,
269
+ h2,
270
+ h3,
271
+ h4,
272
+ .h1,
273
+ .h2,
274
+ .h3,
275
+ .h4 {
276
+ small {
277
+ font-size: $font-size;
278
+ font-weight: 400;
279
+ }
280
+ }
281
+
282
+ // hr
283
+ hr,
284
+ .hr {
285
+ border: 0;
286
+ border-top: 1px solid $black-hint;
287
+ display: block;
288
+ height: 0;
289
+ margin-top: $line-height;
290
+ margin-bottom: $line-height;
291
+ @include box-sizing(content-box);
292
+ }
293
+
294
+ // image
295
+ img {
296
+ border: 0;
297
+ vertical-align: middle;
298
+ }
299
+
300
+ // link
301
+ a {
302
+ background-color: transparent;
303
+ background-image: none;
304
+ color: $link-color;
305
+ text-decoration: none;
306
+ &:focus,
307
+ &:hover {
308
+ color: $link-color-hover;
309
+ outline: 0;
310
+ text-decoration: underline;
311
+ }
312
+ }
313
+
314
+ // list
315
+ dd,
316
+ dt,
317
+ li {
318
+ line-height: $line-height;
319
+ }
320
+
321
+ dd {
322
+ margin: 0;
323
+ }
324
+
325
+ dl {
326
+ margin: $line-height 0;
327
+ }
328
+
329
+ dt {
330
+ font-weight: 700;
331
+ }
332
+
333
+ ol,
334
+ ul {
335
+ margin: $line-height 0;
336
+ padding: 0 0 0 ($grid-gutter * 2);
337
+ ol,
338
+ ul {
339
+ margin-top: 0;
340
+ margin-bottom: 0;
341
+ }
342
+ }
343
+
344
+ // table
345
+ table {
346
+ border-collapse: collapse;
347
+ border-spacing: 0;
348
+ }
349
+
350
+ td,
351
+ th {
352
+ padding: 0;
353
+ }
354
+
355
+ th {
356
+ text-align: left;
357
+ }
358
+
359
+ // text
360
+ abbr {
361
+ border-bottom: 1px dotted $black-hint;
362
+ cursor: help;
363
+ }
364
+
365
+ address {
366
+ font-size: $font-size;
367
+ font-style: normal;
368
+ font-weight: 400;
369
+ line-height: $line-height;
370
+ margin: $line-height 0;
371
+ }
372
+
373
+ b,
374
+ strong {
375
+ font-weight: 700;
376
+ }
377
+
378
+ p {
379
+ margin: $line-height 0;
380
+ }
381
+
382
+ small {
383
+ font-size: 75%;
384
+ line-height: 1;
385
+ }
386
+
387
+ sub,
388
+ sup {
389
+ font-size: 80%;
390
+ line-height: 0;
391
+ position: relative;
392
+ vertical-align: baseline;
393
+ }
394
+
395
+ sub {
396
+ // position
397
+ bottom: -0.25em;
398
+ }
399
+
400
+ sup {
401
+ // position
402
+ top: -0.5em;
403
+ }
@@ -0,0 +1,4 @@
1
+ @import "theme/content";
2
+ @import "theme/footer";
3
+ @import "theme/header";
4
+ @import "theme/menu";
@@ -0,0 +1,252 @@
1
+ .a {
2
+ background-color: transparent;
3
+ border: 0;
4
+ display: inline;
5
+ color: $link-color;
6
+ -webkit-appearance: none;
7
+ &:focus,
8
+ &:hover {
9
+ color: $link-color-hover;
10
+ outline: 0;
11
+ text-decoration: underline;
12
+ }
13
+ }
14
+
15
+ .access-hide {
16
+ border: 0;
17
+ clip: rect(0, 0, 0, 0);
18
+ height: 1px;
19
+ margin: -1px;
20
+ overflow: hidden;
21
+ padding: 0;
22
+ position: absolute;
23
+ width: 1px;
24
+ &.focusable {
25
+ &:active,
26
+ &:focus {
27
+ clip: auto;
28
+ height: auto;
29
+ margin: 0;
30
+ overflow: visible;
31
+ position: static;
32
+ width: auto;
33
+ }
34
+ }
35
+ }
36
+
37
+ .clearfix {
38
+ @include clearfix();
39
+ }
40
+
41
+ .collapse {
42
+ display: none;
43
+ &.in {
44
+ display: block;
45
+ }
46
+ }
47
+
48
+ .collapsed-hide {
49
+ display: inline;
50
+ .collapsed & {
51
+ display: none;
52
+ }
53
+ }
54
+
55
+ .collapsed-show {
56
+ display: none;
57
+ .collapsed & {
58
+ display: inline;
59
+ }
60
+ }
61
+
62
+ .collapsible-region {
63
+ overflow: hidden;
64
+ }
65
+
66
+ .collapsing {
67
+ height: 0;
68
+ overflow: hidden;
69
+ position: relative;
70
+ @include transition(height 0.3s $timing);
71
+ }
72
+
73
+ .fade {
74
+ @include opacity(0);
75
+ @include transition(opacity 0.3s $timing);
76
+ &.in {
77
+ @include opacity(1);
78
+ }
79
+ }
80
+
81
+ .img-responsive {
82
+ @include img-responsive();
83
+ }
84
+
85
+ .list-clear {
86
+ list-style: none;
87
+ padding-left: 0;
88
+ }
89
+
90
+ .list-inline {
91
+ @extend .list-clear;
92
+ margin-left: ($grid-gutter / -2);
93
+ > li {
94
+ display: inline-block;
95
+ padding-right: ($grid-gutter / 2);
96
+ padding-left: ($grid-gutter / 2);
97
+ }
98
+ }
99
+
100
+ .margin-bottom {
101
+ margin-bottom: $line-height !important;
102
+ }
103
+
104
+ .margin-bottom-half {
105
+ margin-bottom: ($line-height / 2) !important;
106
+ }
107
+
108
+ .margin-left {
109
+ margin-left: $grid-gutter !important;
110
+ }
111
+
112
+ .margin-left-half {
113
+ margin-left: ($grid-gutter / 2) !important;
114
+ }
115
+
116
+ .margin-no {
117
+ margin: 0 !important;
118
+ }
119
+
120
+ .margin-no-bottom {
121
+ margin-bottom: 0 !important;
122
+ }
123
+
124
+ .margin-no-left {
125
+ margin-left: 0 !important;
126
+ }
127
+
128
+ .margin-no-right {
129
+ margin-right: 0 !important;
130
+ }
131
+
132
+ .margin-no-top {
133
+ margin-top: 0 !important;
134
+ }
135
+
136
+ .margin-right {
137
+ margin-right: $grid-gutter !important;
138
+ }
139
+
140
+ .margin-right-half {
141
+ margin-right: ($grid-gutter / 2) !important;
142
+ }
143
+
144
+ .margin-top {
145
+ margin-top: $line-height !important;
146
+ }
147
+
148
+ .margin-top-half {
149
+ margin-top: ($line-height / 2) !important;
150
+ }
151
+
152
+ .media,
153
+ .media-inner {
154
+ overflow: hidden;
155
+ }
156
+
157
+ .media-object {
158
+ &.pull-left {
159
+ margin-right: $grid-gutter;
160
+ }
161
+ &.pull-right {
162
+ margin-left: $grid-gutter;
163
+ }
164
+ }
165
+
166
+ .no-overflow {
167
+ overflow: hidden;
168
+ }
169
+
170
+ .p {
171
+ display: block;
172
+ margin-top: $line-height;
173
+ margin-bottom: $line-height;
174
+ }
175
+
176
+ .pull-left {
177
+ float: left;
178
+ }
179
+
180
+ .pull-right {
181
+ float: right;
182
+ }
183
+
184
+ .scrollbar-measure {
185
+ height: 50px;
186
+ overflow: scroll;
187
+ position: absolute;
188
+ top: -99999px;
189
+ width: 50px;
190
+ }
191
+
192
+ .text-overflow {
193
+ @include text-overflow();
194
+ }
195
+
196
+ .text-nowrap {
197
+ white-space: nowrap;
198
+ }
199
+
200
+ // text alignment
201
+ .text-center {
202
+ text-align: center;
203
+ }
204
+
205
+ .text-left {
206
+ text-align: left;
207
+ }
208
+
209
+ .text-right {
210
+ text-align: right;
211
+ }
212
+
213
+ // text color
214
+ .text-alt {
215
+ color: $brand-color;
216
+ }
217
+
218
+ .text-black {
219
+ color: $black-text;
220
+ }
221
+
222
+ .text-blue {
223
+ color: $palette-blue;
224
+ }
225
+
226
+ .text-green {
227
+ color: $palette-green;
228
+ }
229
+
230
+ .text-hint {
231
+ color: $black-hint;
232
+ }
233
+
234
+ .text-purple {
235
+ color: $palette-purple;
236
+ }
237
+
238
+ .text-red {
239
+ color: $palette-red;
240
+ }
241
+
242
+ .text-sec {
243
+ color: $black-sec;
244
+ }
245
+
246
+ .text-yellow {
247
+ color: $palette-yellow;
248
+ }
249
+
250
+ .text-white {
251
+ color: $white;
252
+ }