material-sass 4.0.0.alpha6 → 4.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +36 -8
  4. data/Rakefile +16 -3
  5. data/app/assets/javascripts/material-sprockets.js +6 -1
  6. data/app/assets/javascripts/material.js +654 -417
  7. data/app/assets/javascripts/material.min.js +1 -0
  8. data/app/assets/javascripts/material/addons/picker.date.js +234 -0
  9. data/app/assets/javascripts/material/addons/picker.js +172 -0
  10. data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
  11. data/app/assets/javascripts/material/addons/waves.js +127 -0
  12. data/app/assets/javascripts/material/components/floating-label.js +92 -0
  13. data/app/assets/javascripts/material/components/navdrawer.js +353 -0
  14. data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
  15. data/app/assets/javascripts/material/components/tab-switch.js +148 -0
  16. data/app/assets/javascripts/material/components/util.js +133 -0
  17. data/app/assets/javascripts/material/initializers/picker.js +171 -0
  18. data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
  19. data/app/assets/javascripts/material/initializers/waves.js +13 -0
  20. data/app/assets/stylesheets/material/_colours.scss +324 -0
  21. data/app/assets/stylesheets/material/_functions.scss +65 -0
  22. data/app/assets/stylesheets/material/_mixins.scss +23 -23
  23. data/app/assets/stylesheets/material/_print.scss +102 -0
  24. data/app/assets/stylesheets/material/_utilities.scss +21 -17
  25. data/app/assets/stylesheets/material/_variables.scss +13 -42
  26. data/app/assets/stylesheets/material/base/_base.scss +420 -5
  27. data/app/assets/stylesheets/material/base/_grid.scss +34 -33
  28. data/app/assets/stylesheets/material/base/_typography.scss +165 -174
  29. data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
  30. data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
  31. data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
  32. data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
  33. data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
  34. data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
  35. data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
  36. data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
  37. data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
  38. data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
  39. data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
  40. data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
  41. data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
  42. data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
  43. data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
  44. data/app/assets/stylesheets/material/material.scss +75 -62
  45. data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
  46. data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
  47. data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
  48. data/app/assets/stylesheets/material/material/_button.scss +133 -189
  49. data/app/assets/stylesheets/material/material/_card.scss +300 -248
  50. data/app/assets/stylesheets/material/material/_chip.scss +65 -64
  51. data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
  52. data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
  53. data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
  54. data/app/assets/stylesheets/material/material/_menu.scss +308 -228
  55. data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
  56. data/app/assets/stylesheets/material/material/_picker.scss +157 -155
  57. data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
  58. data/app/assets/stylesheets/material/material/_progress.scss +180 -115
  59. data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
  60. data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
  61. data/app/assets/stylesheets/material/material/_tab.scss +74 -93
  62. data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
  63. data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
  64. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
  65. data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
  66. data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
  67. data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
  68. data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
  69. data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
  70. data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
  71. data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
  72. data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
  73. data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
  74. data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
  75. data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
  76. data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
  77. data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
  78. data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
  79. data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
  80. data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
  81. data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
  82. data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
  83. data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
  84. data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
  85. data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
  86. data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
  87. data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
  88. data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
  89. data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
  90. data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
  91. data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
  92. data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
  93. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
  94. data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
  95. data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
  96. data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
  97. data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
  98. data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
  99. data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
  100. data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
  101. data/lib/material-sass/version.rb +1 -1
  102. data/material-sass.gemspec +3 -3
  103. metadata +26 -21
  104. data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
  105. data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
  106. data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
  107. data/app/assets/javascripts/material/addons/pickadate.js +0 -7
  108. data/app/assets/javascripts/material/addons/wave.js +0 -5
  109. data/app/assets/javascripts/material/src/floating-label.js +0 -91
  110. data/app/assets/javascripts/material/src/navdrawer.js +0 -352
  111. data/app/assets/javascripts/material/src/tab-switch.js +0 -133
  112. data/app/assets/javascripts/material/src/util.js +0 -138
  113. data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
  114. data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
  115. data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
  116. data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
  117. data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
  118. data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
  119. data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -1,40 +1,73 @@
