diff options
| author | Alan Donovan <adonovan@google.com> | 2025-07-29 17:33:58 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-07-29 21:59:14 -0700 |
| commit | 5d1a360630bf087e66d51814b3410f2a1baace5b (patch) | |
| tree | 07fa60a58f2c074abd9d8fa7fa2f2034c9e35482 /_content/css/styles.css | |
| parent | e5dd27fc71edea3015b34b5061a4f4fe6e86f0cc (diff) | |
| download | go-x-website-5d1a360630bf087e66d51814b3410f2a1baace5b.tar.xz | |
_content/css: style tables produced from markdown
We emit a <div class=markdown> around the whole output of goldmark,
so that CSS style rules can easily select them (without affecting
HTML tables in the spec, for example).
The default style for markdown tables now has thin grey lines,
grey headings, and a little padding.
Also, remove the FS middleware used to inject default.tmpl
into x/tools/gopls/doc, since that file is now actually present.
And add it to the fake data at _content/gopls/doc.
Fixes golang/go#67368
Change-Id: If91e702c394d73a181bd780711e8be6f661f2e59
Reviewed-on: https://go-review.googlesource.com/c/website/+/691616
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Alan Donovan <adonovan@google.com>
Diffstat (limited to '_content/css/styles.css')
| -rw-r--r-- | _content/css/styles.css | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/_content/css/styles.css b/_content/css/styles.css index 2c46017a..93d7901e 100644 --- a/_content/css/styles.css +++ b/_content/css/styles.css @@ -5393,3 +5393,17 @@ hr { border-top: 1px solid var(--color-border); height: 1px; } + +/* default styles for markdown tables */ +div.markdown table { + border-collapse: collapse; +} +div.markdown th, +div.markdown td { + border: 1px solid #ccc; + padding: 0.1em 2em 0.1em 2em; +} +div.markdown th { + background-color: var(--color-background-accented); +} + |
