mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Fixed button hover state bugs in dark mode
This commit is contained in:
parent
ba14318de0
commit
8fab84418e
@ -240,8 +240,8 @@ input:focus,
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.gh-btn-black:hover,
|
||||
.gh-btn-primary:hover {
|
||||
.gh-btn-black:not(.gh-btn-green):not(.gh-btn-blue):not(.gh-btn-red):hover,
|
||||
.gh-btn-primary:not(.gh-btn-green):not(.gh-btn-blue):not(.gh-btn-red):hover {
|
||||
background: var(--black) !important;
|
||||
}
|
||||
|
||||
|
@ -102,14 +102,14 @@ fieldset[disabled] .gh-btn {
|
||||
}
|
||||
|
||||
.gh-btn-blue:hover {
|
||||
color: #fff;
|
||||
background: color-mod(var(--blue) l(-4%));
|
||||
color: #fff !important;
|
||||
background: color-mod(var(--blue) l(-4%)) !important;
|
||||
}
|
||||
|
||||
/* When clicked or focused with keyboard */
|
||||
.gh-btn-blue:active,
|
||||
.gh-btn-blue:focus {
|
||||
background: color-mod(var(--blue) l(-7%));
|
||||
background: color-mod(var(--blue) l(-7%)) !important;
|
||||
}
|
||||
|
||||
/* Green button
|
||||
@ -124,14 +124,14 @@ fieldset[disabled] .gh-btn {
|
||||
}
|
||||
|
||||
.gh-btn-green:hover {
|
||||
color: #fff;
|
||||
background: color-mod(var(--green) l(-4%));
|
||||
color: #fff !important;
|
||||
background: color-mod(var(--green) l(-4%)) !important;
|
||||
}
|
||||
|
||||
/* When clicked or focused with keyboard */
|
||||
.gh-btn-green:active,
|
||||
.gh-btn-green:focus {
|
||||
background: color-mod(var(--green) l(-7%));
|
||||
background: color-mod(var(--green) l(-7%)) !important;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user