-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(utilities): make $utilities effect sr/disp/elev styles (#16670)
Co-authored-by: Kael <kaelwd@gmail.com>
- Loading branch information
1 parent
6cc6070
commit e790898
Showing
7 changed files
with
38 additions
and
35 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
@use './animations'; | ||
@use './colors'; | ||
@use './reset'; | ||
@use './elevation'; | ||
@use './transitions'; | ||
@use './rtl'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
@use '../settings' | ||
|
||
@each $size, $media_query in settings.$display-breakpoints | ||
.hidden | ||
&-#{$size} | ||
@media #{$media_query} | ||
display: none !important | ||
@if (settings.$utilities != false and length(settings.$utilities) > 0) | ||
@each $size, $media_query in settings.$display-breakpoints | ||
.hidden | ||
&-#{$size} | ||
@media #{$media_query} | ||
display: none !important |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@use '../tools'; | ||
@use '../settings'; | ||
|
||
@if (settings.$utilities != false and length(settings.$utilities) > 0) { | ||
$z: 24; | ||
@while $z >= 0 { | ||
.elevation-#{$z} { | ||
@include tools.elevation($z, $important: true); | ||
} | ||
|
||
$z: $z - 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 13 additions & 11 deletions
24
packages/vuetify/src/styles/utilities/_screenreaders.sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
// Source: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss | ||
@use '../settings' | ||
|
||
.d-sr-only, | ||
.d-sr-only-focusable:not(:focus) | ||
border: 0 !important | ||
clip: rect(0, 0, 0, 0) !important | ||
height: 1px !important | ||
margin: -1px !important // Fix for https://github.com/twbs/bootstrap/issues/25686 | ||
overflow: hidden !important | ||
padding: 0 !important | ||
position: absolute !important | ||
white-space: nowrap !important | ||
width: 1px !important | ||
@if (settings.$utilities != false and length(settings.$utilities) > 0) | ||
.d-sr-only, | ||
.d-sr-only-focusable:not(:focus) | ||
border: 0 !important | ||
clip: rect(0, 0, 0, 0) !important | ||
height: 1px !important | ||
margin: -1px !important // Fix for https://github.com/twbs/bootstrap/issues/25686 | ||
overflow: hidden !important | ||
padding: 0 !important | ||
position: absolute !important | ||
white-space: nowrap !important | ||
width: 1px !important |