Add no-color-change anchor style

This commit is contained in:
ItsDrike 2021-08-25 22:30:02 +02:00
parent 34927a8d00
commit 8390da28bc
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD

View file

@ -14,23 +14,6 @@ html, body {
color: $body-color;
}
a {
color: $primary;
&:hover {
transition: color 0.5s;
color: $body-color;
}
&.colour-invert {
color: $body-color;
&:hover {
color: $primary;
}
}
}
.navbar {
background-color: $black;
padding-top: 0;
@ -94,3 +77,27 @@ footer {
// screen height - top padding - navbar height - footer margin
min-height: calc(100vh - #{$spacer * 5} - #{$navbar-height} - #{$spacer * 3});
}
a {
color: $primary;
&:hover {
transition: color 0.5s;
color: $body-color;
}
&.colour-invert {
color: $body-color;
&:hover {
color: $primary;
}
}
}
a.no-color-change {
&, &:hover {
text-decoration: none;
color: inherit;
}
}