Drop :active styles

This commit is contained in:
James Lyne 2021-08-25 20:29:36 +01:00
parent 89c56e176b
commit 146aadb963
7 changed files with 6 additions and 21 deletions

View File

@ -137,7 +137,6 @@
--background-disabled: #555555; /* Disabled controls */
--background-hover: #cccccc; /* Button :hover/selected */
--background-active: #eeeeee; /* Button :active */
--outline-focus: #eeeeee; /* Button :focus outline */
@ -151,7 +150,6 @@
--text-disabled: #999999; /* Disabled controls */
--text-hover: var(--background-base); /* Text in :hover/selected buttons */
--text-active: var(--background-dark); /* Text in :active buttons */
--text-night: #ddffff; /* Clock time at night */
--text-day: #ffdd33; /* Clock time in day */

View File

@ -258,7 +258,7 @@ export default defineComponent({
}
}
&:hover, &:focus-visible, &.focus-visible, &:active {
&:hover, &:focus-visible, &.focus-visible {
background-color: transparent;
color: inherit;
}

View File

@ -141,7 +141,7 @@ export default defineComponent({
}
}
&:hover, &:focus, &:active {
&:hover, &:focus {
.player__name ::v-deep(span) {
color: inherit !important;
}

View File

@ -69,17 +69,12 @@
border-color: var(--background-dark);
}
@mixin button-active {
background-color: var(--background-active);
color: var(--text-active);
}
@mixin button-disabled {
background-color: var(--background-disabled);
color: var(--text-disabled);
cursor: not-allowed;
&:hover, &:active, &:focus {
&:hover, &:focus {
background-color: var(--background-disabled);
color: var(--text-disabled);
}

View File

@ -32,10 +32,6 @@
z-index: auto;
}
&:active {
@include button-active;
}
&[disabled], &[aria-disabled="true"] {
@include button-disabled;
}

View File

@ -28,8 +28,8 @@
}
/* Avoid applying the base background colour twice, in case its semi-transparent */
> a:not(:hover):not(:focus):not(:active):not([aria-expanded=true]),
> button:not(:hover):not(:focus):not(:active):not([aria-expanded=true]) {
> a:not(:hover):not(:focus):not([aria-expanded=true]),
> button:not(:hover):not(:focus):not([aria-expanded=true]) {
background-color: transparent;
}
@ -345,7 +345,7 @@
animation: fade 0.3s linear;
animation-fill-mode: forwards;
&:hover, &:active, &:focus {
&:hover, &:focus {
background-color: var(--background-base);
}

View File

@ -237,10 +237,6 @@ input {
outline: none !important;
}
&:active + label {
@include button-active;
}
&:disabled + label {
@include button-disabled;
}