Extract mixin to use links with the text color

This commit is contained in:
Javi Martín
2022-10-12 15:13:41 +02:00
parent 33eea0b21a
commit 0be0f459ab
2 changed files with 11 additions and 15 deletions

View File

@@ -254,15 +254,11 @@ button,
}
a {
color: inherit;
@include text-colored-link;
display: inline-block;
font-weight: bold;
position: relative;
text-align: left;
&:hover {
color: $link;
}
}
+ li {
@@ -844,7 +840,7 @@ body > header,
margin-bottom: $line-height / 2;
a {
color: inherit;
@include text-colored-link;
display: inline-block;
font-weight: bold;
margin-right: $line-height / 2;
@@ -854,10 +850,6 @@ body > header,
@include breakpoint(medium) {
margin-right: $line-height;
}
&:hover {
color: $link;
}
}
.is-active {
@@ -1359,11 +1351,7 @@ form {
}
.notification-link {
color: inherit;
&:hover {
color: $link;
}
@include text-colored-link;
}
&:hover {

View File

@@ -41,6 +41,14 @@
}
}
@mixin text-colored-link {
color: inherit;
&:hover {
color: $link;
}
}
@mixin switch {
@include regular-button;
border-radius: $line-height;