diff options
Diffstat (limited to 'client/src/sass/include')
-rw-r--r-- | client/src/sass/include/_miniature.scss | 3 | ||||
-rw-r--r-- | client/src/sass/include/_mixins.scss | 6 | ||||
-rw-r--r-- | client/src/sass/include/_variables.scss | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss index c1d1b3c59..5e591cf45 100644 --- a/client/src/sass/include/_miniature.scss +++ b/client/src/sass/include/_miniature.scss | |||
@@ -80,7 +80,8 @@ $play-overlay-width: 18px; | |||
80 | } | 80 | } |
81 | 81 | ||
82 | &.focus-visible { | 82 | &.focus-visible { |
83 | box-shadow: 0 0 0 2px var(--mainColor); | 83 | box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest); |
84 | outline: none; | ||
84 | } | 85 | } |
85 | 86 | ||
86 | img { | 87 | img { |
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index d414704e9..56ada6b9e 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -83,7 +83,7 @@ | |||
83 | @mixin button-focus($color) { | 83 | @mixin button-focus($color) { |
84 | &:focus, | 84 | &:focus, |
85 | &.focus-visible { | 85 | &.focus-visible { |
86 | box-shadow: 0 0 0 .2rem $color; | 86 | box-shadow: #{$focus-box-shadow-form} $color; |
87 | } | 87 | } |
88 | } | 88 | } |
89 | 89 | ||
@@ -372,7 +372,7 @@ | |||
372 | position: absolute; | 372 | position: absolute; |
373 | 373 | ||
374 | &:focus + span { | 374 | &:focus + span { |
375 | box-shadow: 0 0 0 .2rem var(--mainColorLightest); | 375 | box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest); |
376 | } | 376 | } |
377 | 377 | ||
378 | & + span { | 378 | & + span { |
@@ -721,7 +721,7 @@ | |||
721 | height: max-content; | 721 | height: max-content; |
722 | 722 | ||
723 | &:focus-within { | 723 | &:focus-within { |
724 | box-shadow: 0 0 0 .2rem var(--mainColorLightest); | 724 | box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest); |
725 | } | 725 | } |
726 | } | 726 | } |
727 | 727 | ||
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index d0f1a3630..f60d8ce94 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss | |||
@@ -72,6 +72,8 @@ $sub-menu-margin-bottom: 30px; | |||
72 | 72 | ||
73 | $activated-action-button-color: black; | 73 | $activated-action-button-color: black; |
74 | 74 | ||
75 | $focus-box-shadow-form: 0 0 0 .2rem; | ||
76 | |||
75 | /*** map theme ***/ | 77 | /*** map theme ***/ |
76 | 78 | ||
77 | // pass variables into a sass map, | 79 | // pass variables into a sass map, |