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
@@ -72,7 +72,7 @@ a {
72
72
  }
73
73
 
74
74
  &:focus {
75
- @include tab-focus;
75
+ @include mui-tab-focus();
76
76
  }
77
77
  }
78
78
 
@@ -15,23 +15,23 @@ abbr[title] {
15
15
 
16
16
  // headers
17
17
  h1 {
18
- @extend .mui-text-display1;
18
+ @extend .mui--text-display1;
19
19
  }
20
20
 
21
21
  h2 {
22
- @extend .mui-text-headline;
22
+ @extend .mui--text-headline;
23
23
  }
24
24
 
25
25
  h3 {
26
- @extend .mui-text-title;
26
+ @extend .mui--text-title;
27
27
  }
28
28
 
29
29
  h4 {
30
- @extend .mui-text-subhead;
30
+ @extend .mui--text-subhead;
31
31
  }
32
32
 
33
33
  h5 {
34
- @extend .mui-text-body2;
34
+ @extend .mui--text-body2;
35
35
  }
36
36
 
37
37
  h1, h2, h3 {
@@ -38,8 +38,7 @@ th {
38
38
  }
39
39
 
40
40
  // Bordered style
41
- &.mui-table-bordered > tbody > tr > td,
42
- &[data-mui-borders="true"] > tbody > tr > td {
41
+ &.mui-table--bordered > tbody > tr > td {
43
42
  border-bottom: 1px solid $mui-table-border-color;
44
43
  }
45
44
  }
@@ -2,7 +2,7 @@
2
2
  * MUI Tabs module
3
3
  */
4
4
 
5
- .mui-tabs {
5
+ .mui-tabs__bar {
6
6
  list-style: none;
7
7
  padding-left: 0;
8
8
  margin-bottom: 0;
@@ -24,13 +24,14 @@
24
24
  line-height: 48px;
25
25
  padding-left: 24px;
26
26
  padding-right: 24px;
27
+ user-select: none;
27
28
 
28
29
  &:hover {
29
30
  text-decoration: none;
30
31
  }
31
32
  }
32
33
 
33
- &.mui-is-active {
34
+ &.mui--is-active {
34
35
  border-bottom: 2px solid $mui-tab-border-color-active;
35
36
 
36
37
  > a {
@@ -43,8 +44,7 @@
43
44
  }
44
45
  }
45
46
 
46
- &.mui-tabs-justified,
47
- &[data-mui-justified="true"] {
47
+ &.mui-tabs__bar--justified {
48
48
  display: table;
49
49
  width: 100%;
50
50
  table-layout: fixed;
@@ -61,13 +61,11 @@
61
61
  }
62
62
  }
63
63
 
64
- .mui-tab-content {
65
- > .mui-tab-pane {
66
- display: none;
64
+ .mui-tabs__pane {
65
+ display: none;
67
66
 
68
- &.mui-is-active {
69
- display: block;
70
- }
67
+ &.mui--is-active {
68
+ display: block;
71
69
  }
72
70
  }
73
71
 
@@ -2,50 +2,50 @@
2
2
  * MUI Typography module
3
3
  */
4
4
 
5
- .mui-text-display4 {
5
+ .mui--text-display4 {
6
6
  @include mui-text("display4");
7
7
  }
8
8
 
9
- .mui-text-display3 {
9
+ .mui--text-display3 {
10
10
  @include mui-text("display3");
11
11
  }
12
12
 
13
- .mui-text-display2 {
13
+ .mui--text-display2 {
14
14
  @include mui-text("display2");
15
15
  }
16
16
 
17
- .mui-text-display1 {
17
+ .mui--text-display1 {
18
18
  @include mui-text("display1");
19
19
  }
20
20
 
21
- .mui-text-headline {
21
+ .mui--text-headline {
22
22
  @include mui-text("headline");
23
23
  }
24
24
 
25
- .mui-text-title {
25
+ .mui--text-title {
26
26
  @include mui-text("title");
27
27
  }
28
28
 
29
- .mui-text-subhead {
29
+ .mui--text-subhead {
30
30
  @include mui-text("subhead");
31
31
  }
32
32
 
33
- .mui-text-body2 {
33
+ .mui--text-body2 {
34
34
  @include mui-text("body2");
35
35
  }
36
36
 
37
- .mui-text-body1 {
37
+ .mui--text-body1 {
38
38
  @include mui-text("body1");
39
39
  }
40
40
 
41
- .mui-text-caption {
41
+ .mui--text-caption {
42
42
  @include mui-text("caption");
43
43
  }
44
44
 
45
- .mui-text-menu {
45
+ .mui--text-menu {
46
46
  @include mui-text("menu");
47
47
  }
48
48
 
49
- .mui-text-button {
49
+ .mui--text-button {
50
50
  @include mui-text("button");
51
51
  }
@@ -269,6 +269,3 @@ $mui-screen-xs-max: ($mui-screen-sm-min - 1);
269
269
  $mui-screen-sm-max: ($mui-screen-md-min - 1);
270
270
  $mui-screen-md-max: ($mui-screen-lg-min - 1);
271
271
 
272
- // for bootstrap
273
- $grid-gutter-width: $mui-grid-gutter-width;
274
- $grid-columns: $mui-grid-columns;
@@ -20,8 +20,7 @@
20
20
  }
21
21
 
22
22
  @mixin button-flat-variant($font-color, $bg-color-hover) {
23
- &.mui-btn-flat,
24
- &[data-mui-style="flat"] {
23
+ &.mui-btn--flat {
25
24
  color: $font-color;
26
25
  background-color: transparent;
27
26
 
@@ -1,61 +1,78 @@
1
1
  // Overrides bootstrap functions to add prfx support
2
2
 
3
- @mixin make-grid-columns($mui-i: 1, $mui-list: ".mui-col-xs-#{$mui-i}, .mui-col-sm-#{$mui-i}, .mui-col-md-#{$mui-i}, .mui-col-lg-#{$mui-i}") {
4
- @for $mui-i from (1 + 1) through $mui-grid-columns {
5
- $mui-list: "#{$mui-list}, .mui-col-xs-#{$mui-i}, .mui-col-sm-#{$mui-i}, .mui-col-md-#{$mui-i}, .mui-col-lg-#{$mui-i}";
3
+ @mixin mui-make-grid-columns($i: 1, $list: ".mui-col-xs-#{$i}, .mui-col-sm-#{$i}, .mui-col-md-#{$i}, .mui-col-lg-#{$i}") {
4
+ @for $i from (1 + 1) through $mui-grid-columns {
5
+ $list: "#{$list}, .mui-col-xs-#{$i}, .mui-col-sm-#{$i}, .mui-col-md-#{$i}, .mui-col-lg-#{$i}";
6
6
  }
7
- #{$mui-list} {
7
+
8
+ #{$list} {
8
9
  // Prevent columns from collapsing when empty
9
10
  min-height: 1px;
11
+
10
12
  // Inner gutter via padding
11
13
  padding-left: ($mui-grid-gutter-width / 2);
12
14
  padding-right: ($mui-grid-gutter-width / 2);
13
15
  }
14
16
  }
15
17
 
16
- @mixin float-grid-columns($mui-class, $mui-i: 1, $mui-list: ".mui-col-#{$mui-class}-#{$mui-i}") {
17
- @for $mui-i from (1 + 1) through $mui-grid-columns {
18
- $mui-list: "#{$mui-list}, .mui-col-#{$mui-class}-#{$mui-i}";
18
+ @mixin mui-float-grid-columns($class, $i: 1, $list: ".mui-col-#{$class}-#{$i}") {
19
+ @for $i from (1 + 1) through $mui-grid-columns {
20
+ $list: "#{$list}, .mui-col-#{$class}-#{$i}";
19
21
  }
20
- #{$mui-list} {
22
+
23
+ #{$list} {
21
24
  float: left;
22
25
  }
23
26
  }
24
27
 
25
- @mixin calc-grid-column($mui-index, $mui-class, $mui-type) {
26
- @if ($mui-type == width) and ($mui-index > 0) {
27
- .mui-col-#{$mui-class}-#{$mui-index} {
28
- width: percentage(($mui-index / $mui-grid-columns));
28
+ @mixin mui-calc-grid-column($i, $class, $type) {
29
+ @if ($type == 'width') and ($i > 0) {
30
+ .mui-col-#{$class}-#{$i} {
31
+ width: percentage(($i / $mui-grid-columns));
29
32
  }
30
33
  }
31
- @if ($mui-type == push) and ($mui-index > 0) {
32
- .mui-col-#{$mui-class}-push-#{$mui-index} {
33
- left: percentage(($mui-index / $mui-grid-columns));
34
+ @if ($type == 'push') and ($i > 0) {
35
+ .mui-col-#{$class}-push-#{$i} {
36
+ left: percentage(($i / $mui-grid-columns));
34
37
  }
35
38
  }
36
- @if ($mui-type == push) and ($mui-index == 0) {
37
- .mui-col-#{$mui-class}-push-0 {
39
+ @if ($type == 'push') and ($i == 0) {
40
+ .mui-col-#{$class}-push-0 {
38
41
  left: auto;
39
42
  }
40
43
  }
41
- @if ($mui-type == pull) and ($mui-index > 0) {
42
- .mui-col-#{$mui-class}-pull-#{$mui-index} {
43
- right: percentage(($mui-index / $mui-grid-columns));
44
+ @if ($type == 'pull') and ($i > 0) {
45
+ .mui-col-#{$class}-pull-#{$i} {
46
+ right: percentage(($i / $mui-grid-columns));
44
47
  }
45
48
  }
46
- @if ($mui-type == pull) and ($mui-index > 0) {
47
- .mui-col-#{$mui-class}-pull-#{$mui-index} {
48
- right: percentage(($mui-index / $mui-grid-columns));
49
+ @if ($type == 'pull') and ($i > 0) {
50
+ .mui-col-#{$class}-pull-#{$i} {
51
+ right: percentage(($i / $mui-grid-columns));
49
52
  }
50
53
  }
51
- @if ($mui-type == pull) and ($mui-index == 0) {
52
- .mui-col-#{$mui-class}-pull-0 {
54
+ @if ($type == 'pull') and ($i == 0) {
55
+ .mui-col-#{$class}-pull-0 {
53
56
  right: auto;
54
57
  }
55
58
  }
56
- @if ($mui-type == offset) {
57
- .mui-col-#{$mui-class}-offset-#{$mui-index} {
58
- margin-left: percentage(($mui-index / $mui-grid-columns));
59
+ @if ($type == 'offset') {
60
+ .mui-col-#{$class}-offset-#{$i} {
61
+ margin-left: percentage(($i / $mui-grid-columns));
59
62
  }
60
63
  }
61
64
  }
65
+
66
+ @mixin mui-loop-grid-columns($columns, $class, $type) {
67
+ @for $i from 0 through $columns {
68
+ @include mui-calc-grid-column($i, $class, $type);
69
+ }
70
+ }
71
+
72
+ @mixin mui-make-grid($class) {
73
+ @include mui-float-grid-columns($class);
74
+ @include mui-loop-grid-columns($mui-grid-columns, $class, 'width');
75
+ @include mui-loop-grid-columns($mui-grid-columns, $class, 'pull');
76
+ @include mui-loop-grid-columns($mui-grid-columns, $class, 'push');
77
+ @include mui-loop-grid-columns($mui-grid-columns, $class, 'offset');
78
+ }
@@ -8,27 +8,9 @@
8
8
  font-size: map-get($mui-styles, "font-size");
9
9
  line-height: map-get($mui-styles, "line-height");
10
10
 
11
- @if $mui-base-font-color == mui-color('white') {
12
- color: rgba(mui-color('white'), map-get($mui-styles, "alpha-white"));
13
- } @else {
14
- color: rgba($mui-base-font-color, map-get($mui-styles, "alpha-black"));
15
- }
16
-
17
11
  @if $mui-name == "button" {
18
12
  text-transform: uppercase;
19
13
  }
20
-
21
- &.mui-text-black {
22
- color: rgba(mui-color('black'), map-get($mui-styles, "alpha-black"));
23
- }
24
-
25
- &.mui-text-white {
26
- color: rgba(mui-color('white'), map-get($mui-styles, "alpha-white"));
27
- }
28
-
29
- &.mui-text-accent {
30
- color: rgba($mui-accent-color, map-get($mui-styles, "alpha-accent"));
31
- }
32
14
  }
33
15
 
34
16
 
@@ -36,97 +18,61 @@ $mui-mui-text-styles: (
36
18
  "display4": (
37
19
  "font-weight": 300,
38
20
  "font-size": 112px,
39
- "alpha-black": 0.54,
40
- "alpha-white": 0.70,
41
- "alpha-accent": 0.54,
42
21
  "line-height": 112px
43
22
  ),
44
23
  "display3": (
45
24
  "font-weight": 400,
46
25
  "font-size": 56px,
47
- "alpha-black": 0.54,
48
- "alpha-white": 0.70,
49
- "alpha-accent": 0.54,
50
26
  "line-height": 56px
51
27
  ),
52
28
  "display2": (
53
29
  "font-weight": 400,
54
30
  "font-size": 45px,
55
- "alpha-black": 0.54,
56
- "alpha-white": 0.70,
57
- "alpha-accent": 0.54,
58
31
  "line-height": 48px
59
32
  ),
60
33
  "display1": (
61
34
  "font-weight": 400,
62
35
  "font-size": 34px,
63
- "alpha-black": 0.54,
64
- "alpha-white": 0.70,
65
- "alpha-accent": 0.54,
66
36
  "line-height": 40px
67
37
  ),
68
38
  "headline": (
69
39
  "font-weight": 400,
70
40
  "font-size": 24px,
71
- "alpha-black": 0.87,
72
- "alpha-white": 1.00,
73
- "alpha-accent": 0.87,
74
41
  "line-height": 32px
75
42
  ),
76
43
  "title": (
77
44
  "font-weight": 400,
78
45
  "font-size": 20px,
79
- "alpha-black": 0.87,
80
- "alpha-white": 1.00,
81
- "alpha-accent": 0.87,
82
46
  "line-height": 28px
83
47
  ),
84
48
  "subhead": (
85
49
  "font-weight": 400,
86
50
  "font-size": 16px,
87
- "alpha-black": 0.87,
88
- "alpha-white": 1.00,
89
- "alpha-accent": 0.87,
90
51
  "line-height": 24px
91
52
  ),
92
53
  "body2": (
93
54
  "font-weight": 500,
94
55
  "font-size": 14px,
95
- "alpha-black": 0.87,
96
- "alpha-white": 1.00,
97
- "alpha-accent": 0.87,
98
56
  "line-height": 24px
99
57
  ),
100
58
  "body1": (
101
59
  "font-weight": 400,
102
60
  "font-size": 14px,
103
- "alpha-black": 0.87,
104
- "alpha-white": 1.00,
105
- "alpha-accent": 0.87,
106
61
  "line-height": 20px
107
62
  ),
108
63
  "caption": (
109
64
  "font-weight": 400,
110
65
  "font-size": 12px,
111
- "alpha-black": 0.54,
112
- "alpha-white": 0.70,
113
- "alpha-accent": 0.54,
114
66
  "line-height": 16px
115
67
  ),
116
68
  "menu": (
117
69
  "font-weight": 500,
118
70
  "font-size": 13px,
119
- "alpha-black": 0.87,
120
- "alpha-white": 1.00,
121
- "alpha-accent": 0.87,
122
71
  "line-height": 17px
123
72
  ),
124
73
  "button": (
125
74
  "font-weight": 500,
126
75
  "font-size": 14px,
127
- "alpha-black": 0.87,
128
- "alpha-white": 1.00,
129
- "alpha-accent": 0.87,
130
76
  "line-height": 18px
131
77
  )
132
78
  );
@@ -2,3 +2,44 @@
2
2
  animation-duration: 0.0001s;
3
3
  animation-name: mui-node-inserted;
4
4
  }
5
+
6
+ // Clearfix
7
+ //
8
+ // For modern browsers
9
+ // 1. The space content is one way to avoid an Opera bug when the
10
+ // contenteditable attribute is included anywhere else in the document.
11
+ // Otherwise it causes space to appear at the top and bottom of elements
12
+ // that are clearfixed.
13
+ // 2. The use of `table` rather than `block` is only necessary if using
14
+ // `:before` to contain the top-margins of child elements.
15
+ //
16
+ // Source: http://nicolasgallagher.com/micro-clearfix-hack/
17
+
18
+ @mixin mui-clearfix() {
19
+ &:before,
20
+ &:after {
21
+ content: " "; // 1
22
+ display: table; // 2
23
+ }
24
+ &:after {
25
+ clear: both;
26
+ }
27
+ }
28
+
29
+ @mixin mui-container-fixed($gutter: $mui-grid-gutter-width) {
30
+ @include mui-clearfix();
31
+
32
+ margin-right: auto;
33
+ margin-left: auto;
34
+ padding-left: ($gutter / 2);
35
+ padding-right: ($gutter / 2);
36
+ }
37
+
38
+ @mixin mui-tab-focus() {
39
+ // Default
40
+ outline: thin dotted;
41
+
42
+ // WebKit
43
+ outline: 5px auto -webkit-focus-ring-color;
44
+ outline-offset: -2px;
45
+ }