1
+ // Utilities for common `display` values
2
+
1
3
  @each $breakpoint in map-keys($grid-breakpoints) {
2
4
  @include media-breakpoint-up($breakpoint) {
3
5
  $infix: breakpoint-infix($breakpoint);
4
6
 
7
+ .d#{$infix}-block {
8
+ display: block !important;
9
+ }
10
+
11
+ .d#{$infix}-flex {
12
+ display: flex !important;
13
+ }
14
+
15
+ .d#{$infix}-inline {
16
+ display: inline !important;
17
+ }
18
+
19
+ .d#{$infix}-inline-block {
20
+ display: inline-block !important;
21
+ }
22
+
23
+ .d#{$infix}-inline-flex {
24
+ display: inline-flex !important;
25
+ }
26
+
5
27
  .d#{$infix}-none {
6
28
  display: none !important;
7
29
  }
8
30
 
9
- // block & flex
10
- .d#{$infix}-block {
11
- display: block !important;
12
- }
13
-
14
- .d#{$infix}-flex {
15
- display: flex !important;
16
- }
17
-
18
- // inline
19
- .d#{$infix}-inline {
20
- display: inline !important;
21
- }
22
-
23
- .d#{$infix}-inline-block {
24
- display: inline-block !important;
25
- }
26
-
27
- .d#{$infix}-inline-flex {
28
- display: inline-flex !important;
29
- }
30
-
31
- // table
32
- .d#{$infix}-table {
33
- display: table !important;
34
- }
35
-
36
- .d#{$infix}-table-cell {
37
- display: table-cell !important;
38
- }
31
+ .d#{$infix}-table {
32
+ display: table !important;
33
+ }
34
+
35
+ .d#{$infix}-table-cell {
36
+ display: table-cell !important;
37
+ }
38
+ }
39
+ }
40
+
41
+
42
+
43
+ // Utilities for toggling `display` in print
44
+
45
+ .d-print-block {
46
+ display: none !important;
47
+
48
+ @media print {
49
+ display: block !important;
50
+ }
51
+ }
52
+
53
+ .d-print-inline {
54
+ display: none !important;
55
+
56
+ @media print {
57
+ display: inline !important;
58
+ }
59
+ }
60
+
61
+ .d-print-inline-block {
62
+ display: none !important;
63
+
64
+ @media print {
65
+ display: inline-block !important;
66
+ }
67
+ }
68
+
69
+ .d-print-none {
70
+ @media print {
71
+ display: none !important;
39
72
  }
40
73
  }
