material-sass 4.0.0.beta → 4.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +2 -2
  3. data/Rakefile +12 -12
  4. data/{app/assets → assets}/javascripts/material-sprockets.js +0 -0
  5. data/{app/assets → assets}/javascripts/material.js +54 -4
  6. data/{app/assets → assets}/javascripts/material.min.js +1 -1
  7. data/{app/assets → assets}/javascripts/material/addons/picker.date.js +0 -0
  8. data/{app/assets → assets}/javascripts/material/addons/picker.js +0 -0
  9. data/{app/assets → assets}/javascripts/material/addons/textarea-autosize.js +0 -0
  10. data/{app/assets → assets}/javascripts/material/addons/waves.js +0 -0
  11. data/assets/javascripts/material/components/expansion-panel.js +50 -0
  12. data/{app/assets → assets}/javascripts/material/components/floating-label.js +1 -1
  13. data/{app/assets → assets}/javascripts/material/components/navdrawer.js +0 -0
  14. data/{app/assets → assets}/javascripts/material/components/selection-control-focus.js +2 -3
  15. data/{app/assets → assets}/javascripts/material/components/tab-switch.js +0 -0
  16. data/{app/assets → assets}/javascripts/material/components/util.js +0 -0
  17. data/{app/assets → assets}/javascripts/material/initializers/picker.js +0 -0
  18. data/{app/assets → assets}/javascripts/material/initializers/textarea-autosize.js +0 -0
  19. data/{app/assets → assets}/javascripts/material/initializers/waves.js +0 -0
  20. data/{app/assets → assets}/stylesheets/material.min.css +0 -0
  21. data/{app/assets → assets}/stylesheets/material.scss +0 -0
  22. data/{app/assets → assets}/stylesheets/material/_colours.scss +7 -11
  23. data/{app/assets → assets}/stylesheets/material/_functions.scss +8 -14
  24. data/{app/assets → assets}/stylesheets/material/_mixins.scss +1 -1
  25. data/{app/assets → assets}/stylesheets/material/_print.scss +4 -4
  26. data/{app/assets → assets}/stylesheets/material/_utilities.scss +0 -2
  27. data/{app/assets → assets}/stylesheets/material/_variables.scss +0 -2
  28. data/{app/assets → assets}/stylesheets/material/base/_base.scss +24 -49
  29. data/{app/assets → assets}/stylesheets/material/base/_grid.scss +1 -5
  30. data/{app/assets → assets}/stylesheets/material/base/_typography.scss +1 -11
  31. data/{app/assets → assets}/stylesheets/material/bootstrap/_alert.scss +14 -16
  32. data/{app/assets → assets}/stylesheets/material/bootstrap/_badge.scss +19 -7
  33. data/{app/assets → assets}/stylesheets/material/bootstrap/_breadcrumb.scss +0 -0
  34. data/{app/assets → assets}/stylesheets/material/bootstrap/_carousel.scss +0 -6
  35. data/{app/assets → assets}/stylesheets/material/bootstrap/_close.scss +0 -4
  36. data/{app/assets → assets}/stylesheets/material/bootstrap/_code.scss +0 -9
  37. data/{app/assets → assets}/stylesheets/material/bootstrap/_custom-form.scss +0 -0
  38. data/{app/assets → assets}/stylesheets/material/bootstrap/_form.scss +4 -16
  39. data/{app/assets → assets}/stylesheets/material/bootstrap/_image.scss +10 -14
  40. data/{app/assets → assets}/stylesheets/material/bootstrap/_jumbotron.scss +0 -0
  41. data/{app/assets → assets}/stylesheets/material/bootstrap/_media.scss +0 -0
  42. data/{app/assets → assets}/stylesheets/material/bootstrap/_nav.scss +4 -10
  43. data/{app/assets → assets}/stylesheets/material/bootstrap/_pagination.scss +0 -1
  44. data/{app/assets → assets}/stylesheets/material/bootstrap/_popover.scss +4 -10
  45. data/{app/assets → assets}/stylesheets/material/bootstrap/_responsive-embed.scss +0 -0
  46. data/{app/assets → assets}/stylesheets/material/bootstrap/_transition.scss +2 -0
  47. data/{app/assets → assets}/stylesheets/material/material.scss +1 -10
  48. data/{app/assets → assets}/stylesheets/material/material/_button-flat.scss +3 -2
  49. data/{app/assets → assets}/stylesheets/material/material/_button-float.scss +4 -4
  50. data/{app/assets → assets}/stylesheets/material/material/_button-group.scss +40 -95
  51. data/{app/assets → assets}/stylesheets/material/material/_button.scss +8 -24
  52. data/{app/assets → assets}/stylesheets/material/material/_card.scss +28 -48
  53. data/{app/assets → assets}/stylesheets/material/material/_chip.scss +3 -7
  54. data/{app/assets → assets}/stylesheets/material/material/_data-table.scss +40 -37
  55. data/{app/assets → assets}/stylesheets/material/material/_dialog.scss +79 -53
  56. data/assets/stylesheets/material/material/_expansion-panel.scss +247 -0
  57. data/{app/assets → assets}/stylesheets/material/material/_menu.scss +99 -96
  58. data/{app/assets → assets}/stylesheets/material/material/_navdrawer.scss +26 -54
  59. data/{app/assets → assets}/stylesheets/material/material/_picker.scss +8 -13
  60. data/{app/assets → assets}/stylesheets/material/material/_progress-circular.scss +0 -1
  61. data/{app/assets → assets}/stylesheets/material/material/_progress.scss +41 -53
  62. data/{app/assets → assets}/stylesheets/material/material/_selection-control.scss +4 -25
  63. data/{app/assets → assets}/stylesheets/material/material/_stepper.scss +1 -9
  64. data/{app/assets → assets}/stylesheets/material/material/_tab.scss +16 -16
  65. data/assets/stylesheets/material/material/_text-field-box.scss +59 -0
  66. data/{app/assets → assets}/stylesheets/material/material/_text-field-floating-label.scss +28 -13
  67. data/{app/assets → assets}/stylesheets/material/material/_text-field-input-group.scss +40 -49
  68. data/assets/stylesheets/material/material/_text-field-textarea.scss +15 -0
  69. data/{app/assets → assets}/stylesheets/material/material/_text-field.scss +23 -42
  70. data/{app/assets → assets}/stylesheets/material/material/_toolbar.scss +50 -37
  71. data/{app/assets → assets}/stylesheets/material/material/_tooltip.scss +6 -12
  72. data/{app/assets → assets}/stylesheets/material/mixins/_background-variant.scss +6 -5
  73. data/{app/assets → assets}/stylesheets/material/mixins/_border-radius.scss +2 -1
  74. data/{app/assets → assets}/stylesheets/material/mixins/_breakpoint.scss +7 -6
  75. data/{app/assets → assets}/stylesheets/material/mixins/_clearfix.scss +0 -0
  76. data/assets/stylesheets/material/mixins/_float.scss +13 -0
  77. data/{app/assets → assets}/stylesheets/material/mixins/_form.scss +37 -5
  78. data/{app/assets → assets}/stylesheets/material/mixins/_grid-framework.scss +30 -24
  79. data/{app/assets → assets}/stylesheets/material/mixins/_grid.scss +8 -8
  80. data/{app/assets → assets}/stylesheets/material/mixins/_hex-to-rgba.scss +0 -0
  81. data/{app/assets → assets}/stylesheets/material/mixins/_hover.scss +19 -19
  82. data/{app/assets → assets}/stylesheets/material/mixins/_image.scss +0 -0
  83. data/{app/assets → assets}/stylesheets/material/mixins/_list.scss +0 -0
  84. data/{app/assets → assets}/stylesheets/material/mixins/_material-icons.scss +4 -2
  85. data/{app/assets → assets}/stylesheets/material/mixins/_nav-divider.scss +0 -0
  86. data/{app/assets → assets}/stylesheets/material/mixins/_reset-text.scss +1 -1
  87. data/{app/assets → assets}/stylesheets/material/mixins/_screenreader.scss +1 -2
  88. data/{app/assets → assets}/stylesheets/material/mixins/_strip-unit.scss +0 -0
  89. data/{app/assets → assets}/stylesheets/material/mixins/_text-alignment.scss +0 -0
  90. data/{app/assets → assets}/stylesheets/material/mixins/_text-emphasis.scss +6 -5
  91. data/{app/assets → assets}/stylesheets/material/mixins/_text-hide.scss +0 -0
  92. data/{app/assets → assets}/stylesheets/material/mixins/_text-truncate.scss +0 -0
  93. data/{app/assets → assets}/stylesheets/material/mixins/_transition.scss +0 -8
  94. data/{app/assets → assets}/stylesheets/material/mixins/_typography.scss +0 -0
  95. data/{app/assets → assets}/stylesheets/material/utilities/_align.scss +2 -0
  96. data/{app/assets → assets}/stylesheets/material/utilities/_background.scss +0 -4
  97. data/{app/assets → assets}/stylesheets/material/utilities/_border.scss +2 -2
  98. data/{app/assets → assets}/stylesheets/material/utilities/_clearfix.scss +0 -0
  99. data/{app/assets → assets}/stylesheets/material/utilities/_display.scss +6 -2
  100. data/{app/assets → assets}/stylesheets/material/utilities/_flex.scss +10 -6
  101. data/{app/assets → assets}/stylesheets/material/utilities/_float.scss +3 -3
  102. data/{app/assets → assets}/stylesheets/material/utilities/_material-icons.scss +0 -0
  103. data/{app/assets → assets}/stylesheets/material/utilities/_position.scss +14 -0
  104. data/{app/assets → assets}/stylesheets/material/utilities/_screenreader.scss +0 -0
  105. data/{app/assets → assets}/stylesheets/material/utilities/_sizing.scss +2 -0
  106. data/{app/assets → assets}/stylesheets/material/utilities/_spacing.scss +32 -31
  107. data/{app/assets → assets}/stylesheets/material/utilities/_text.scss +2 -13
  108. data/{app/assets → assets}/stylesheets/material/utilities/_visibility.scss +2 -0
  109. data/{app/assets → assets}/stylesheets/material/utilities/_waves.scss +3 -3
  110. data/assets/stylesheets/material/variables/_elevation-shadow.scss +69 -0
  111. data/{app/assets → assets}/stylesheets/material/variables/_grid.scss +0 -4
  112. data/assets/stylesheets/material/variables/_palette.scss +66 -0
  113. data/{app/assets → assets}/stylesheets/material/variables/_spacer.scss +6 -11
  114. data/assets/stylesheets/material/variables/_transition.scss +27 -0
  115. data/{app/assets → assets}/stylesheets/material/variables/_typography.scss +21 -27
  116. data/{app/assets → assets}/stylesheets/material/variables/_variable-bootstrap.scss +22 -50
  117. data/{app/assets → assets}/stylesheets/material/variables/_variable-material.scss +108 -141
  118. data/lib/material-sass.rb +52 -4
  119. data/lib/material-sass/engine.rb +8 -8
  120. data/lib/material-sass/version.rb +1 -1
  121. data/material-sass.gemspec +3 -0
  122. metadata +145 -149
  123. data/app/assets/fonts/material-icons/MaterialIcons-Regular.eot +0 -0
  124. data/app/assets/fonts/material-icons/MaterialIcons-Regular.ijmap +0 -1
  125. data/app/assets/fonts/material-icons/MaterialIcons-Regular.svg +0 -2373
  126. data/app/assets/fonts/material-icons/MaterialIcons-Regular.ttf +0 -0
  127. data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff +0 -0
  128. data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff2 +0 -0
  129. data/app/assets/fonts/material-icons/README.md +0 -9
  130. data/app/assets/fonts/material-icons/codepoints +0 -932
  131. data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
  132. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  133. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  134. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  135. data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
  136. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  137. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  138. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  139. data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
  140. data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  141. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  142. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  143. data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
  144. data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  145. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  146. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  147. data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
  148. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  149. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  150. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  151. data/app/assets/images/bg/amber.jpg +0 -0
  152. data/app/assets/images/bg/brand.jpg +0 -0
  153. data/app/assets/images/bg/green.jpg +0 -0
  154. data/app/assets/images/bg/purple.jpg +0 -0
  155. data/app/assets/images/bg/red.jpg +0 -0
  156. data/app/assets/images/bg/teal.jpg +0 -0
  157. data/app/assets/stylesheets/material/material/_expansion-panel.scss +0 -118
  158. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +0 -18
  159. data/app/assets/stylesheets/material/mixins/_pull.scss +0 -7
  160. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +0 -91
  161. data/app/assets/stylesheets/material/variables/_palette.scss +0 -45
  162. data/app/assets/stylesheets/material/variables/_transition.scss +0 -29
