mui-sass 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +11 -0
  5. data/CHANGELOG.md +5 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +119 -0
  9. data/Rakefile +1 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +7 -0
  12. data/lib/mui-sass.rb +60 -0
  13. data/lib/mui/sass/engine.rb +13 -0
  14. data/lib/mui/sass/version.rb +5 -0
  15. data/mui-sass.gemspec +29 -0
  16. data/templates/project/manifest.rb +2 -0
  17. data/templates/project/styles.sass +1 -0
  18. data/vendor/assets/javascripts/mui.js +1593 -0
  19. data/vendor/assets/stylesheets/_mui.scss +27 -0
  20. data/vendor/assets/stylesheets/bootstrap-3.3.1/.bower.json +59 -0
  21. data/vendor/assets/stylesheets/bootstrap-3.3.1/LICENSE +21 -0
  22. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
  23. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_background-variant.scss +11 -0
  24. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
  25. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_buttons.scss +52 -0
  26. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
  27. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
  28. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_forms.scss +88 -0
  29. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
  30. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
  31. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
  32. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
  33. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_image.scss +33 -0
  34. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
  35. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_list-group.scss +31 -0
  36. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  37. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
  38. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
  39. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_pagination.scss +23 -0
  40. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_panels.scss +24 -0
  41. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
  42. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
  43. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  44. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
  45. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
  46. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
  47. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
  48. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +11 -0
  49. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
  50. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
  51. data/vendor/assets/stylesheets/mui/_appbar.scss +72 -0
  52. data/vendor/assets/stylesheets/mui/_buttons.scss +201 -0
  53. data/vendor/assets/stylesheets/mui/_colors.scss +348 -0
  54. data/vendor/assets/stylesheets/mui/_dividers.scss +25 -0
  55. data/vendor/assets/stylesheets/mui/_dropdowns.scss +90 -0
  56. data/vendor/assets/stylesheets/mui/_forms.scss +467 -0
  57. data/vendor/assets/stylesheets/mui/_grid.scss +29 -0
  58. data/vendor/assets/stylesheets/mui/_helpers.scss +284 -0
  59. data/vendor/assets/stylesheets/mui/_layout.scss +21 -0
  60. data/vendor/assets/stylesheets/mui/_mixins.scss +17 -0
  61. data/vendor/assets/stylesheets/mui/_overlay.scss +19 -0
  62. data/vendor/assets/stylesheets/mui/_panel.scss +14 -0
  63. data/vendor/assets/stylesheets/mui/_ripple.scss +55 -0
  64. data/vendor/assets/stylesheets/mui/_scaffolding.scss +110 -0
  65. data/vendor/assets/stylesheets/mui/_semantic-markup.scss +45 -0
  66. data/vendor/assets/stylesheets/mui/_tables.scss +44 -0
  67. data/vendor/assets/stylesheets/mui/_tabs.scss +75 -0
  68. data/vendor/assets/stylesheets/mui/_typography.scss +51 -0
  69. data/vendor/assets/stylesheets/mui/_variables.scss +256 -0
  70. data/vendor/assets/stylesheets/mui/mixins/_buttons.scss +58 -0
  71. data/vendor/assets/stylesheets/mui/mixins/_grid-framework.scss +61 -0
  72. data/vendor/assets/stylesheets/mui/mixins/_typography.scss +132 -0
  73. data/vendor/assets/stylesheets/mui/mixins/_util.scss +4 -0
  74. data/vendor/assets/stylesheets/mui/normalize-3.0.2.scss +427 -0
  75. metadata +173 -0
