mirror of
https://github.com/Steffo99/bluelib.git
synced 2025-03-11 11:07:51 +00:00
♿ Add an outline to keyboard-focused buttons
This commit is contained in:
parent
a78d94bad8
commit
81efc147f8
11 changed files with 35 additions and 9 deletions
|
@ -15,4 +15,4 @@
|
|||
@hex-link-hover: #006b6b;
|
||||
@hex-link-active: #004141;
|
||||
|
||||
@hex-outline: #ffffff;
|
||||
@hex-btn-text: #ffffff;
|
||||
|
|
|
@ -15,4 +15,4 @@
|
|||
@hex-link-hover: #00ffff;
|
||||
@hex-link-active: #a0ffff;
|
||||
|
||||
@hex-outline: #000000;
|
||||
@hex-btn-text: #000000;
|
10
src/rules/skeleton.less
vendored
10
src/rules/skeleton.less
vendored
|
@ -146,7 +146,7 @@
|
|||
|
||||
background-color: @bA;
|
||||
border: none;
|
||||
color: @hex-outline;
|
||||
color: @hex-btn-text;
|
||||
padding: 6px 16px;
|
||||
border-radius: 4px;
|
||||
font-family: inherit;
|
||||
|
@ -154,16 +154,20 @@
|
|||
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
&:hover {
|
||||
background-color: @bC;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 3px solid @hex-link-hover !important;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: @bF;
|
||||
}
|
||||
|
||||
&@{status-disabled} {
|
||||
&:hover {
|
||||
&:hover {
|
||||
background-color: @bA;
|
||||
}
|
||||
|
||||
|
|
|
@ -251,6 +251,9 @@
|
|||
.bluelib .button:hover {
|
||||
background-color: rgba(calc(var(--bluelib-color-r) - 20), calc(var(--bluelib-color-g) - 20), calc(var(--bluelib-color-b) - 20), 1);
|
||||
}
|
||||
.bluelib .button:focus-visible {
|
||||
outline: 3px solid #006b6b !important;
|
||||
}
|
||||
.bluelib .button:active {
|
||||
background-color: rgba(calc(var(--bluelib-color-r) - 50), calc(var(--bluelib-color-g) - 50), calc(var(--bluelib-color-b) - 50), 1);
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -901,6 +901,14 @@ body button:hover,
|
|||
body input[type="submit"]:hover {
|
||||
background-color: rgba(calc(var(--bluelib-color-r) - 20), calc(var(--bluelib-color-g) - 20), calc(var(--bluelib-color-b) - 20), 1);
|
||||
}
|
||||
.base-skeleton .button:focus-visible,
|
||||
body .button:focus-visible,
|
||||
.base-skeleton button:focus-visible,
|
||||
body button:focus-visible,
|
||||
.base-skeleton input[type="submit"]:focus-visible,
|
||||
body input[type="submit"]:focus-visible {
|
||||
outline: 3px solid #006b6b !important;
|
||||
}
|
||||
.base-skeleton .button:active,
|
||||
body .button:active,
|
||||
.base-skeleton button:active,
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -251,6 +251,9 @@
|
|||
.bluelib .button:hover {
|
||||
background-color: rgba(calc(var(--bluelib-color-r) + 20), calc(var(--bluelib-color-g) + 20), calc(var(--bluelib-color-b) + 20), 1);
|
||||
}
|
||||
.bluelib .button:focus-visible {
|
||||
outline: 3px solid #00ffff !important;
|
||||
}
|
||||
.bluelib .button:active {
|
||||
background-color: rgba(calc(var(--bluelib-color-r) + 50), calc(var(--bluelib-color-g) + 50), calc(var(--bluelib-color-b) + 50), 1);
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -901,6 +901,14 @@ body button:hover,
|
|||
body input[type="submit"]:hover {
|
||||
background-color: rgba(calc(var(--bluelib-color-r) + 20), calc(var(--bluelib-color-g) + 20), calc(var(--bluelib-color-b) + 20), 1);
|
||||
}
|
||||
.base-skeleton .button:focus-visible,
|
||||
body .button:focus-visible,
|
||||
.base-skeleton button:focus-visible,
|
||||
body button:focus-visible,
|
||||
.base-skeleton input[type="submit"]:focus-visible,
|
||||
body input[type="submit"]:focus-visible {
|
||||
outline: 3px solid #00ffff !important;
|
||||
}
|
||||
.base-skeleton .button:active,
|
||||
body .button:active,
|
||||
.base-skeleton button:active,
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue