Simplify using text color for links

Using `inherit` is IMHO more expressive since it means "use the color of
the parent element".

This is particularly useful for CONSUL installations using custom
styles. Consider the following code:

```
h2 {
  color: $white;

  a {
    color: $white;
  }
}
```

If we'd like to customize the way headings look, we'd have to override
two colors:

```
h2 {
  color: $red;

  a {
    color: $red;
  }
}
```

Consider the scenario where we use `inherit`:

```
h2 {
  color: $white;

  a {
    color: inherit;
  }
}
```

Now we only need to override one color to change the styles:

```
h2 {
  color: $red;
}
```
This commit is contained in:
Javi Martín
2021-05-15 21:26:39 +02:00
parent bc7005aeef
commit 8e8a4d784c
10 changed files with 35 additions and 36 deletions

View File

@@ -75,13 +75,13 @@
a {
background: $white;
color: $black;
color: inherit;
height: 100%;
padding: $line-height $line-height * 1.5;
&:hover {
background: #e6e6e6;
color: $black;
color: inherit;
}
&:focus {