mui-sass 0.1.23 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/lib/mui/sass/version.rb +1 -1
  4. data/vendor/assets/javascripts/mui.js +116 -119
  5. data/vendor/assets/stylesheets/mui/_appbar.scss +5 -5
  6. data/vendor/assets/stylesheets/mui/_buttons.scss +16 -23
  7. data/vendor/assets/stylesheets/mui/_colors.scss +0 -8
  8. data/vendor/assets/stylesheets/mui/_dividers.scss +4 -4
  9. data/vendor/assets/stylesheets/mui/_dropdowns.scss +5 -6
  10. data/vendor/assets/stylesheets/mui/_forms.scss +99 -113
  11. data/vendor/assets/stylesheets/mui/_grid.scss +9 -6
  12. data/vendor/assets/stylesheets/mui/_helpers.scss +117 -61
  13. data/vendor/assets/stylesheets/mui/_layout.scss +3 -4
  14. data/vendor/assets/stylesheets/mui/_mixins.scss +0 -13
  15. data/vendor/assets/stylesheets/mui/_overlay.scss +0 -5
  16. data/vendor/assets/stylesheets/mui/_panel.scss +1 -1
  17. data/vendor/assets/stylesheets/mui/_ripple.scss +5 -11
  18. data/vendor/assets/stylesheets/mui/_scaffolding.scss +1 -1
  19. data/vendor/assets/stylesheets/mui/_semantic-markup.scss +5 -5
  20. data/vendor/assets/stylesheets/mui/_tables.scss +1 -2
  21. data/vendor/assets/stylesheets/mui/_tabs.scss +8 -10
  22. data/vendor/assets/stylesheets/mui/_typography.scss +12 -12
  23. data/vendor/assets/stylesheets/mui/_variables.scss +0 -3
  24. data/vendor/assets/stylesheets/mui/mixins/_buttons.scss +1 -2
  25. data/vendor/assets/stylesheets/mui/mixins/_grid-framework.scss +45 -28
  26. data/vendor/assets/stylesheets/mui/mixins/_typography.scss +0 -54
  27. data/vendor/assets/stylesheets/mui/mixins/_util.scss +41 -0
  28. metadata +2 -32
  29. data/vendor/assets/stylesheets/bootstrap-3.3.1/LICENSE +0 -21
  30. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_alerts.scss +0 -14
  31. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -11
  32. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_border-radius.scss +0 -18
  33. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_buttons.scss +0 -52
  34. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_center-block.scss +0 -7
  35. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_clearfix.scss +0 -22
  36. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_forms.scss +0 -88
  37. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_gradients.scss +0 -58
  38. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -81
  39. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_grid.scss +0 -122
  40. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_hide-text.scss +0 -21
  41. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_image.scss +0 -33
  42. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_labels.scss +0 -12
  43. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_list-group.scss +0 -31
  44. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -10
  45. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +0 -9
  46. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_opacity.scss +0 -8
  47. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_pagination.scss +0 -23
  48. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_panels.scss +0 -24
  49. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +0 -10
  50. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +0 -8
  51. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_resize.scss +0 -6
  52. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +0 -21
  53. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_size.scss +0 -10
  54. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +0 -9
  55. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -28
  56. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -11
  57. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +0 -8
  58. data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +0 -222
@@ -329,14 +329,6 @@ $mui-colors: (
329
329
  ),
330
330
  "black": #000,
331
331
  "white": #FFF,
332
- "black-alpha-1": rgba(0, 0, 0, 0.12),
333
- "black-alpha-2": rgba(0, 0, 0, 0.26),
334
- "black-alpha-3": rgba(0, 0, 0, 0.54),
335
- "black-alpha-4": rgba(0, 0, 0, 0.87),
336
- "white-alpha-1": rgba(255, 255, 255, 0.12),
337
- "white-alpha-2": rgba(255, 255, 255, 0.30),
338
- "white-alpha-3": rgba(255, 255, 255, 0.70),
339
- "white-alpha-4": rgba(255, 255, 255, 1.00),
340
332
 
