aboutsummaryrefslogtreecommitdiff
path: root/_content/css
diff options
context:
space:
mode:
authorJamal Carvalho <jamal@golang.org>2022-03-14 16:16:43 -0400
committerJamal Carvalho <jamalcarvalho@google.com>2022-03-17 15:12:37 +0000
commitd27a511132d2cbbc574d19c3d1e6da14ebf2e92b (patch)
treecff47b2928cddbc3260c8a3c55f52f8f1c3bb16e /_content/css
parentcbc2ed29a60b351ee9a640f576f0d370b67041d5 (diff)
downloadgo-x-website-d27a511132d2cbbc574d19c3d1e6da14ebf2e92b.tar.xz
_content/css: fix image background color in dark mode
Transparent images on the doc pages assume there is a white background. This change preserves the white background for images when the site is viewed with the dark theme. For golang/go#34601. Change-Id: I4c0a28d173d7ecf52547da6e5a6382d84bc922e3 Reviewed-on: https://go-review.googlesource.com/c/website/+/392479 Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Trust: Jamal Carvalho <jamalcarvalho@google.com>
Diffstat (limited to '_content/css')
-rw-r--r--_content/css/styles.css5
1 files changed, 4 insertions, 1 deletions
diff --git a/_content/css/styles.css b/_content/css/styles.css
index 5389adca..39c4c63c 100644
--- a/_content/css/styles.css
+++ b/_content/css/styles.css
@@ -660,6 +660,9 @@ h1 + h2.subtitle {
.Article pre {
margin-left: 1.5rem;
}
+.Article.Doc img {
+ background-color: var(--white);
+}
.BreadcrumbNav-inner {
display: flex;
flex-wrap: wrap;
@@ -3719,7 +3722,7 @@ img.PullQuote-image {
fill: var(--color-text);
}
#blog .image > img {
- background-color: var(--color-text);
+ background-color: var(--white);
}
#blogindex p.blogtitle a {
font-weight: bold;