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
@@ -10,6 +10,11 @@
10
10
  word-break: break-word;
11
11
  z-index: $tooltip-zindex;
12
12
 
13
+ @include media-breakpoint-up(md) {
14
+ font-size: $tooltip-font-size-desktop;
15
+ margin: $tooltip-margin-desktop;
16
+ }
17
+
13
18
  &.show {
14
19
  opacity: $tooltip-opacity;
15
20
 
@@ -28,19 +33,8 @@
28
33
  padding: $tooltip-padding-y $tooltip-padding-x;
29
34
  text-align: center;
30
35
  transform: scale($tooltip-scale);
31
- }
32
-
33
-
34
-
35
- // Desktop
36
-
37
- @include media-breakpoint-up(md) {
38
- .tooltip {
39
- font-size: $tooltip-font-size-desktop;
40
- margin: $tooltip-margin-desktop;
41
- }
42
36
 
43
- .tooltip-inner {
37
+ @include media-breakpoint-up(md) {
44
38
  padding: $tooltip-padding-y-desktop $tooltip-padding-x-desktop;
45
39
  }
46
40
  }
@@ -1,14 +1,15 @@
1
- @mixin bg-variant($class, $color, $color-dark: '') {
2
- #{$class} {
3
- background-color: $color !important;
4
- }
1
+ // stylelint-disable declaration-no-important
5
2
 
3
+ @mixin bg-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
  background-color: $color-dark !important;
11
8
  }
12
9
  }
13
10
  }
11
+
12
+ #{$class} {
13
+ background-color: $color !important;
14
+ }
14
15
  }
@@ -3,14 +3,15 @@
3
3
  }
4
4
 
5
5
  // Single side
6
+
6
7
  @mixin border-bottom-radius($radius: $border-radius) {
7
8
  border-bottom-right-radius: $radius;
8
9
  border-bottom-left-radius: $radius;
9
10
  }
10
11
 
11
12
  @mixin border-left-radius($radius: $border-radius) {
12
- border-bottom-left-radius: $radius;
13
13
  border-top-left-radius: $radius;
14
+ border-bottom-left-radius: $radius;
14
15
  }
15
16
 
16
17
  @mixin border-right-radius($radius: $border-radius) {
@@ -41,12 +41,10 @@
41
41
  @content;
42
42
  }
43
43
  } @else {
44
- @content
44
+ @content;
45
45
  }
46
46
  }
47
47
 
48
-
49
-
50
48
  // Additional mixins
51
49
 
52
50
  @mixin media-breakpoint-between($lower, $upper) {
@@ -68,9 +66,12 @@
68
66
  }
69
67
 
70
68
  @mixin media-moz-webkit {
71
- @media
72
- screen and (-webkit-min-device-pixel-ratio: 0),
73
- screen and (min--moz-device-pixel-ratio: 0) {
69
+ @-moz-document url-prefix('') {
70
+ @content;
71
+ }
72
+
73
+ // stylelint-disable-next-line media-feature-name-no-vendor-prefix
74
+ @media (-webkit-min-device-pixel-ratio: 0) {
74
75
  @content;
75
76
  }
76
77
  }
@@ -0,0 +1,13 @@
1
+ // stylelint-disable declaration-no-important
2
+
3
+ @mixin float-left {
4
+ float: left !important;
5
+ }
6
+
7
+ @mixin float-none {
8
+ float: none !important;
9
+ }
10
+
11
+ @mixin float-right {
12
+ float: right !important;
13
+ }
@@ -1,14 +1,14 @@
1
1
  @mixin floating-label-size($font-size, $height, $line-height, $padding-y) {
2
+ &.has-value > label,
3
+ &.is-focused > label {
4
+ transform: scale($floating-label-font-size-focus / $font-size);
5
+ }
6
+
2
7
  > label {
3
8
  font-size: $font-size;
4
9
  line-height: $line-height;
5
10
  top: ($floating-label-font-size-focus + $padding-y);
6
11
  }
7
-
8
- &.has-value > label,
9
- &.is-focused > label {
10
- transform: scale($floating-label-font-size-focus / $font-size);
11
- }
12
12
  }
13
13
 
14
14
  @mixin form-control-size($font-size, $height, $line-height, $padding-x, $padding-y) {
@@ -16,6 +16,27 @@
16
16
  height: $height;
17
17
  line-height: $line-height;
18
18
  padding: $padding-y $padding-x ($padding-y - $textfield-border-width / $font-size-root * 1rem);
19
+
20
+ &[type='file'] {
21
+ height: auto;
22
+ max-height: $height;
23
+ min-height: $height;
24
+ }
25
+ }
26
+
27
+ @mixin form-select-size($font-size, $height, $padding-x) {
28
+ @include media-moz-webkit {
29
+ $select-bg-size: (($material-icon-size / $textfield-font-size) * $font-size);
30
+
31
+ background-size: $select-bg-size $select-bg-size;
32
+ padding-right: ($padding-x + $select-bg-size);
33
+
34
+ @if $padding-x != 0 {
35
+ background-position: calc(100% - #{$padding-x}) ($height / 2 - $select-bg-size / 2);
36
+ } @else {
37
+ background-position: 100% ($height / 2 - $select-bg-size / 2);
38
+ }
39
+ }
19
40
  }
20
41
 
21
42
  @mixin form-control-validation($color, $state) {
@@ -80,3 +101,14 @@
80
101
  }
81
102
  }
82
103
  }
