aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamal Carvalho <jamalcarvalho@google.com>2022-08-18 18:24:05 +0000
committerJamal Carvalho <jamal@golang.org>2022-08-19 16:14:45 +0000
commitaf51caee77fee5c7e7866e16cb8b373f596b38ea (patch)
tree1e36a20bfde481bc50f7a59be9e257ba079163fc
parent0a456fc0bac30bf5fc705d43c57451c2cc366e7f (diff)
downloadgo-x-website-af51caee77fee5c7e7866e16cb8b373f596b38ea.tar.xz
_content: style theme defaults to system preference
The style theme matches pkg.go.dev behavior in respecting the users preferred theme set by the system. Change-Id: I1dab33bda043f054522f88f8e64c539e61934433 Reviewed-on: https://go-review.googlesource.com/c/website/+/424834 Reviewed-by: Suzy Mueller <suzmue@golang.org>
-rw-r--r--_content/css/styles.css2
-rw-r--r--_content/site.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/_content/css/styles.css b/_content/css/styles.css
index 2b426f08..b065921b 100644
--- a/_content/css/styles.css
+++ b/_content/css/styles.css
@@ -3543,7 +3543,7 @@ img.PullQuote-image {
border: none;
}
@media (prefers-color-scheme: dark) {
- :root:not([data-theme='light']) {
+ :root:not([data-theme='light']) .Card {
background-color: var(--abbey);
border: none;
}
diff --git a/_content/site.tmpl b/_content/site.tmpl
index aa6bc365..8559996e 100644
--- a/_content/site.tmpl
+++ b/_content/site.tmpl
@@ -1,6 +1,6 @@
{{block "entirepage" . -}}
<!DOCTYPE html>
-<html lang="en" data-theme="light">
+<html lang="en" data-theme="auto">
<head>
<!-- Google Tag Manager -->
<link rel="preconnect" href="https://www.googletagmanager.com">