@@ -0,0 +1,29 @@
1
+ /**
2
+ * MUI Grid module
3
+ */
4
+
5
+ // row
6
+ .mui-row {
7
+ @include make-row;
8
+ }
9
+
10
+ // columns
11
+ @include make-grid-columns;
12
+
13
+ // extra small grid
14
+ @include make-grid(xs);
15
+
16
+ // small grid
17
+ @media (min-width: $mui-screen-sm-min) {
18
+ @include make-grid(sm);
19
+ }
20
+
21
+ // medium grid
22
+ @media (min-width: $mui-screen-md-min) {
23
+ @include make-grid(md);
24
+ }
25
+
26
+ // large grid
27
+ @media (min-width: $mui-screen-lg-min) {
28
+ @include make-grid(lg);
29
+ }
@@ -0,0 +1,284 @@
1
+ /**
2
+ * MUI Helpers module
3
+ */
4
+
5
+ // ============================================================================
6
+ // NODE-INSERTED
7
+ // ============================================================================
8
+
9
+ @keyframes mui-node-inserted {
10
+ from {opacity: 0.99;}
11
+ to {opacity: 1;}
12
+ }
13
+
14
+
15
+
16
+
17
+ // ============================================================================
18
+ // ANIMATION
19
+ // ============================================================================
20
+
21
+ .mui-notransition {
22
+ transition: none !important;
23
+ }
24
+
25
+
26
+
27
+
28
+ // ============================================================================
29
+ // CARET
30
+ // ============================================================================
31
+
32
+ .mui-caret {
33
+ display: inline-block;
34
+ width: 0;
35
+ height: 0;
36
+ margin-left: 2px;
37
+ vertical-align: middle;
38
+ border-top: $mui-caret-width solid;
39
+ border-right: $mui-caret-width solid transparent;
40
+ border-left: $mui-caret-width solid transparent;
41
+ }
42
+
43
+
44
+
45
+
46
+ // ============================================================================
47
+ // ALIGNMENT HELPERS
48
+ // ============================================================================
49
+
50
+ .mui-text-left { text-align: left !important; }
51
+ .mui-text-right { text-align: right !important; }
52
+ .mui-text-center { text-align: center !important; }
53
+ .mui-text-justify { text-align: justify !important; }
54
+ .mui-text-nowrap { white-space: nowrap !important; }
55
+
56
+ .mui-align-baseline { vertical-align: baseline !important; }
57
+ .mui-align-top { vertical-align: top !important; }
58
+ .mui-align-middle { vertical-align: middle !important; }
59
+ .mui-align-bottom { vertical-align: bottom !important; }
60
+
61
+
62
+
63
+
64
+ // ============================================================================
65
+ // LISTS
66
+ // ============================================================================
67
+
68
+ @mixin list-unstyled {
69
+ padding-left: 0;
70
+ list-style: none;
71
+ }
72
+
73
+ // [converter] extracted as `@mixin list-unstyled` for libsass compatibility
74
+ .mui-list-unstyled {
75
+ @include list-unstyled;
76
+ }
77
+
78
+ // Inline turns list items into inline-block
79
+ .mui-list-inline {
80
+ @include list-unstyled;
81
+ margin-left: -5px;
82
+
83
+ > li {
84
+ display: inline-block;
85
+ padding-left: 5px;
86
+ padding-right: 5px;
87
+ }
88
+ }
89
+
90
+
91
+
92
+
93
+ // ============================================================================
94
+ // DEPTH HELPERS
95
+ // ============================================================================
96
+
97
+ .mui-z1 {
98
+ box-shadow: 0 1px 3px rgba(mui-color('black'), 0.12),
99
+ 0 1px 2px rgba(mui-color('black'), 0.24);
100
+ }
101
+
102
+ .mui-z2 {
103
+ box-shadow: 0 3px 6px rgba(mui-color('black'), 0.16),
104
+ 0 3px 6px rgba(mui-color('black'), 0.23);
105
+ }
106
+
107
+ .mui-z3 {
108
+ box-shadow: 0 10px 20px rgba(mui-color('black'), 0.19),
109
+ 0 6px 6px rgba(mui-color('black'), 0.23);
110
+ }
111
+
112
+ .mui-z4 {
113
+ box-shadow: 0 14px 28px rgba(mui-color('black'), 0.25),
114
+ 0 10px 10px rgba(mui-color('black'), 0.22);
115
+ }
116
+
117
+ .mui-z5 {
118
+ box-shadow: 0 19px 38px rgba(mui-color('black'), 0.30),
119
+ 0 15px 12px rgba(mui-color('black'), 0.22);
120
+ }
121
+
122
+
123
+
124
+
125
+ // ============================================================================
126
+ // FLOAT HELPERS
127
+ // ============================================================================
128
+
129
+ .mui-clearfix {
130
+ @include clearfix;
131
+ }
132
+
133
+ .mui-pull-right {
134
+ float: right !important;
135
+ }
136
+
137
+ .mui-pull-left {
138
+ float: left !important;
139
+ }
140
+
141
+
142
+
143
+
144
+ // ============================================================================
145
+ // TOGGLE HELPERS
146
+ // ============================================================================
147
+
148
+ .mui-hide {
149
+ display: none !important;
150
+ }
151
+
152
+ .mui-show {
153
+ display: block !important;
154
+ }
155
+
156
+ .mui-invisible {
157
+ visibility: hidden;
158
+ }
159
+
160
+
161
+
162
+
163
+ // ============================================================================
164
+ // RESPONSIVE UTILITIES
165
+ // ============================================================================
166
+
167
+ .mui-visible-xs-block,
168
+ .mui-visible-xs-inline,
169
+ .mui-visible-xs-inline-block,
170
+ .mui-visible-sm-block,
171
+ .mui-visible-sm-inline,
172
+ .mui-visible-sm-inline-block,
173
+ .mui-visible-md-block,
174
+ .mui-visible-md-inline,
175
+ .mui-visible-md-inline-block,
176
+ .mui-visible-lg-block,
177
+ .mui-visible-lg-inline,
178
+ .mui-visible-lg-inline-block {
179
+ display: none !important;
180
+ }
181
+
182
+ @media (max-width: $mui-screen-xs-max) {
183
+ @include responsive-visibility('.mui-visible-xs');
184
+ }
185
+
186
+ .mui-visible-xs-block {
187
+ @media (max-width: $mui-screen-xs-max) {
188
+ display: block !important;
189
+ }
190
+ }
191
+
192
+ .mui-visible-xs-inline {
193
+ @media (max-width: $mui-screen-xs-max) {
194
+ display: inline !important;
195
+ }
196
+ }
197
+
198
+ .mui-visible-xs-inline-block {
199
+ @media (max-width: $mui-screen-xs-max) {
200
+ display: inline-block !important;
201
+ }
202
+ }
203
+
204
+ @media (min-width: $mui-screen-sm-min) and (max-width: $mui-screen-sm-max) {
205
+ @include responsive-visibility('.mui-visible-sm');
206
+ }
207
+
208
+ .mui-visible-sm-block {
209
+ @media (min-width: $mui-screen-sm-min) and (max-width: $mui-screen-sm-max) {
210
+ display: block !important;
211
+ }
212
+ }
213
+
214
+ .mui-visible-sm-inline {
215
+ @media (min-width: $mui-screen-sm-min) and (max-width: $mui-screen-sm-max) {
216
+ display: inline !important;
217
+ }
218
+ }
219
+
220
+ .mui-visible-sm-inline-block {
221
+ @media (min-width: $mui-screen-sm-min) and (max-width: $mui-screen-sm-max) {
222
+ display: inline-block !important;
223
+ }
224
+ }
225
+
226
+ @media (min-width: $mui-screen-md-min) and (max-width: $mui-screen-md-max) {
227
+ @include responsive-visibility('.mui-visible-md');
228
+ }
229
+
230
+ .mui-visible-md-block {
231
+ @media (min-width: $mui-screen-md-min) and (max-width: $mui-screen-md-max) {
232
+ display: block !important;
233
+ }
234
+ }
235
+
236
+ .mui-visible-md-inline {
237
+ @media (min-width: $mui-screen-md-min) and (max-width: $mui-screen-md-max) {
238
+ display: inline !important;
239
+ }
240
+ }
241
+
242
+ .mui-visible-md-inline-block {
243
+ @media (min-width: $mui-screen-md-min) and (max-width: $mui-screen-md-max) {
244
+ display: inline-block !important;
245
+ }
246
+ }
247
+
248
+ @media (min-width: $mui-screen-lg-min) {
249
+ @include responsive-visibility('.mui-visible-lg');
250
+ }
251
+
252
+ .mui-visible-lg-block {
253
+ @media (min-width: $mui-screen-lg-min) {
254
+ display: block !important;
255
+ }
256
+ }
257
+
258
+ .mui-visible-lg-inline {
259
+ @media (min-width: $mui-screen-lg-min) {
260
+ display: inline !important;
261
+ }
262
+ }
263
+
264
+ .mui-visible-lg-inline-block {
265
+ @media (min-width: $mui-screen-lg-min) {
266
+ display: inline-block !important;
267
+ }
268
+ }
269
+
270
+ @media (max-width: $mui-screen-xs-max) {
271
+ @include responsive-invisibility('.mui-hidden-xs');
272
+ }
273
+
274
+ @media (min-width: $mui-screen-sm-min) and (max-width: $mui-screen-sm-max) {
275
+ @include responsive-invisibility('.mui-hidden-sm');
276
+ }
277
+
278
+ @media (min-width: $mui-screen-md-min) and (max-width: $mui-screen-md-max) {
279
+ @include responsive-invisibility('.mui-hidden-md');
280
+ }
281
+
282
+ @media (min-width: $mui-screen-lg-min) {
283
+ @include responsive-invisibility('.mui-hidden-lg');
284
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * MUI Container module
3
+ */
4
+
5
+ .mui-container {
6
+ @include container-fixed;
7
+
8
+ @media (min-width: $mui-screen-sm-min) {
9
+ width: $mui-container-sm;
10
+ }
11
+ @media (min-width: $mui-screen-md-min) {
12
+ width: $mui-container-md;
13
+ }
14
+ @media (min-width: $mui-screen-lg-min) {
15
+ width: $mui-container-lg;
16
+ }
17
+ }
18
+
19
+ .mui-container-fluid {
20
+ @include container-fixed;
21
+ }
@@ -0,0 +1,17 @@
1
+ // Bootstrap
2
+ @import
3
+ "../bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/clearfix",
4
+ "../bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/grid",
5
+ "../bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/grid-framework",
6
+ "../bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/image",
7
+ "../bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/tab-focus",
8
+ "../bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/responsive-visibility",
9
+ "../bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/forms";
10
+
11
+ // Bootstrap override
12
+ @import "mixins/grid-framework";
13
+
14
+ // Utilities
15
+ @import "mixins/util";
16
+ @import "mixins/buttons";
17
+ @import "mixins/typography";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * MUI Overlay module
3
+ */
4
+
5
+ // For body
6
+ .mui-overlay-on {
7
+ overflow: hidden !important;
8
+ }
9
+
10
+ #mui-overlay {
11
+ position: fixed;
12
+ top: 0;
13
+ right: 0;
14
+ bottom: 0;
15
+ left: 0;
16
+ z-index: 99999999;
17
+ background-color: $mui-overlay-bg-color;
18
+ overflow: auto;
19
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * MUI Panel module
3
+ */
4
+
5
+ .mui-panel {
6
+ @include clearfix();
7
+
8
+ padding: $mui-panel-padding;
9
+ margin-bottom: $mui-base-line-height-computed;
10
+ border-radius: $mui-panel-border-radius;
11
+ background-color: $mui-panel-bg-color;
12
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16),
13
+ 0 0px 2px 0 rgba(0, 0, 0, 0.12);
14
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * MUI Ripple module
3
+ */
4
+
5
+ // ============================================================================
6
+ // RIPPLE
7
+ // ============================================================================
8
+ .mui-ripple-effect{
9
+ position: absolute;
10
+ border-radius: 50%;
11
+ pointer-events: none;
12
+ opacity: 0;
13
+ animation: mui-ripple-animation 2s;
14
+ }
15
+
16
+ @keyframes mui-ripple-animation {
17
+ from {
18
+ transform: scale(1);
19
+ opacity: 0.4;
20
+ }
21
+ to {
22
+ transform: scale(100);
23
+ opacity: 0;
24
+ }
25
+ }
26
+
27
+
28
+
29
+
30
+ // ============================================================================
31
+ // BUTTON-SPECIFIC STYLES
32
+ // ============================================================================
33
+ .mui-btn-default > .mui-ripple-effect {
34
+ background-color: $mui-btn-default-ripple-color;
35
+ }
36
+
37
+ .mui-btn-primary > .mui-ripple-effect {
38
+ background-color: $mui-btn-primary-ripple-color;
39
+ }
40
+
41
+ .mui-btn-danger > .mui-ripple-effect {
42
+ background-color: $mui-btn-danger-ripple-color;
43
+ }
44
+
45
+ .mui-btn-accent > .mui-ripple-effect {
46
+ background-color: $mui-btn-accent-ripple-color;
47
+ }
48
+
49
+ .mui-btn-flat > .mui-ripple-effect {
50
+ background-color: $mui-btn-flat-ripple-color;
51
+ }
52
+
53
+ .mui-btn-floating > .mui-ripple-effect {
54
+ background-color: $mui-btn-floating-ripple-color;
55
+ }