@@ -2,139 +2,144 @@
2
2
  @include media-breakpoint-up($breakpoint) {
3
3
  $infix: breakpoint-infix($breakpoint);
4
4
 
5
- // align content
6
- .align-content#{$infix}-around {
7
- align-content: space-around !important;
8
- }
9
-
10
- .align-content#{$infix}-between {
11
- align-content: space-between !important;
12
- }
13
-
14
- .align-content#{$infix}-center {
15
- align-content: center !important;
16
- }
17
-
18
- .align-content#{$infix}-end {
19
- align-content: flex-end !important;
20
- }
21
-
22
- .align-content#{$infix}-start {
23
- align-content: flex-start !important;
24
- }
25
-
26
- .align-content#{$infix}-stretch {
27
- align-content: stretch !important;
28
- }
29
-
30
- // align item
31
- .align-items#{$infix}-baseline {
32
- align-items: baseline !important;
33
- }
34
-
35
- .align-items#{$infix}-center {
36
- align-items: center !important;
37
- }
38
-
39
- .align-items#{$infix}-start {
40
- align-items: flex-start !important;
41
- }
42
-
43
- .align-items#{$infix}-end {
44
- align-items: flex-end !important;
45
- }
46
-
47
- .align-items#{$infix}-stretch {
48
- align-items: stretch !important;
49
- }
50
-
51
- // align self
52
- .align-self#{$infix}-auto {
53
- align-self: auto !important;
54
- }
55
-
56
- .align-self#{$infix}-baseline {
57
- align-self: baseline !important;
58
- }
59
-
60
- .align-self#{$infix}-center {
61
- align-self: center !important;
62
- }
63
-
64
- .align-self#{$infix}-end {
65
- align-self: flex-end !important;
66
- }
67
-
68
- .align-self#{$infix}-start {
69
- align-self: flex-start !important;
70
- }
71
-
72
- .align-self#{$infix}-stretch {
73
- align-self: stretch !important;
74
- }
75
-
76
- // direction
77
- .flex#{$infix}-column {
78
- flex-direction: column !important;
79
- }
80
-
81
- .flex#{$infix}-column-reverse {
82
- flex-direction: column-reverse !important;
83
- }
84
-
85
- .flex#{$infix}-row {
86
- flex-direction: row !important;
87
- }
88
-
89
- .flex#{$infix}-row-reverse {
90
- flex-direction: row-reverse !important;
91
- }
92
-
93
- // justify content
94
- .justify-content#{$infix}-around {
95
- justify-content: space-around !important;
96
- }
97
-
98
- .justify-content#{$infix}-between {
99
- justify-content: space-between !important;
100
- }
101
-
102
- .justify-content#{$infix}-center {
103
- justify-content: center !important;
104
- }
105
-
106
- .justify-content#{$infix}-end {
107
- justify-content: flex-end !important;
108
- }
109
-
110
- .justify-content#{$infix}-start {
111
- justify-content: flex-start !important;
112
- }
113
-
114
- // order
115
- .flex#{$infix}-first {
116
- order: -1;
117
- }
118
-
119
- .flex#{$infix}-last {
120
- order: 1;
121
- }
122
-
123
- .flex#{$infix}-unordered {
124
- order: 0;
125
- }
126
-
127
- // wrap
128
- .flex#{$infix}-nowrap {
129
- flex-wrap: nowrap !important;
130
- }
131
-
132
- .flex#{$infix}-wrap {
133
- flex-wrap: wrap !important;
134
- }
135
-
136
- .flex#{$infix}-wrap-reverse {
137
- flex-wrap: wrap-reverse !important;
138
- }
5
+ .align-content#{$infix}-around {
6
+ align-content: space-around !important;
7
+ }
8
+
9
+ .align-content#{$infix}-between {
10
+ align-content: space-between !important;
11
+ }
12
+
13
+ .align-content#{$infix}-center {
14
+ align-content: center !important;
15
+ }
16
+
17
+ .align-content#{$infix}-end {
18
+ align-content: flex-end !important;
19
+ }
20
+
21
+ .align-content#{$infix}-start {
22
+ align-content: flex-start !important;
23
+ }
24
+
25
+ .align-content#{$infix}-stretch {
26
+ align-content: stretch !important;
27
+ }
28
+
29
+
30
+
31
+ .align-items#{$infix}-baseline {
32
+ align-items: baseline !important;
33
+ }
34
+
35
+ .align-items#{$infix}-center {
36
+ align-items: center !important;
37
+ }
38
+
39
+ .align-items#{$infix}-start {
40
+ align-items: flex-start !important;
41
+ }
42
+
43
+ .align-items#{$infix}-end {
44
+ align-items: flex-end !important;
45
+ }
46
+
47
+ .align-items#{$infix}-stretch {
48
+ align-items: stretch !important;
49
+ }
50
+
51
+
52
+
53
+ .align-self#{$infix}-auto {
54
+ align-self: auto !important;
55
+ }
56
+
57
+ .align-self#{$infix}-baseline {
58
+ align-self: baseline !important;
59
+ }
60
+
61
+ .align-self#{$infix}-center {
62
+ align-self: center !important;
63
+ }
64
+
65
+ .align-self#{$infix}-end {
66
+ align-self: flex-end !important;
67
+ }
68
+
69
+ .align-self#{$infix}-start {
70
+ align-self: flex-start !important;
71
+ }
72
+
73
+ .align-self#{$infix}-stretch {
74
+ align-self: stretch !important;
75
+ }
76
+
77
+
78
+
79
+ .flex#{$infix}-column {
80
+ flex-direction: column !important;
81
+ }
82
+
83
+ .flex#{$infix}-column-reverse {
84
+ flex-direction: column-reverse !important;
85
+ }
86
+
87
+ .flex#{$infix}-row {
88
+ flex-direction: row !important;
89
+ }
90
+
91
+ .flex#{$infix}-row-reverse {
92
+ flex-direction: row-reverse !important;
93
+ }
94
+
95
+
96
+
97
+ .flex#{$infix}-nowrap {
98
+ flex-wrap: nowrap !important;
99
+ }
100
+
101
+ .flex#{$infix}-wrap {
102
+ flex-wrap: wrap !important;
103
+ }
104
+
105
+ .flex#{$infix}-wrap-reverse {
106
+ flex-wrap: wrap-reverse !important;
107
+ }
108
+
109
+
110
+
111
+ .justify-content#{$infix}-around {
112
+ justify-content: space-around !important;
113
+ }
114
+
115
+ .justify-content#{$infix}-between {
116
+ justify-content: space-between !important;
117
+ }
118
+
119
+ .justify-content#{$infix}-center {
120
+ justify-content: center !important;
121
+ }
122
+
123
+ .justify-content#{$infix}-end {
124
+ justify-content: flex-end !important;
125
+ }
126
+
127
+ .justify-content#{$infix}-start {
128
+ justify-content: flex-start !important;
129
+ }
130
+
131
+
132
+
133
+ .order#{$infix}-first {
134
+ order: -1;
135
+ }
136
+
137
+ .order#{$infix}-last {
138
+ order: 1;
139
+ }
140
+
141
+ .order#{$infix}-0 {
142
+ order: 0;
143
+ }
139
144
  }
