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:
@@ -166,7 +166,7 @@
|
||||
|
||||
.button-support {
|
||||
background: $proposals;
|
||||
color: $text;
|
||||
color: inherit;
|
||||
display: inline-block;
|
||||
font-size: $small-font-size;
|
||||
margin-top: rem-calc(12);
|
||||
@@ -223,13 +223,13 @@
|
||||
z-index: 2;
|
||||
|
||||
p {
|
||||
color: $color-warning !important;
|
||||
color: inherit !important;
|
||||
margin: 0 rem-calc(12);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $color-warning !important;
|
||||
color: inherit !important;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
@@ -623,7 +623,7 @@
|
||||
margin-top: $line-height / 2;
|
||||
|
||||
a {
|
||||
color: $text;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1042,7 +1042,7 @@
|
||||
margin-bottom: 0;
|
||||
|
||||
a {
|
||||
color: $text;
|
||||
color: inherit;
|
||||
font-size: rem-calc(24);
|
||||
}
|
||||
}
|
||||
@@ -1097,7 +1097,7 @@
|
||||
padding-top: 0;
|
||||
|
||||
a {
|
||||
color: $color-warning;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
p {
|
||||
@@ -1117,7 +1117,7 @@
|
||||
|
||||
.social-share-button .ssb-icon {
|
||||
background: none;
|
||||
color: $text;
|
||||
color: inherit;
|
||||
height: rem-calc(33);
|
||||
|
||||
&::before {
|
||||
@@ -1170,7 +1170,7 @@
|
||||
.back,
|
||||
.icon-angle-left,
|
||||
.description {
|
||||
color: #fff;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -1234,7 +1234,7 @@
|
||||
font-size: $base-font-size;
|
||||
|
||||
a {
|
||||
color: $color-warning;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1455,7 +1455,7 @@
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
color: $text;
|
||||
color: inherit;
|
||||
display: block;
|
||||
|
||||
img {
|
||||
@@ -1761,7 +1761,7 @@
|
||||
line-height: $line-height * 1.5;
|
||||
|
||||
a {
|
||||
color: $text;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user