@@ -1,14 +1,15 @@
1
- @mixin text-emphasis-variant($class, $color, $color-dark: '') {
2
- #{$class} {
3
- color: $color !important;
4
- }
1
+ // stylelint-disable declaration-no-important
5
2
 
3
+ @mixin text-emphasis-variant($class, $color, $color-dark: '') {
6
4
  @if $color-dark != '' {
7
5
  a#{$class} {
8
- // Active, focus, hover
9
6
  @include active-focus-hover {
10
7
  color: $color-dark !important;
11
8
  }
12
9
  }
13
10
  }
11
+
12
+ #{$class} {
13
+ color: $color !important;
14
+ }
14
15
  }
@@ -14,8 +14,6 @@
14
14
  }
15
15
  }
16
16
 
17
-
18
-
19
17
  // Deceleration curve: entering the screen
20
18
 
21
19
  @mixin transition-deceleration($property...) {
@@ -32,8 +30,6 @@
32
30
  }
33
31
  }
34
32
 
35
-
36
-
37
33
  // Sharp curve: temporarily leaving the screen
38
34
 
39
35
  @mixin transition-sharp($property...) {
@@ -50,8 +46,6 @@
50
46
  }
51
47
  }
52
48
 
53
-
54
-
55
49
  // Standard curve: relative movement