341
333
  "black-alpha-12": rgba(#000, 0.12),
342
334
  "black-alpha-26": rgba(#000, 0.26),
@@ -8,18 +8,18 @@
8
8
  background-color: $mui-divider-color;
9
9
  }
10
10
 
11
- .mui-divider-top {
11
+ .mui--divider-top {
12
12
  border-top: 1px solid $mui-divider-color;
13
13
  }
14
14
 
15
- .mui-divider-bottom {
15
+ .mui--divider-bottom {
16
16
  border-bottom: 1px solid $mui-divider-color;
17
17
  }
18
18
 
19
- .mui-divider-left {
19
+ .mui--divider-left {
20
20
  border-left: 1px solid $mui-divider-color;
21
21
  }
22
22
 
23
- .mui-divider-right {
23
+ .mui--divider-right {
24
24
  border-right: 1px solid $mui-divider-color;
25
25
  }
@@ -23,8 +23,8 @@
23
23
  // ============================================================================
24
24
  // MENU ELEMENT
25
25
  // ============================================================================
26
- .mui-dropdown-menu {
27
- @extend .mui-z1;
26
+ .mui-dropdown__menu {
27
+ @extend .mui--z1;
28
28
 
29
29
  position: absolute;
30
30
  top: 100%;
@@ -42,7 +42,7 @@
42
42
  background-clip: padding-box;
43
43
 
44
44
  // open state
45
- &.mui-is-open {
45
+ &.mui--is-open {
46
46
  display: block;
47
47
  }
48
48
 
@@ -65,7 +65,7 @@
65
65
  }
66
66
  }
67
67
 
68
- > .mui-is-disabled > a {
68
+ > .mui--is-disabled > a {
69
69
  &,
70
70
  &:hover,
71
71
  &:focus {
@@ -84,8 +84,7 @@
84
84
  }
85
85
 
86
86
  // right align
87
- .mui-dropdown-menu-right,
88
- .mui-dropdown-menu[data-mui-align="right"] {
87
+ .mui-dropdown__menu--right {
89
88
  left: auto;
90
89
  right: 0;
91
90
  }
@@ -25,13 +25,14 @@ legend {
25
25
  // override content-box in normalize.css
26
26
  input[type="search"] {
27
27
  box-sizing: border-box;
28
+ -webkit-appearance: none; // Search inputs in iOS
28
29
  }
29
30
 
30
31
  input[type="file"]:focus,
31
32
  input[type="radio"]:focus,
32
33
  input[type="checkbox"]:focus {
33
34
  // Focus for file, radio, and checkbox
34
- @include tab-focus;
35
+ @include mui-tab-focus();
35
36
  }
36
37
 
37
38
  input[type="radio"]:disabled,
@@ -42,69 +43,11 @@ input[type="checkbox"]:disabled {
42
43
 
43
44
 
44
45
  // ============================================================================
45
- // FORM-CONTROL
46
+ // TEXTFIELD
46
47
  // ============================================================================
47
48
 
48
- .mui-form-control {
49
- @include mui-node-inserted();
50
-
49
+ .mui-textfield {
51
50
  display: block;
52
- background-color: $mui-input-bg-color;
53
- color: $mui-input-font-color;
54
- border: none;
55
- border-bottom: 1px solid $mui-input-border-color;
56
- outline: none;
57
- height: $mui-input-height;
58
- width: 100%;
59
- font-size: $mui-input-font-size;
60
- padding: 0;
61
- box-shadow: none;
62
- border-radius: 0px;
63
-
64
- // Bugfix for firefox-android
65
- background-image: none;
66
-
67
- &:focus {
68
- border-color: $mui-input-border-color-focus;
69
- border-width: 2px;
70
- }
71
-
72
- &:disabled,
73
- &:read-only {
74
- cursor: $mui-cursor-disabled;
75
- background-color: $mui-input-bg-color-disabled;
76
- opacity: 1; // iOS fix for unreadable disabled content
77
- }
78
-
79
- &::placeholder {
80
- color: $mui-input-placeholder-color;
81
- opacity: 1; // Normalize firefox
82
- }
83
- }
84
-
85
- textarea.mui-form-control {
86
- height: auto; // Reset height for <textarea>s
87
- }
88
-
89
- input.mui-form-control:focus {
90
- // Compensate for height change on focus
91
- height: $mui-input-height + 1px;
92
- margin-bottom: -1px;
93
- }
94
-
95
- input[type="search"] {
96
- -webkit-appearance: none; // Search inputs in iOS
97
- }
98
-
99
-
100
-
101
- // ============================================================================
102
- // FORM-GROUP
103
- // ============================================================================
104
-
105
- .mui-form-group {
106
- display: block;
107
- width: 100%;
108
51
  padding-top: $xFormLabelLineHeight;
109
52
  margin-bottom: $mui-form-group-margin-bottom;
110
53
  position: relative;
@@ -128,7 +71,7 @@ input[type="search"] {
128
71
  white-space: nowrap;
129
72
  }
130
73
 
131
- > .mui-form-floating-label {
74
+ > .mui-textfield__label--floating {
132
75
  // Layout
133
76
  position: absolute;
134
77
  top: $xFormLabelLineHeight;
@@ -151,29 +94,29 @@ input[type="search"] {
151
94
  min-height: $mui-textarea-height;
152
95
  }
153
96
 
154
- > .mui-form-control {
97
+ > .mui-textfield__input {
155
98
  display: block;
156
99
  }
157
100
 
158
- > .mui-form-control:focus ~ label {
101
+ > .mui-textfield__input:focus ~ label {
159
102
  color: $mui-input-border-color-focus;
160
103
  }
104
+ }
161
105
 
162
- &[data-mui-wrap-label="true"] {
163
- display: table;
164
- padding-top: 0px;
106
+ .mui-textfield--wrap-label {
107
+ display: table;
108
+ padding-top: 0px;
165
109
 
166
- > label:not(.mui-form-floating-label) {
167
- display: table-header-group;
168
- position: static;
169
- white-space: normal;
170
- overflow-x: visible;
171
- }
110
+ > label:not(.mui-textfield__label--floating) {
111
+ display: table-header-group;
112
+ position: static;
113
+ white-space: normal;
114
+ overflow-x: visible;
172
115
  }
173
116
  }
174
117
 
175
118
  // Placed outside of form-group for performance
176
- .mui-form-control:focus ~ .mui-form-floating-label {
119
+ .mui-textfield__input:focus ~ .mui-textfield__label--floating {
177
120
  top: 0px;
178
121
  font-size: $mui-label-font-size;
179
122
  line-height: $xFormLabelLineHeight;
@@ -181,11 +124,11 @@ input[type="search"] {
181
124
  }
182
125
 
183
126
  // Placed outside of form-group for performance
184
- .mui-form-control:not(:focus) {
185
- &.mui-not-empty,
186
- &[value]:not([value=""]):not(.mui-empty):not(.mui-not-empty),
187
- &:not(:empty):not(.mui-empty):not(.mui-not-empty) {
188
- ~ .mui-form-floating-label {
127
+ .mui-textfield__input:not(:focus) {
128
+ &.mui--is-not-empty,
129
+ &[value]:not([value=""]):not(.mui--is-empty):not(.mui--is-not-empty),
130
+ &:not(:empty):not(.mui--is-empty):not(.mui--is-not-empty) {
131
+ ~ .mui-textfield__label--floating {
189
132
  color: $mui-label-font-color;
190
133
  font-size: $mui-label-font-size;
191
134
  line-height: $xFormLabelLineHeight;
@@ -195,6 +138,53 @@ input[type="search"] {
195
138
  }
196
139
  }
197
140
 
141
+ .mui-textfield__input {
142
+ @include mui-node-inserted();
143
+
144
+ display: block;
145
+ background-color: $mui-input-bg-color;
146
+ color: $mui-input-font-color;
147
+ border: none;
148
+ border-bottom: 1px solid $mui-input-border-color;
149
+ outline: none;
150
+ height: $mui-input-height;
151
+ width: 100%;
152
+ font-size: $mui-input-font-size;
153
+ padding: 0;
154
+ box-shadow: none;
155
+ border-radius: 0px;
156
+
157
+ // Bugfix for firefox-android
158
+ background-image: none;
159
+
160
+ &:focus {
161
+ border-color: $mui-input-border-color-focus;
162
+ border-width: 2px;
163
+ }
164
+
165
+ &:disabled,
166
+ &:read-only {
167
+ cursor: $mui-cursor-disabled;
168
+ background-color: $mui-input-bg-color-disabled;
169
+ opacity: 1; // iOS fix for unreadable disabled content
170
+ }
171
+
172
+ &::placeholder {
173
+ color: $mui-input-placeholder-color;
174
+ opacity: 1; // Normalize firefox
175
+ }
176
+ }
177
+
178
+ textarea.mui-textfield__input {
179
+ height: auto; // Reset height for <textarea>s
180
+ }
181
+
182
+ input.mui-textfield__input:focus {
183
+ // Compensate for height change on focus
184
+ height: $mui-input-height + 1px;
185
+ margin-bottom: -1px;
186
+ }
187
+
198
188
 
199
189
 
200
190
  // ============================================================================
@@ -218,9 +208,9 @@ input[type="search"] {
218
208
  }
219
209
 
220
210
  .mui-radio > label > input[type="radio"],
221
- .mui-radio-inline > label > input[type="radio"],
211
+ .mui-radio--inline > label > input[type="radio"],
222
212
  .mui-checkbox > label> input[type="checkbox"],
223
- .mui-checkbox-inline > label > input[type="checkbox"] {
213
+ .mui-checkbox--inline > label > input[type="checkbox"] {
224
214
  position: absolute;
225
215
  margin-left: -20px;
226
216
  margin-top: 4px;
@@ -232,8 +222,8 @@ input[type="search"] {
232
222
  margin-top: -5px;
233
223
  }
234
224
 
235
- .mui-radio-inline,
236
- .mui-checkbox-inline {
225
+ .mui-radio--inline,
226
+ .mui-checkbox--inline {
237
227
  // Radios and checkboxes on same line
238
228
  display: inline-block;
239
229
  padding-left: 20px;
@@ -251,8 +241,8 @@ input[type="search"] {
251
241
  }
252
242
  }
253
243
 
254
- .mui-radio-inline + .mui-radio-inline,
255
- .mui-checkbox-inline + .mui-checkbox-inline {
244
+ .mui-radio--inline + .mui-radio--inline,
245
+ .mui-checkbox--inline + .mui-checkbox--inline {
256
246
  // Space out consecutive inline controls
257
247
  margin-top: 0;
258
248
  margin-left: 10px;
@@ -265,6 +255,9 @@ input[type="search"] {
265
255
  // ============================================================================
266
256
 
267
257
  .mui-select {
258
+ display: block;
259
+ padding-top: $xFormLabelLineHeight;
260
+ margin-bottom: $mui-form-group-margin-bottom;
268
261
  position: relative;
269
262
 
270
263
  &:focus {
@@ -327,8 +320,8 @@ input[type="search"] {
327
320
  }
328
321
  }
329
322
 
330
- .mui-select-menu {
331
- @extend .mui-z1;
323
+ .mui-select__menu {
324
+ @extend .mui--z1;
332
325
 
333
326
  // Positioning
334
327
  position: absolute;
@@ -366,24 +359,16 @@ input[type="search"] {
366
359
  // INLINE-FORMS
367
360
  // ============================================================================
368
361
 
369
- .mui-form-inline {
362
+ .mui-form--inline {
370
363
  @media (min-width: $mui-screen-sm-min) {
371
- > * {
372
- // Bottom align children
373
- vertical-align: bottom;
374
- }
375
-
376
- > .mui-form-group {
364
+ > .mui-textfield {
377
365
  display: inline-block;
378
366
  margin-bottom: 0;
379
- vertical-align: middle;
380
367
  }
381
368
 
382
- > .mui-form-control,
383
- > .mui-form-group > .mui-form-group {
369
+ > .mui-textfield__input {
384
370
  display: inline-block;
385
371
  width: auto;
386
- vertical-align: middle;
387
372
  }
388
373
 
389
374
  > .mui-radio,
@@ -411,6 +396,7 @@ input[type="search"] {
411
396
  > .mui-btn {
412
397
  margin-bottom: 0;
413
398
  margin-top: 0;
399
+ vertical-align: bottom;
414
400
  }
415
401
  }
416
402
  }
@@ -421,14 +407,14 @@ input[type="search"] {
421
407
  // FORM-VALIDATION
422
408
  // ============================================================================
423
409
 
424
- .mui-form-control {
410
+ .mui-textfield__input {
425
411
  // Use thick colored border for invalid fields
426
412
  &:invalid:not(:focus) {
427
413
  &:not(:required),
428
- &:required.mui-not-empty,
429
- &:required.mui-empty.mui-dirty,
430
- &:required[value]:not([value=""]):not(.mui-empty):not(.mui-not-empty),
431
- &:required:not(:empty):not(.mui-empty):not(.mui-not-empty) {
414
+ &:required.mui--is-not-empty,
415
+ &:required.mui--is-empty.mui--is-dirty,
416
+ &:required[value]:not([value=""]):not(.mui--is-empty):not(.mui--is-not-empty),
417
+ &:required:not(:empty):not(.mui--is-empty):not(.mui--is-not-empty) {
432
418
  border-color: $mui-danger-color;
433
419
  border-width: 2px;
434
420
  }
@@ -436,31 +422,31 @@ input[type="search"] {
436
422
  }
437
423
 
438
424
  // Treat <input>'s different from <textarea>'s
439
- input.mui-form-control:invalid:not(:focus) {
425
+ input.mui-textfield__input:invalid:not(:focus) {
440
426
  &:not(:required),
441
- &:required.mui-not-empty,
442
- &:required.mui-empty.mui-dirty,
443
- &:required[value]:not([value=""]):not(.mui-empty):not(.mui-not-empty),
444
- &:required:not(:empty):not(.mui-empty):not(.mui-not-empty) {
427
+ &:required.mui--is-not-empty,
428
+ &:required.mui--is-empty.mui--is-dirty,
429
+ &:required[value]:not([value=""]):not(.mui--is-empty):not(.mui--is-not-empty),
430
+ &:required:not(:empty):not(.mui--is-empty):not(.mui--is-not-empty) {
445
431
  height: $mui-input-height + 1px;
446
432
  margin-bottom: -1px;
447
433
  }
448
434
  }
449
435
 
450
- .mui-form-group > .mui-form-control {
436
+ .mui-textfield > .mui-textfield__input {
451
437
  &:invalid:not(:focus) {
452
438
  // Set label color to danger color
453
439
  &:not(:required),
454
- &:required.mui-not-empty,
455
- &:required[value]:not([value=""]):not(.mui-empty):not(.mui-not-empty),
456
- &:required:not(:empty):not(.mui-empty):not(.mui-not-empty) {
440
+ &:required.mui--is-not-empty,
441
+ &:required[value]:not([value=""]):not(.mui--is-empty):not(.mui--is-not-empty),
442
+ &:required:not(:empty):not(.mui--is-empty):not(.mui--is-not-empty) {
457
443
  ~ label {
458
444
  color: $mui-danger-color;
459
445
  }
460
446
  }
461
447
 
462
448
  // Set label color to danger color for dirty, empty fields
463
- &:required.mui-empty.mui-dirty ~ label:not(.mui-form-floating-label) {
449
+ &:required.mui--is-empty.mui--is-dirty ~ label:not(.mui-textfield__label--floating) {
464
450
  color: $mui-danger-color;
465
451
  }
466
452
  }
@@ -4,26 +4,29 @@
4
4
 
5
5
  // row
6
6
  .mui-row {
7
- @include make-row;
7
+ @include mui-clearfix();
8
+
9
+ margin-left: ($mui-grid-gutter-width / -2);
10
+ margin-right: ($mui-grid-gutter-width / -2);
8
11
  }
9
12
 
10
13
  // columns
11
- @include make-grid-columns;
14
+ @include mui-make-grid-columns();
12
15
 
13
16
  // extra small grid
14
- @include make-grid(xs);
17
+ @include mui-make-grid('xs');
15
18
 
16
19
  // small grid
17
20
  @media (min-width: $mui-screen-sm-min) {
18
- @include make-grid(sm);
21
+ @include mui-make-grid('sm');
19
22
  }
20
23
 
21
24
  // medium grid
22
25
  @media (min-width: $mui-screen-md-min) {
23
- @include make-grid(md);
26
+ @include mui-make-grid('md');
24
27
  }
25
28
 
26
29
  // large grid
27
30
  @media (min-width: $mui-screen-lg-min) {
28
- @include make-grid(lg);
31
+ @include mui-make-grid('lg');
29
32
  }