mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-29 16:19:53 +02:00
New focus styles
This commit is contained in:
12
scss/mixins/_focus-ring.scss
Normal file
12
scss/mixins/_focus-ring.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
@use "../config" as *;
|
||||
|
||||
@mixin focus-ring($offset: false, $color: null) {
|
||||
@if $color != null {
|
||||
outline: var(--#{$prefix}focus-ring-width) solid #{$color};
|
||||
} @else {
|
||||
outline: var(--#{$prefix}focus-ring);
|
||||
}
|
||||
@if $offset {
|
||||
outline-offset: var(--#{$prefix}focus-ring-offset);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user