56
50
 
57
51
  @mixin transition-standard($property...) {
@@ -68,8 +62,6 @@
68
62
  }
69
63
  }
70
64
 
71
-
72
-
73
65
  // Standard curve: relative movement - complex, full-screen, large transitions
74
66
 
75
67
  @mixin transition-standard-complex($property...) {
@@ -1,3 +1,5 @@
1
+ // stylelint-disable declaration-no-important
2
+
1
3
  .align-top {
2
4
  vertical-align: top !important;
3
5
  }
@@ -5,17 +5,13 @@
5
5
  @include bg-variant('.bg-dark-2', $dark-theme-2);
6
6
  @include bg-variant('.bg-dark-3', $dark-theme-3);
7
7
  @include bg-variant('.bg-dark-4', $dark-theme-4);
8
-
9
8
  @include bg-variant('.bg-light-1', $light-theme-1);
10
9
  @include bg-variant('.bg-light-2', $light-theme-2);
11
10
  @include bg-variant('.bg-light-3', $light-theme-3);
12
11
  @include bg-variant('.bg-light-4', $light-theme-4);
13
-
14
12
  @include bg-variant('.bg-transparent', transparent);
15
13
  @include bg-variant('.bg-white', $white);
16
14
 
17
-
18
-
19
15
  // Palette
20
16
 
21
17
  @each $color, $values in $theme-colors {
@@ -1,3 +1,5 @@
1
+ // stylelint-disable declaration-no-important
2
+
1
3
  // Border
2
4
 
3
5
  .border-0 {
@@ -67,8 +69,6 @@
67
69
  }
68
70
  }
69
71
 
70
-
71
-
72
72
  // Border radius
73
73
 
74
74
  .rounded {
@@ -1,3 +1,5 @@
1
+ // stylelint-disable declaration-no-important
2
+
1
3
  // Utilities for common `display` values
2
4
 
3
5
  @each $breakpoint in map-keys($grid-breakpoints) {
@@ -35,11 +37,13 @@
35
37
  .d#{$infix}-table-cell {
36
38
  display: table-cell !important;
37
39
  }
40
+
41
+ .d#{$infix}-table-row {
42
+ display: table-row !important;
43
+ }
38
44
  }
