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,226 @@
1
+ .form {
2
+ margin-top: $line-height;
3
+ margin-bottom: $line-height;
4
+ }
5
+
6
+ .form-control {
7
+ background-color: transparent;
8
+ background-image: none;
9
+ border: 0;
10
+ border-bottom: 1px solid $black-hint;
11
+ border-radius: 0;
12
+ color: $black-text;
13
+ display: block;
14
+ font-size: $font-size;
15
+ height: $input-height;
16
+ line-height: $line-height;
17
+ padding: (($input-height - $line-height) / 2) 0 (($input-height - $line-height) / 2 - 1);
18
+ width: 100%;
19
+ @include placeholder($black-hint);
20
+ @include transition(border-bottom-color 0.15s $timing);
21
+ &:focus {
22
+ border-bottom-color: $link-color;
23
+ border-bottom-width: 2px;
24
+ outline: 0;
25
+ padding-bottom: (($input-height - $line-height) / 2 - 2);
26
+ }
27
+ &[disabled],
28
+ &[readonly],
29
+ fieldset[disabled] & {
30
+ border-bottom-style: dashed;
31
+ color: $black-hint;
32
+ cursor: not-allowed;
33
+ opacity: 1;
34
+ }
35
+ &.form-control-inline {
36
+ display: inline-block;
37
+ vertical-align: middle;
38
+ width: auto;
39
+ }
40
+ @each $color in $palette-list {
41
+ $i: index($palette-list, $color);
42
+
43
+ .form-group-#{$color} & {
44
+ border-bottom-color: nth($palette-color, $i);
45
+ }
46
+ }
47
+ }
48
+
49
+ select.form-control {
50
+ -webkit-appearance: none;
51
+ @include responsive('-webkit-min-device-pixel-ratio: 0') {
52
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAkCAMAAACg5NohAAAAZlBMVEUAAABlZWXLy8vg4OB6enrX19fg4OCdnZ2KiopsbGzn5+dzc3Pt7e3GxsbPz89ubm7u7u5ycnLY2NiJiYmGhoZoaGjq6up/f3+WlpaGhoaZmZllZWVhYWFYWFhaWlpdXV1bW1tWVlaZeqNTAAAAHHRSTlMA+WVC31BEqMzyNekpcGDpKNxJzcjkL9CjwZ/yNlWBeQAAALBJREFUKM/NztkWwiAMRdFQoNparR2cGf//J8UFNdXEd8/rXrkAq9rLoIGt3Vkn9A8xJoiaSqeSJGskuXlJNs2sFRPjWo7lptzVVEoO7VyEWofvoEn8NTUUxuZo2KyCPjo2+wB9m7ZM01zB/9feN2zXEVS0bLEHZQ1b6EE2jhNvDsBbMBWkampepJtizNpi4UPyGrEimBbhLT4L2nLnzR6+ksnIGm7iGjXv8xq14bSWJwymLjvMk/6KAAAAAElFTkSuQmCC);
53
+ background-position: 100% (($input-height - 12) / 2 - 1);
54
+ background-repeat: no-repeat;
55
+ background-size: auto 12px;
56
+ padding-right: 12px;
57
+ &[multiple],
58
+ &[size] {
59
+ background-image: none;
60
+ padding-right: 0;
61
+ }
62
+ }
63
+ }
64
+
65
+ textarea.form-control {
66
+ height: auto;
67
+ }
68
+
69
+ .form-control-inverse {
70
+ color: $white;
71
+ @include placeholder($white-bg);
72
+ }
73
+
74
+ .form-control-static {
75
+ border-bottom: 1px solid $black-hint;
76
+ display: block;
77
+ font-size: $font-size;
78
+ font-weight: 400;
79
+ line-height: $line-height;
80
+ margin-top: 0;
81
+ margin-bottom: 0;
82
+ padding-top: (($input-height - $line-height) / 2);
83
+ padding-bottom: (($input-height - $line-height) / 2 - 1);
84
+ }
85
+
86
+ // checkbox & radio
87
+ .checkbox,
88
+ .radio {
89
+ display: block;
90
+ position: relative;
91
+ .form-group & {
92
+ margin-top: (($input-height - $line-height) / 2);
93
+ padding-bottom: (($input-height - $line-height) / 2);
94
+ }
95
+ label {
96
+ cursor: pointer;
97
+ margin: 0;
98
+ min-height: $font-size;
99
+ padding-left: $line-height;
100
+ }
101
+ &.disabled,
102
+ fieldset[disabled] & {
103
+ label {
104
+ color: $black-hint;
105
+ cursor: not-allowed;
106
+ }
107
+ }
108
+ }
109
+
110
+ .checkbox input[type="checkbox"],
111
+ .radio input[type="radio"] {
112
+ margin-left: ($line-height * -1);
113
+ position: absolute;
114
+ }
115
+
116
+ .checkbox-inline,
117
+ .radio-inline {
118
+ display: inline-block;
119
+ margin-right: $grid-gutter;
120
+ }
121
+
122
+ // group
123
+ .form-group {
124
+ margin-top: $line-height;
125
+ margin-bottom: $line-height;
126
+ }
127
+
128
+ .form-group-btn {
129
+ margin-bottom: $line-height;
130
+ .btn {
131
+ margin-top: $line-height;
132
+ margin-right: $grid-gutter;
133
+ }
134
+ }
135
+
136
+ // help
137
+ .form-help {
138
+ display: block;
139
+ font-size: $font-size-h6;
140
+ font-weight: 400;
141
+ margin-top: ($line-height / 2);
142
+ margin-bottom: ($line-height / 2);
143
+ position: relative;
144
+ }
145
+
146
+ .form-help-icon {
147
+ position: absolute;
148
+ top: (($line-height - $font-size-h6) / 2);
149
+ right: 0;
150
+ }
151
+
152
+ .form-help-msg {
153
+ padding-right: (18em / 14);
154
+ }
155
+
156
+ // label
157
+ .form-label {
158
+ display: block;
159
+ margin-top: ($line-height / 2);
160
+ @each $color in $palette-list {
161
+ $i: index($palette-list, $color);
162
+
163
+ .form-group-#{$color} & {
164
+ color: nth($palette-color, $i);
165
+ }
166
+ }
167
+ // 480
168
+ @include responsive(xs) {
169
+ [class*="col-xs"] > & {
170
+ @include form-label();
171
+ }
172
+ }
173
+ // 768
174
+ @include responsive(sm) {
175
+ [class*="col-sm"] > & {
176
+ @include form-label();
177
+ }
178
+ }
179
+ // 992
180
+ @include responsive(md) {
181
+ [class*="col-md"] > & {
182
+ @include form-label();
183
+ }
184
+ }
185
+ // 1440
186
+ @include responsive(lg) {
187
+ [class*="col-lg"] > & {
188
+ @include form-label();
189
+ }
190
+ }
191
+ }
192
+
193
+ .label {
194
+ margin-bottom: ($line-height / 2);
195
+ }
196
+
197
+ // legend
198
+ legend {
199
+ &[class*="col-xx-"] {
200
+ padding-left: ($grid-gutter / 2);
201
+ }
202
+ // 480
203
+ @include responsive(xs) {
204
+ &[class*="col-xs-"] {
205
+ padding-left: ($grid-gutter / 2);
206
+ }
207
+ }
208
+ // 768
209
+ @include responsive(sm) {
210
+ &[class*="col-sm-"] {
211
+ padding-left: ($grid-gutter / 2);
212
+ }
213
+ }
214
+ // 992
215
+ @include responsive(md) {
216
+ &[class*="col-md-"] {
217
+ padding-left: ($grid-gutter / 2);
218
+ }
219
+ }
220
+ // 1440
221
+ @include responsive(lg) {
222
+ &[class*="col-lg-"] {
223
+ padding-left: ($grid-gutter / 2);
224
+ }
225
+ }
226
+ }
@@ -0,0 +1,121 @@
1
+ .modal {
2
+ display: none;
3
+ overflow: hidden;
4
+ outline: 0;
5
+ position: fixed;
6
+ top: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ left: 0;
10
+ z-index: $top-base;
11
+ -webkit-overflow-scrolling: touch;
12
+ -ms-overflow-style: -ms-autohiding-scrollbar;
13
+ .modal-open & {
14
+ overflow-x: hidden;
15
+ overflow-y: auto;
16
+ }
17
+ }
18
+
19
+ .modal-backdrop {
20
+ background-color: $black;
21
+ position: fixed;
22
+ top: 0;
23
+ right: 0;
24
+ bottom: 0;
25
+ left: 0;
26
+ z-index: ($top-base - 1);
27
+ @include opacity(0);
28
+ @include transition(opacity 0.3s $timing);
29
+ &.fade.in {
30
+ @include opacity(0.5);
31
+ }
32
+ }
33
+
34
+ .modal-close {
35
+ color: $black-sec;
36
+ cursor: pointer;
37
+ float: right;
38
+ font-size: $font-size-h4;
39
+ line-height: $line-height-h4;
40
+ &:focus,
41
+ &:hover {
42
+ color: $link-color;
43
+ text-decoration: none;
44
+ }
45
+ }
46
+
47
+ .modal-content {
48
+ background-clip: padding-box;
49
+ background-color: $white;
50
+ border: 1px solid transparent;
51
+ border-radius: 4px;
52
+ outline: 0;
53
+ position: relative;
54
+ @include box-shadow(0 1px 30px rgba(0, 0, 0, 0.5));
55
+ .modal-uploader & {
56
+ height: 100%;
57
+ }
58
+ }
59
+
60
+ .modal-dialog {
61
+ margin: ($line-height * 2) $grid-gutter;
62
+ position: relative;
63
+ .modal.fade & {
64
+ @include transform(scale(0, 0));
65
+ -webkit-transition: -webkit-transform 0.3s $timing 0s;
66
+ transition: transform 0.3s $timing 0s;
67
+ }
68
+ .modal.fade.in & {
69
+ @include transform(scale(1, 1));
70
+ }
71
+ // 480
72
+ @include responsive(xs) {
73
+ &.modal-xs {
74
+ margin-right: auto;
75
+ margin-left: auto;
76
+ width: ($screen-xs - $grid-gutter * 2);
77
+ }
78
+ }
79
+ // 992
80
+ @include responsive(md) {
81
+ margin-right: auto;
82
+ margin-left: auto;
83
+ width: ($screen-md - $grid-gutter * 4);
84
+ }
85
+ // 1440
86
+ @include responsive(lg) {
87
+ width: ($screen-lg - $grid-gutter * 4);
88
+ }
89
+ }
90
+
91
+ .modal-footer {
92
+ padding-right: ($grid-gutter * 2);
93
+ padding-left: ($grid-gutter * 2);
94
+ .btn + .btn {
95
+ margin-left: $grid-gutter;
96
+ }
97
+ }
98
+
99
+ .modal-heading {
100
+ padding-top: $line-height;
101
+ padding-right: ($grid-gutter * 2);
102
+ padding-left: ($grid-gutter * 2);
103
+ position: relative;
104
+ }
105
+
106
+ .modal-inner {
107
+ padding-right: ($grid-gutter * 2);
108
+ padding-left: ($grid-gutter * 2);
109
+ }
110
+
111
+ .modal-open {
112
+ overflow: hidden;
113
+ }
114
+
115
+ .modal-title {
116
+ font-size: $font-size-h4;
117
+ line-height: $line-height-h4;
118
+ margin-top: 0;
119
+ margin-right: ($grid-gutter + 12);
120
+ margin-bottom: $line-height;
121
+ }
@@ -0,0 +1,40 @@
1
+ .nav {
2
+ list-style: none;
3
+ margin: $line-height 0;
4
+ padding: 0;
5
+ position: relative;
6
+ @include clearfix();
7
+ a,
8
+ .a {
9
+ display: block;
10
+ padding: ($line-height / 2) $grid-gutter;
11
+ position: relative;
12
+ &:focus,
13
+ &:hover {
14
+ text-decoration: none;
15
+ }
16
+ }
17
+ li {
18
+ display: block;
19
+ position: relative;
20
+ }
21
+ ul {
22
+ margin: 0;
23
+ padding: 0;
24
+ }
25
+ }
26
+
27
+ .nav-justified {
28
+ width: 100%;
29
+ > li {
30
+ display: table-cell !important;
31
+ float: none !important;
32
+ width: 1% !important;
33
+ }
34
+ }
35
+
36
+ .nav-list {
37
+ > li {
38
+ float: left;
39
+ }
40
+ }
@@ -0,0 +1,8 @@
1
+ .sortable-ghost {
2
+ @include opacity(0.5);
3
+ }
4
+
5
+ .sortable-handle {
6
+ cursor: move;
7
+ cursor: -webkit-grab;
8
+ }
@@ -0,0 +1,71 @@
1
+ .tab-nav {
2
+ border-bottom: 1px solid $black-hint;
3
+ margin-top: $line-height;
4
+ margin-bottom: $line-height;
5
+ position: relative;
6
+ text-align: center;
7
+ .nav {
8
+ margin-top: 0;
9
+ margin-bottom: -1px;
10
+ > li {
11
+ vertical-align: bottom;
12
+ > a {
13
+ color: $black-text;
14
+ padding-right: ($grid-gutter / 2);
15
+ padding-left: ($grid-gutter / 2);
16
+ text-transform: uppercase;
17
+ &:focus,
18
+ &:hover {
19
+ color: $link-color;
20
+ }
21
+ }
22
+ &.active > a {
23
+ color: $link-color;
24
+ }
25
+ }
26
+ }
27
+ }
28
+
29
+ .tab-nav-indicator {
30
+ background-color: $link-color;
31
+ height: 3px;
32
+ position: absolute;
33
+ bottom: -1px;
34
+ @include transition(left 0.3s $timing 0.15s, right 0.3s $timing);
35
+ &.reverse {
36
+ @include transition(left 0.3s $timing, right 0.3s $timing 0.15s);
37
+ }
38
+ }
39
+
40
+ .tab-pane {
41
+ display: none;
42
+ visibility: hidden;
43
+ &.active {
44
+ display: block;
45
+ visibility: visible;
46
+ }
47
+ }
48
+
49
+ // colour
50
+ @each $color in $palette-list {
51
+ $i: index($palette-list, $color);
52
+
53
+ .tab-nav-#{$color} {
54
+ .tab-nav-indicator {
55
+ background-color: nth($palette-color, $i);
56
+ }
57
+ .nav {
58
+ > li {
59
+ > a {
60
+ &:focus,
61
+ &:hover {
62
+ color: nth($palette-color, $i);
63
+ }
64
+ }
65
+ &.active > a {
66
+ color: nth($palette-color, $i);
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }