fix: force white color for Login link in production with !important
All checks were successful
CI / update (push) Successful in 1m39s
All checks were successful
CI / update (push) Successful in 1m39s
The Login link was appearing light blue and nord purple when visited in production/preview builds due to CSS specificity conflicts with global nordtheme.css link styles. Added !important flags to enforce white color for all link states and nord8 for hover/focus states.
This commit is contained in:
@@ -123,11 +123,14 @@ nav[hidden]{
|
||||
border-radius: 1000px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
:global(a.entry)
|
||||
:global(a.entry),
|
||||
:global(a.entry:link),
|
||||
:global(a.entry:visited)
|
||||
{
|
||||
text-decoration: none;
|
||||
font-family: sans-serif;
|
||||
font-size: 1.2rem;
|
||||
color: white !important;
|
||||
border-radius: 1000px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
@@ -136,10 +139,13 @@ nav[hidden]{
|
||||
:global(.site_header li:focus-within),
|
||||
:global(.site_header li:has(a.active)),
|
||||
:global(a.entry:hover),
|
||||
:global(a.entry:focus-visible)
|
||||
:global(a.entry:focus-visible),
|
||||
:global(a.entry:link:hover),
|
||||
:global(a.entry:visited:hover),
|
||||
:global(a.entry:visited:focus-visible)
|
||||
{
|
||||
cursor: pointer;
|
||||
color: var(--nord8);
|
||||
color: var(--nord8) !important;
|
||||
}
|
||||
:global(.site_header) {
|
||||
padding-block: 1.5rem;
|
||||
|
||||
Reference in New Issue
Block a user