1
0
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:
Mark Otto
2025-04-14 10:00:57 -07:00
parent 509332ee40
commit a9822ac21c
5 changed files with 25 additions and 21 deletions

View 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);
}
}