140
145
  }
@@ -1,10 +1,8 @@
1
1
  .material-icons {
2
- font-size: #{($material-icon-size / $font-size-root) / strip-unit($font-size-base)}em;
3
- line-height: #{strip-unit($font-size-base) / (($material-icon-size / $font-size-root) / strip-unit($font-size-base))}em;
4
- vertical-align: middle;
2
+ @include reset-material-icons;
5
3
  }
6
4
 
7
5
  .material-icons-inline {
8
- font-size: inherit;
9
- line-height: 1;
6
+ font-size: inherit;
7
+ line-height: 1;
10
8
  }
@@ -1,24 +1,21 @@
1
- //
2
- // positioning
3
- //
4
- .fixed-bottom {
5
- position: fixed;
6
- right: 0;
7
- bottom: 0;
8
- left: 0;
9
- z-index: map-get($toolbar-elevation-shadow, elevation);
10
- }
1
+ .fixed-bottom {
2
+ position: fixed;
3
+ right: 0;
4
+ bottom: 0;
5
+ left: 0;
6
+ z-index: map-get($toolbar-elevation-shadow, elevation);
7
+ }
11
8
 
12
- .fixed-top {
13
- position: fixed;
14
- top: 0;
15
- right: 0;
16
- left: 0;
17
- z-index: map-get($toolbar-elevation-shadow, elevation);
18
- }
9
+ .fixed-top {
10
+ position: fixed;
11
+ top: 0;
12
+ right: 0;
13
+ left: 0;
14
+ z-index: map-get($toolbar-elevation-shadow, elevation);
15
+ }
19
16
 
20
- .sticky-top {
21
- position: sticky;
22
- top: 0;
23
- z-index: map-get($toolbar-elevation-shadow, elevation);
24
- }
17
+ .sticky-top {
18
+ position: sticky;
19
+ top: 0;
20
+ z-index: map-get($toolbar-elevation-shadow, elevation);
21
+ }
@@ -1,16 +1,15 @@
1
- // height and width
2
- @each $prop, $prop-abbr in (height: h, width: w) {
3
- @each $size, $value in $sizes {
4
- .#{$prop-abbr}-#{$size} {
5
- #{$prop}: $value !important;
6
- }
1
+ @each $prop, $prop-abbr in (height: h, width: w) {
2
+ @each $size, $value in $sizes {
3
+ .#{$prop-abbr}-#{$size} {
4
+ #{$prop}: $value !important;
7
5
  }
8
6
  }
7
+ }
9
8
 
10
- .mh-100 {
11
- max-height: 100% !important;
12
- }
9
+ .mh-100 {
10
+ max-height: 100% !important;
11
+ }
13
12
 
14
- .mw-100 {
15
- max-width: 100% !important;
16
- }
13
+ .mw-100 {
14
+ max-width: 100% !important;
15
+ }