diff options
| author | Russ Cox <rsc@golang.org> | 2021-08-03 00:54:24 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2021-08-18 19:48:35 +0000 |
| commit | 6c6d3e7c40fa86abd6fe6d0dd6ddaf0155d738f6 (patch) | |
| tree | d2b09af3aee08b81789abf8404f3eef669718e77 /go.dev/_content/css/styles.css | |
| parent | 9b8de9f9de492b179320c9aa0716a2cd2a631839 (diff) | |
| download | go-x-website-6c6d3e7c40fa86abd6fe6d0dd6ddaf0155d738f6.tar.xz | |
cmd/golangorg: move blog from blog.golang.org to go.dev/blog
This is the first of a sequence of consolidations of web sites into
the single site go.dev. An accompanying blog post (next CL) will
explain the change.
The blog/_content tree moves to go.dev/_content/blog.
The *.article files were converted to *.md files using rsc.io/tmp/blog2md.
The old dot directives are now template function invocations,
so that blog content files are now exactly the same format and
semantics as regular site content files.
All the old blog redirects are carried forward, of course.
Also add exhaustive test that every .md file renders correctly.
Also rename rawhtml to raw, because it gets used for raw Markdown too.
The raw Markdown issue is working around a bigger problem
(html/template is not really right for Markdown) that we will have
to solve at some point, but not in this CL.
Change-Id: Ifa9b3b8d656a72af30d0d4e57e4c7bc8dacbc386
Reviewed-on: https://go-review.googlesource.com/c/website/+/342091
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Diffstat (limited to 'go.dev/_content/css/styles.css')
| -rw-r--r-- | go.dev/_content/css/styles.css | 149 |
1 files changed, 149 insertions, 0 deletions
diff --git a/go.dev/_content/css/styles.css b/go.dev/_content/css/styles.css index ab6525d6..a1f257c9 100644 --- a/go.dev/_content/css/styles.css +++ b/go.dev/_content/css/styles.css @@ -3483,3 +3483,152 @@ img.PullQuote-image { margin: 1rem 0 0; } } + +#blog h1.small { + font-weight: bold; + font-size: 1rem; +} +#blog a.head { + color: black; + text-decoration: none !important; +} +#blog a.head:hover { + text-decoration: underline; +} +#blog #content .author { + font-style: italic; +} +#blog #content .Article { + margin-bottom: 50px; +} +#blog #content .date { + color: #6e7072; +} +#blog #content .tags { + color: #999; + font-size: smaller; +} +#blog #content .iframe, #content .image { + margin: 20px; +} +#blog #content .title { + margin: 20px 0; +} +#blog #content img { + max-width: 100%; +} +#blog .Article { + max-width: 55rem; +} +#blog .Article[data-slug='/blog/go-fonts'] { + font-family: Go, sans-serif; +} +#blog .Article[data-slug='/blog/go-fonts'] pre, +#blog .Article[data-slug='/blog/go-fonts'] code { + font-family: 'Go Mono', monospace; +} +#blog pre, #blog code { + font-family: monospace; +} +#blog p, +#blogindex p { + line-height: 1.4em; +} +#blogindex p.blogtitle a { + font-weight: bold; +} +#blogindex p.blogsummary { + margin-block-start: 0px; +} +#blogindex p.blogtitle { + margin-block-end: 0px; +} +#blogindex div.prevnext { + margin-top: 2em; +} +#blog .Article[data-slug='/blog/'] h1 { + margin-top: 1em; +} + +#blog pre .highlight { + font-weight: bold; +} + +/* Inline runnable snippets (play.js/initPlayground) */ +#blog pre, +#content .code pre, +#content .playground pre, +#content .output pre { + margin: 0; + padding: 0; + background: none; + border: none; + outline: 0 solid transparent; + overflow: auto; +} +#content .playground .number, +#content .code .number { + color: #999; +} +#blog pre, +#content .code, +#content .playground, +#content .output { + width: auto; + margin: 1.25rem; + padding: 0.625rem; + border-radius: 0.3125rem; +} +#blog pre, +#content .code, +#content .playground { + background: #e9e9e9; +} +#content .output { + background: #202020; +} +#content .output .stdout, +#content .output pre { + color: #e6e6e6; +} +#content .output .stderr, +#content .output .error { + color: rgb(244, 74, 63); +} +#content .output .system, +#content .output .exit { + color: rgb(255, 209, 77); +} +#content .buttons { + position: relative; + float: right; + top: -3.125rem; + right: 1.875rem; +} +#content .output .buttons { + top: -3.75rem; + right: 0; + height: 0; +} +#content .buttons .kill { + display: none; + visibility: hidden; +} +a.error { + font-weight: bold; + color: white; + background-color: darkred; + border-bottom-left-radius: 0.25rem; + border-bottom-right-radius: 0.25rem; + border-top-left-radius: 0.25rem; + border-top-right-radius: 0.25rem; + padding: 0.125rem 0.25rem 0.125rem 0.25rem; + /* TRBL */ +} +.downloading { + background: #f9f9be; + padding: 0.625rem; + text-align: center; + border-radius: 0.3125rem; +} + |