39
45
  }
40
46
 
41
-
42
-
43
47
  // Utilities for toggling `display` in print
44
48
 
45
49
  .d-print-block {
@@ -1,7 +1,11 @@
1
+ // stylelint-disable declaration-no-important
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
+ // Align content
8
+
5
9
  .align-content#{$infix}-around {
6
10
  align-content: space-around !important;
7
11
  }
@@ -26,7 +30,7 @@
26
30
  align-content: stretch !important;
27
31
  }
28
32
 
29
-
33
+ // Align items
30
34
 
31
35
  .align-items#{$infix}-baseline {
32
36
  align-items: baseline !important;
@@ -48,7 +52,7 @@
48
52
  align-items: stretch !important;
49
53
  }
50
54
 
51
-
55
+ // Align self
52
56
 
53
57
  .align-self#{$infix}-auto {
54
58
  align-self: auto !important;
@@ -74,7 +78,7 @@
74
78
  align-self: stretch !important;
75
79
  }
76
80
 
77
-
81
+ // Flex direction
78
82
 
79
83
  .flex#{$infix}-column {
80
84
  flex-direction: column !important;
@@ -92,7 +96,7 @@
92
96
  flex-direction: row-reverse !important;
93
97
  }
94
98
 
95
-
99
+ // Flex wrap
96
100
 
97
101
  .flex#{$infix}-nowrap {
98
102
  flex-wrap: nowrap !important;
@@ -106,7 +110,7 @@
106
110
  flex-wrap: wrap-reverse !important;
107
111
  }
108
112
 
109
-
113
+ // Justify content
110
114
 
111
115
  .justify-content#{$infix}-around {
112
116
  justify-content: space-around !important;
@@ -128,7 +132,7 @@
128
132
  justify-content: flex-start !important;
129
133
  }
130
134
 
131
-
135
+ // Order
132
136
 
133
137
  .order#{$infix}-first {
134
138
  order: -1;
@@ -3,15 +3,15 @@
3
3
  $infix: breakpoint-infix($breakpoint);
4
4
 
5
5
  .float#{$infix}-left {
6
- @include pull-left;
6
+ @include float-left;
7
7
  }
8
8
 
9
9
  .float#{$infix}-none {
10
- float: none !important;
10
+ @include float-none;
11
11
  }
12
12
 
13
13
  .float#{$infix}-right {
14
- @include pull-right;
14
+ @include float-right;
15
15
  }
16
16
  }
17
17
  }
@@ -1,3 +1,17 @@
1
+ // stylelint-disable declaration-no-important
2
+
3
+ // Common values
4
+
5
+ $positions: absolute, fixed, relative, static, sticky;
6
+
7
+ @each $position in $positions {
8
+ .position-#{$position} {
9
+ position: $position !important;
10
+ }
11
+ }
12
+
13
+ // Shorthand
14
+
1
15
  .fixed-bottom {
2
16
  position: fixed;
3
17
  right: 0;
@@ -1,3 +1,5 @@
1
+ // stylelint-disable declaration-no-important
2
+
1
3
  @each $prop, $prop-abbr in (height: h, width: w) {
2
4
  @each $size, $value in $sizes {
3
5
  .#{$prop-abbr}-#{$size} {
@@ -1,40 +1,11 @@
1
+ // stylelint-disable declaration-no-important
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
 
5
- .m#{$infix}-auto {
6
- margin: auto !important;
7
- }
8
-
9
- .mt#{$infix}-auto {
10
- margin-top: auto !important;
11
- }
12
-
13
- .mr#{$infix}-auto {
14
- margin-right: auto !important;
15
- }
16
-
17
- .mb#{$infix}-auto {
18
- margin-bottom: auto !important;
19
- }
20
-
21
- .ml#{$infix}-auto {
22
- margin-left: auto !important;
23
- }
24
-
25
- .mx#{$infix}-auto {
26
- margin-right: auto !important;
27
- margin-left: auto !important;
28
- }
29
-
30
- .my#{$infix}-auto {
31
- margin-top: auto !important;
32
- margin-bottom: auto !important;
33
- }
34
-
35
7
  @each $prop, $prop-abbr in (margin: m, padding: p) {
36
8
  @each $size, $value in $spacers {
37
-
38
9
  .#{$prop-abbr}#{$infix}-#{$size} {
39
10
  #{$prop}: $value !important;
40
11
  }
@@ -66,5 +37,35 @@
66
37
  }
67
38
  }
68
39
  }
40
+
41
+ .m#{$infix}-auto {
42
+ margin: auto !important;
43
+ }
44
+
45
+ .mt#{$infix}-auto {
46
+ margin-top: auto !important;
47
+ }
48
+
49
+ .mr#{$infix}-auto {
50
+ margin-right: auto !important;
51
+ }
52
+
53
+ .mb#{$infix}-auto {
54
+ margin-bottom: auto !important;
55
+ }
56
+
57
+ .ml#{$infix}-auto {
58
+ margin-left: auto !important;
59
+ }
60
+
61
+ .mx#{$infix}-auto {
62
+ margin-right: auto !important;
63
+ margin-left: auto !important;
64
+ }
65
+
66
+ .my#{$infix}-auto {
67
+ margin-top: auto !important;
68
+ margin-bottom: auto !important;
69
+ }
69
70
  }
70
71
  }
@@ -1,3 +1,5 @@
1
+ // stylelint-disable declaration-no-important
2
+
1
3
  // Alignment
2
4
 
3
5
  .text-justify {
@@ -12,7 +14,6 @@
12
14
  @include text-truncate;
13
15
  }
14
16
 
15
- // Responsive alignment
16
17
  @each $breakpoint in map-keys($grid-breakpoints) {
17
18
  @include media-breakpoint-up($breakpoint) {
18
19
  $infix: breakpoint-infix($breakpoint);
@@ -31,32 +32,24 @@
31
32
  }
32
33
  }
33
34
 
34
-
35
-
36
35
  // Color
37
36
 
38
- // Black and white
39
37
  @include text-emphasis-variant('.text-black', $black);
40
38
  @include text-emphasis-variant('.text-black-primary', $black-primary);
41
39
  @include text-emphasis-variant('.text-black-secondary', $black-secondary);
42
40
  @include text-emphasis-variant('.text-black-hint', $black-hint);
43
41
  @include text-emphasis-variant('.text-black-divider', $black-divider);
44
-
45
42
  @include text-emphasis-variant('.text-white', $white);
46
43
  @include text-emphasis-variant('.text-white-primary', $white-primary);
47
44
  @include text-emphasis-variant('.text-white-secondary', $white-secondary);
48
45
  @include text-emphasis-variant('.text-white-hint', $white-hint);
49
46
  @include text-emphasis-variant('.text-white-divider', $white-divider);
50
-
51
47
  @include text-emphasis-variant('.text-muted', $text-muted);
52
48
 
53
- // Palette
54
49
  @each $color, $values in $theme-colors {
55
50
  @include text-emphasis-variant('.text-#{$color}', map-get(theme-color($color), color), map-get(theme-color($color), darker));
56
51
  }
57
52
 
58
-
59
-
60
53
  // Italcs and weight
61
54
 
62
55
  .font-italic {
@@ -77,16 +70,12 @@
77
70
  font-weight: $font-weight-regular;
78
71
  }
79
72
 
80
-
81
-
82
73
  // Misc
83
74
 
84
75
  .text-hide {
85
76
  @include text-hide;
86
77
  }
87
78
 
88
-
89
-
90
79
  // Transformation
91
80
 
92
81
  .text-capitalize {
@@ -1,3 +1,5 @@
1
+ // stylelint-disable declaration-no-important
2
+
1
3
  // Utilities for common `visibility` values
2
4
 
3
5
  .invisible {
@@ -16,10 +16,10 @@
16
16
  transform: scale(0) translate(0, 0);
17
17
  width: $waves-size;
18
18
  }
19
+ }
19
20
 
20
- &.waves-light .waves-ripple {
21
- background-color: $waves-bg-light;
22
- }
21
+ .waves-light .waves-ripple {
22
+ background-color: $waves-bg-light;
23
23
  }
24
24
 
25
25
  .waves-wrap {
@@ -0,0 +1,69 @@
1
+ // Elevation
2
+ // Based on https://material.google.com/what-is-material/elevation-shadows.html#elevation-shadows-elevation-android-
3
+
4
+ $elevation-24dp: 24 * 10 !default;
5
+ $elevation-16dp: 16 * 10 !default;
6
+ $elevation-12dp: 12 * 10 !default;
7
+ $elevation-8dp: 8 * 10 !default;
8
+ $elevation-6dp: 6 * 10 !default;
9
+ $elevation-4dp: 4 * 10 !default;
10
+ $elevation-3dp: 3 * 10 !default;
11
+ $elevation-2dp: 2 * 10 !default;
12
+ $elevation-1dp: 1 * 10 !default;
13
+
14
+ // Shadow
15
+ // Based on https://material.google.com/what-is-material/elevation-shadows.html#elevation-shadows-shadows
16
+
17
+ $shadow-color-1: rgba(0, 0, 0, 0.14) !default;
18
+ $shadow-color-2: rgba(0, 0, 0, 0.12) !default;
19
+ $shadow-color-3: rgba(0, 0, 0, 0.2) !default;
20
+
21
+ $shadow-24dp: 0 24px 38px 3px $shadow-color-1, 0 9px 46px 8px $shadow-color-2, 0 11px 15px 0 $shadow-color-3 !default;
22
+ $shadow-16dp: 0 16px 24px 2px $shadow-color-1, 0 6px 30px 5px $shadow-color-2, 0 8px 10px 0 $shadow-color-3 !default;
23
+ $shadow-12dp: 0 12px 17px 2px $shadow-color-1, 0 5px 22px 4px $shadow-color-2, 0 7px 8px 0 $shadow-color-3 !default;
24
+ $shadow-8dp: 0 8px 10px 1px $shadow-color-1, 0 3px 14px 3px $shadow-color-2, 0 4px 15px 0 $shadow-color-3 !default;
25
+ $shadow-6dp: 0 6px 10px 0 $shadow-color-1, 0 1px 18px 0 $shadow-color-2, 0 3px 5px 0 $shadow-color-3 !default;
26
+ $shadow-4dp: 0 2px 4px 0 $shadow-color-1, 0 4px 5px 0 $shadow-color-2, 0 1px 10px 0 $shadow-color-3 !default;
27
+ $shadow-3dp: 0 3px 3px 0 $shadow-color-1, 0 3px 4px 0 $shadow-color-2, 0 1px 8px 0 $shadow-color-3 !default;
28
+ $shadow-2dp: 0 0 4px 0 $shadow-color-1, 0 3px 4px 0 $shadow-color-2, 0 1px 5px 0 $shadow-color-3 !default;
29
+ $shadow-1dp: 0 0 2px 0 $shadow-color-1, 0 2px 2px 0 $shadow-color-2, 0 1px 3px 0 $shadow-color-3 !default;
30
+
31
+ // Value pair
32
+ // Combination of elevation and shadow
33
+
34
+ $elevation-shadow-24dp: (
35
+ elevation: $elevation-24dp,
36
+ shadow: $shadow-24dp
37
+ ) !default;
38
+ $elevation-shadow-16dp: (
39
+ elevation: $elevation-16dp,
40
+ shadow: $shadow-16dp
41
+ ) !default;
42
+ $elevation-shadow-12dp: (
43
+ elevation: $elevation-12dp,
44
+ shadow: $shadow-12dp
45
+ ) !default;
46
+ $elevation-shadow-8dp: (
47
+ elevation: $elevation-8dp,
48
+ shadow: $shadow-8dp
49
+ ) !default;
50
+ $elevation-shadow-6dp: (
51
+ elevation: $elevation-6dp,
52
+ shadow: $shadow-6dp
53
+ ) !default;
54
+ $elevation-shadow-4dp: (
55
+ elevation: $elevation-4dp,
56
+ shadow: $shadow-4dp
57
+ ) !default;
58
+ $elevation-shadow-3dp: (
59
+ elevation: $elevation-3dp,
60
+ shadow: $shadow-3dp
61
+ ) !default;
62
+ $elevation-shadow-2dp: (
63
+ elevation: $elevation-2dp,
64
+ shadow: $shadow-2dp
65
+ ) !default;
66
+ $elevation-shadow-1dp: (
67
+ elevation: $elevation-1dp,
68
+ shadow: $shadow-1dp
69
+ ) !default;