104
+
105
+ @mixin textfield-box-size($font-size, $height, $line-height, $padding-x, $padding-y) {
106
+ > label {
107
+ top: $padding-y;
108
+ left: $padding-x;
109
+ }
110
+
111
+ > .form-control {
112
+ padding-top: ($height - ($textfield-box-label-spacer-y - $textfield-border-width / $font-size-root * 1rem) - $font-size * $line-height);
113
+ }
114
+ }
@@ -1,12 +1,4 @@
1
1
  @mixin make-grid-columns() {
2
- %grid-column {
3
- @include make-gutters;
4
-
5
- min-height: 1px;
6
- position: relative;
7
- width: 100%;
8
- }
9
-
10
2
  @each $breakpoint in map-keys($grid-breakpoints) {
11
3
  $infix: breakpoint-infix($breakpoint);
12
4
 
@@ -16,12 +8,25 @@
16
8
  }
17
9
  }
18
10
 
19
- .col#{$infix},
20
- .col#{$infix}-auto {
21
- @extend %grid-column;
22
- }
23
-
24
11
  @include media-breakpoint-up($breakpoint) {
12
+ @for $i from 1 through $grid-columns {
13
+ .col#{$infix}-#{$i} {
14
+ @include make-col($i);
15
+ }
16
+ }
17
+
18
+ @for $i from 0 through ($grid-columns - 1) {
19
+ .offset#{$infix}-#{$i} {
20
+ @include make-col-offset($i);
21
+ }
22
+ }
23
+
24
+ @for $i from 1 through $grid-columns {
25
+ .order#{$infix}-#{$i} {
26
+ order: $i;
27
+ }
28
+ }
29
+
25
30
  .col#{$infix} {
26
31
  flex-basis: 0;
27
32
  flex-grow: 1;
@@ -33,18 +38,19 @@
33
38
  max-width: none;
34
39
  width: auto;
35
40
  }
41
+ }
36
42
 
37
- @for $i from 1 through $grid-columns {
38
- .col#{$infix}-#{$i} {
39
- @include make-col($i);
40
- }
41
- }
42
-
43
- @for $i from 1 through $grid-columns {
44
- .order#{$infix}-#{$i} {
45
- order: $i;
46
- }
47
- }
43
+ .col#{$infix},
44
+ .col#{$infix}-auto {
45
+ @extend %grid-column;
48
46
  }
49
47
  }
48
+
49
+ %grid-column {
50
+ @include make-gutters;
51
+
52
+ min-height: 1px;
53
+ position: relative;
54
+ width: 100%;
55
+ }
50
56
  }
@@ -5,6 +5,10 @@
5
5
  max-width: percentage($size / $grid-columns);
6
6
  }
7
7
 
8
+ @mixin make-col-offset($size) {
9
+ margin-left: percentage($size / $grid-columns);
10
+ }
11
+
8
12
  @mixin make-gutters($type: padding) {
9
13
  @each $breakpoint in map-keys($grid-gutter-widths) {
10
14
  @include media-breakpoint-up($breakpoint) {
@@ -21,16 +25,14 @@
21
25
  }
22
26
  }
23
27
 
24
-
25
-
26
28
  // Make container
27
29
 
28
30
  @mixin make-container() {
31
+ @include make-gutters;
32
+
29
33
  margin-right: auto;
30
34
  margin-left: auto;
31
35
  width: 100%;
32
-
33
- @include make-gutters;
34
36
  }
35
37
 
36
38
  @mixin make-container-max-widths() {
@@ -41,13 +43,11 @@
41
43
  }
42
44
  }
