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.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/Rakefile +12 -12
- data/{app/assets → assets}/javascripts/material-sprockets.js +0 -0
- data/{app/assets → assets}/javascripts/material.js +54 -4
- data/{app/assets → assets}/javascripts/material.min.js +1 -1
- data/{app/assets → assets}/javascripts/material/addons/picker.date.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/picker.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/textarea-autosize.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/waves.js +0 -0
- data/assets/javascripts/material/components/expansion-panel.js +50 -0
- data/{app/assets → assets}/javascripts/material/components/floating-label.js +1 -1
- data/{app/assets → assets}/javascripts/material/components/navdrawer.js +0 -0
- data/{app/assets → assets}/javascripts/material/components/selection-control-focus.js +2 -3
- data/{app/assets → assets}/javascripts/material/components/tab-switch.js +0 -0
- data/{app/assets → assets}/javascripts/material/components/util.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/picker.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/textarea-autosize.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/waves.js +0 -0
- data/{app/assets → assets}/stylesheets/material.min.css +0 -0
- data/{app/assets → assets}/stylesheets/material.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/_colours.scss +7 -11
- data/{app/assets → assets}/stylesheets/material/_functions.scss +8 -14
- data/{app/assets → assets}/stylesheets/material/_mixins.scss +1 -1
- data/{app/assets → assets}/stylesheets/material/_print.scss +4 -4
- data/{app/assets → assets}/stylesheets/material/_utilities.scss +0 -2
- data/{app/assets → assets}/stylesheets/material/_variables.scss +0 -2
- data/{app/assets → assets}/stylesheets/material/base/_base.scss +24 -49
- data/{app/assets → assets}/stylesheets/material/base/_grid.scss +1 -5
- data/{app/assets → assets}/stylesheets/material/base/_typography.scss +1 -11
- data/{app/assets → assets}/stylesheets/material/bootstrap/_alert.scss +14 -16
- data/{app/assets → assets}/stylesheets/material/bootstrap/_badge.scss +19 -7
- data/{app/assets → assets}/stylesheets/material/bootstrap/_breadcrumb.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_carousel.scss +0 -6
- data/{app/assets → assets}/stylesheets/material/bootstrap/_close.scss +0 -4
- data/{app/assets → assets}/stylesheets/material/bootstrap/_code.scss +0 -9
- data/{app/assets → assets}/stylesheets/material/bootstrap/_custom-form.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_form.scss +4 -16
- data/{app/assets → assets}/stylesheets/material/bootstrap/_image.scss +10 -14
- data/{app/assets → assets}/stylesheets/material/bootstrap/_jumbotron.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_media.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_nav.scss +4 -10
- data/{app/assets → assets}/stylesheets/material/bootstrap/_pagination.scss +0 -1
- data/{app/assets → assets}/stylesheets/material/bootstrap/_popover.scss +4 -10
- data/{app/assets → assets}/stylesheets/material/bootstrap/_responsive-embed.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_transition.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/material.scss +1 -10
- data/{app/assets → assets}/stylesheets/material/material/_button-flat.scss +3 -2
- data/{app/assets → assets}/stylesheets/material/material/_button-float.scss +4 -4
- data/{app/assets → assets}/stylesheets/material/material/_button-group.scss +40 -95
- data/{app/assets → assets}/stylesheets/material/material/_button.scss +8 -24
- data/{app/assets → assets}/stylesheets/material/material/_card.scss +28 -48
- data/{app/assets → assets}/stylesheets/material/material/_chip.scss +3 -7
- data/{app/assets → assets}/stylesheets/material/material/_data-table.scss +40 -37
- data/{app/assets → assets}/stylesheets/material/material/_dialog.scss +79 -53
- data/assets/stylesheets/material/material/_expansion-panel.scss +247 -0
- data/{app/assets → assets}/stylesheets/material/material/_menu.scss +99 -96
- data/{app/assets → assets}/stylesheets/material/material/_navdrawer.scss +26 -54
- data/{app/assets → assets}/stylesheets/material/material/_picker.scss +8 -13
- data/{app/assets → assets}/stylesheets/material/material/_progress-circular.scss +0 -1
- data/{app/assets → assets}/stylesheets/material/material/_progress.scss +41 -53
- data/{app/assets → assets}/stylesheets/material/material/_selection-control.scss +4 -25
- data/{app/assets → assets}/stylesheets/material/material/_stepper.scss +1 -9
- data/{app/assets → assets}/stylesheets/material/material/_tab.scss +16 -16
- data/assets/stylesheets/material/material/_text-field-box.scss +59 -0
- data/{app/assets → assets}/stylesheets/material/material/_text-field-floating-label.scss +28 -13
- data/{app/assets → assets}/stylesheets/material/material/_text-field-input-group.scss +40 -49
- data/assets/stylesheets/material/material/_text-field-textarea.scss +15 -0
- data/{app/assets → assets}/stylesheets/material/material/_text-field.scss +23 -42
- data/{app/assets → assets}/stylesheets/material/material/_toolbar.scss +50 -37
- data/{app/assets → assets}/stylesheets/material/material/_tooltip.scss +6 -12
- data/{app/assets → assets}/stylesheets/material/mixins/_background-variant.scss +6 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_border-radius.scss +2 -1
- data/{app/assets → assets}/stylesheets/material/mixins/_breakpoint.scss +7 -6
- data/{app/assets → assets}/stylesheets/material/mixins/_clearfix.scss +0 -0
- data/assets/stylesheets/material/mixins/_float.scss +13 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_form.scss +37 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_grid-framework.scss +30 -24
- data/{app/assets → assets}/stylesheets/material/mixins/_grid.scss +8 -8
- data/{app/assets → assets}/stylesheets/material/mixins/_hex-to-rgba.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_hover.scss +19 -19
- data/{app/assets → assets}/stylesheets/material/mixins/_image.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_list.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_material-icons.scss +4 -2
- data/{app/assets → assets}/stylesheets/material/mixins/_nav-divider.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_reset-text.scss +1 -1
- data/{app/assets → assets}/stylesheets/material/mixins/_screenreader.scss +1 -2
- data/{app/assets → assets}/stylesheets/material/mixins/_strip-unit.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-alignment.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-emphasis.scss +6 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_text-hide.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-truncate.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_transition.scss +0 -8
- data/{app/assets → assets}/stylesheets/material/mixins/_typography.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_align.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_background.scss +0 -4
- data/{app/assets → assets}/stylesheets/material/utilities/_border.scss +2 -2
- data/{app/assets → assets}/stylesheets/material/utilities/_clearfix.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_display.scss +6 -2
- data/{app/assets → assets}/stylesheets/material/utilities/_flex.scss +10 -6
- data/{app/assets → assets}/stylesheets/material/utilities/_float.scss +3 -3
- data/{app/assets → assets}/stylesheets/material/utilities/_material-icons.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_position.scss +14 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_screenreader.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_sizing.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_spacing.scss +32 -31
- data/{app/assets → assets}/stylesheets/material/utilities/_text.scss +2 -13
- data/{app/assets → assets}/stylesheets/material/utilities/_visibility.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_waves.scss +3 -3
- data/assets/stylesheets/material/variables/_elevation-shadow.scss +69 -0
- data/{app/assets → assets}/stylesheets/material/variables/_grid.scss +0 -4
- data/assets/stylesheets/material/variables/_palette.scss +66 -0
- data/{app/assets → assets}/stylesheets/material/variables/_spacer.scss +6 -11
- data/assets/stylesheets/material/variables/_transition.scss +27 -0
- data/{app/assets → assets}/stylesheets/material/variables/_typography.scss +21 -27
- data/{app/assets → assets}/stylesheets/material/variables/_variable-bootstrap.scss +22 -50
- data/{app/assets → assets}/stylesheets/material/variables/_variable-material.scss +108 -141
- data/lib/material-sass.rb +52 -4
- data/lib/material-sass/engine.rb +8 -8
- data/lib/material-sass/version.rb +1 -1
- data/material-sass.gemspec +3 -0
- metadata +145 -149
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.eot +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.ijmap +0 -1
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.svg +0 -2373
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.ttf +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff2 +0 -0
- data/app/assets/fonts/material-icons/README.md +0 -9
- data/app/assets/fonts/material-icons/codepoints +0 -932
- data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/app/assets/images/bg/amber.jpg +0 -0
- data/app/assets/images/bg/brand.jpg +0 -0
- data/app/assets/images/bg/green.jpg +0 -0
- data/app/assets/images/bg/purple.jpg +0 -0
- data/app/assets/images/bg/red.jpg +0 -0
- data/app/assets/images/bg/teal.jpg +0 -0
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +0 -118
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +0 -18
- data/app/assets/stylesheets/material/mixins/_pull.scss +0 -7
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +0 -91
- data/app/assets/stylesheets/material/variables/_palette.scss +0 -45
- 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
|
-
|
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
|
-
|
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
|
-
|
72
|
-
|
73
|
-
|
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
|
}
|
File without changes
|
@@ -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
|
-
|
38
|
-
|
39
|
-
|
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
|
}
|
File without changes
|
@@ -1,35 +1,35 @@
|
|
1
1
|
@mixin active-focus-hover {
|
2
2
|
@if $enable-hover-media-query {
|
3
|
-
|
4
|
-
|
5
|
-
@content
|
3
|
+
@include hover {
|
4
|
+
@content;
|
6
5
|
}
|
7
6
|
|
8
|
-
|
9
|
-
|
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
|
-
|
23
|
-
@content
|
22
|
+
@include hover {
|
23
|
+
@content;
|
24
24
|
}
|
25
25
|
|
26
|
-
|
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
|
}
|
File without changes
|
File without changes
|
@@ -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
|
}
|
File without changes
|
@@ -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;
|