_content: fix colors for links in BackgroundQuotes
The colors for the link and the background color for the background quotes are too similar, so the quotes do not appear. This change adds style to the links in the background quotes so that they inherit the colors. Updates golang/go#52312 Change-Id: Ib7fa0b23ff194333f50c1346747ea06d25e09254 Reviewed-on: https://go-review.googlesource.com/c/website/+/400894 Run-TryBot: Suzy Mueller <suzmue@golang.org> Reviewed-by: Nooras Saba <saba@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Родитель
39782d7cc0
Коммит
a7771c216c
|
@ -2888,6 +2888,9 @@ p.BackgroundQuote-body {
|
|||
margin-left: auto;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
a.BackgroundQuote-link {
|
||||
color: inherit;
|
||||
}
|
||||
.PullQuote-author {
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
{{- with (yaml .info)}}
|
||||
<div class="BackgroundQuote">
|
||||
{{- with .link}}
|
||||
<a href="{{.}}" target="_blank" rel="noopener">
|
||||
<a href="{{.}}" class="BackgroundQuote-link" target="_blank" rel="noopener">
|
||||
{{- end}}
|
||||
<p class="BackgroundQuote-body">
|
||||
“{{markdown .quote}}”
|
||||
|
|
Загрузка…
Ссылка в новой задаче