43
45
 
44
-
45
-
46
46
  // Make row
47
47
 
48
48
  @mixin make-row() {
49
+ @include make-gutters(margin);
50
+
49
51
  display: flex;
50
52
  flex-wrap: wrap;
51
-
52
- @include make-gutters(margin);
53
53
  }
@@ -1,35 +1,35 @@
1
1
  @mixin active-focus-hover {
2
2
  @if $enable-hover-media-query {
3
- &:active,
4
- &:focus {
5
- @content
3
+ @include hover {
4
+ @content;
6
5
  }
7
6
 
8
- @include hover {
9
- @content
7
+ &:active,
8
+ &:focus {
9
+ @content;
10
10
  }
11
11
  } @else {
12
12
  &:active,
13
13
  &:focus,
14
14
  &:hover {
15
- @content
15
+ @content;
16
16
  }
17
17
  }
18
18
  }
19
19
 
20
20
  @mixin focus-hover {
21
21
  @if $enable-hover-media-query {
22
- &:focus {
23
- @content
22
+ @include hover {
23
+ @content;
24
24
  }
25
25
 
26
- @include hover {
27
- @content
26
+ &:focus {
27
+ @content;
28
28
  }
29
29
  } @else {
30
30
  &:focus,
31
31
  &:hover {
32
- @content
32
+ @content;
33
33
  }
34
34
  }
35
35
  }
@@ -38,33 +38,33 @@
38
38
  @if $enable-hover-media-query {
39
39
  @media (hover: hover) {
40
40
  &:hover {
41
- @content
41
+ @content;
42
42
  }
43
43
  }
44
44
  } @else {
45
45
  &:hover {
46
- @content
46
+ @content;
47
47
  }
48
48
  }
49
49
  }
50
50
 
51
51
  @mixin plain-active-focus-hover {
52
52
  @if $enable-hover-media-query {
53
+ @include hover {
54
+ @content;
55
+ }
56
+
53
57
  &,
54
58
  &:active,
55
59
  &:focus {
56
- @content
57
- }
58
-
59
- @include hover {
60
- @content
60
+ @content;
61
61
  }
62
62
  } @else {
63
63
  &,
64
64
  &:active,
65
65
  &:focus,
66
66
  &:hover {
67
- @content
67
+ @content;
68
68
  }
69
69
  }
70
70
  }
@@ -1,3 +1,5 @@
1
+ // stylelint-disable font-weight-notation
2
+
1
3
  @mixin reset-material-icons {
2
4
  font-size: ($material-icon-size / $font-size-base * 1em);
3
5
  line-height: ($font-size-base / $material-icon-size * 1em);
@@ -24,6 +26,8 @@
24
26
 
25
27
  font-family: 'Material Icons';
26
28
  font-feature-settings: 'liga';
29
+ -moz-osx-font-smoothing: grayscale;
30
+ -webkit-font-smoothing: antialiased;
27
31
  font-style: normal;
28
32
  font-weight: normal;
29
33
  letter-spacing: normal;
@@ -31,6 +35,4 @@
31
35
  text-transform: none;
32
36
  white-space: nowrap;
33
37
  word-wrap: normal;
34
- -moz-osx-font-smoothing: grayscale;
35
- -webkit-font-smoothing: antialiased;
36
38
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  font-family: $font-family-base;
5
5
  font-style: normal;
6
- font-weight: normal;
6
+ font-weight: $font-weight-regular;
7
7
  letter-spacing: normal;
8
8
  line-break: auto;
9
9
  line-height: $line-height-base;
@@ -3,15 +3,14 @@
3
3
  clip: rect(0, 0, 0, 0);
4
4
  clip-path: inset(50%);
5
5
  height: 1px;
6
- padding: 0;
7
6
  overflow: hidden;
7
+ padding: 0;
8
8
  position: absolute;
9
9
  white-space: nowrap;
10
10
  width: 1px;
11
11
  }
12
12
 
13
13
  @mixin sr-only-focusable {
14
- // Active, focus, hover
15
14
  &:active,
16
15
  &:focus {
17
16
  clip: auto;