aboutsummaryrefslogtreecommitdiff
path: root/go.dev/_content/css
AgeCommit message (Collapse)Author
2021-11-22go.dev: merge go.dev/_content into root _contentRuss Cox
Many renames. And then adjust references. Change-Id: I4d03c76dbc0bf4d070208d568861ee820904c0dc Reviewed-on: https://go-review.googlesource.com/c/website/+/365097 Trust: Russ Cox <rsc@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-11-22_content: delete golang.org-specific filesRuss Cox
lib/godoc/images/play-link.svg moves to go.dev/_content and the one reference in go.dev/_content/css/styles.css is fixed. The rest is all dead files. Change-Id: Ic2b582855b976387e0a4d2cbd93e50942071ae31 Reviewed-on: https://go-review.googlesource.com/c/website/+/365096 Trust: Russ Cox <rsc@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-11-22website: merge golang.org → go.devRuss Cox
As described in https://go.dev/blog/tidy-web, redirect golang.org to go.dev. The golang.org home page is retired - go.dev now has all the same info and links, and it doesn't have ten-year-old videos of me. All the other golang.org pages are now served directly from go.dev, styled differently but with the same content. A followup CL will merge the _content directories. Change-Id: Ib7f3d951842c021280981f9b926c4943f4d9cb52 Reviewed-on: https://go-review.googlesource.com/c/website/+/364859 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-11-22go.dev: add /playRuss Cox
This is a replacement for the UI of play.golang.org, although it still uses play.golang.org as the backend and probably always will, to keep the playground backend deployment separate from the rest of the web site. Change-Id: Ia39000e80368b98d9cc273d246f2c83670fbacc4 Reviewed-on: https://go-review.googlesource.com/c/website/+/364815 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>
2021-11-22go.dev/_content/css: move header bar to edges of page, like footerRuss Cox
Right now the header is constrained to the middle 75.75em of the page. That lines up nicely when content is also limited to the middle 75.75em, but some pages will want to allow a wider viewport, and then it looks weird to have the content starting to the left of the Go logo and continuing past the right of the tabs. Let the header expand to the left and right sides of the page (up to a margin on wider devices), just like the footer. Change-Id: Ic667ec8d23dfb06ab6c532caad6b507dd5ce6fe5 Reviewed-on: https://go-review.googlesource.com/c/website/+/364814 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>
2021-11-17go.dev/_content: various formatting fixesRuss Cox
Add a standard 1rem margin above and below key block elements like h1, h2, ..., ol, ul, p. Today it's very inconsistent and because you get a margin from either the block above or below, it mostly works out, except in certain cases where text gets jammed together a bit too much. Add the auto-TOC generator for use in layouts that define #nav (nothing yet, but golang.org-migrated pages will). Add "Table of Contents" to the top of the TOC. Allow pages to opt out of the TOC by setting HideTOC in their metadata. Make subtitle heading (Version of Jan 1, 2021) line up horizontally with the TOC. Preparation for the golang.org -> go.dev move. Change-Id: Ic9121e5b636155c54e487bcb735ac0bc3f958733 Reviewed-on: https://go-review.googlesource.com/c/website/+/362502 Trust: Russ Cox <rsc@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-11-17go.dev/_content/css: various tweaks for golang.org mergeRuss Cox
- scroll-behavior: smooth is incredibly frustrating on Macs at least. It's way too slow. Go back to the regular behavior when you click a #Link. - Make printed docs look reasonable (no invisible banner covering up content on subsequent pages, no lines of text sliced in half). - Make .Article margins better defaults. We can always adjust specific pages, but these defaults seem to have been overfitted to the specific uses of <h1> <h2> and so on in specific pages. The changes do not make those pages look noticeably worse, and they do make other pages look noticeably better. Preparation for the golang.org -> go.dev move. Change-Id: Ia0b5783e9db35785252dc37c443f3f25114f8b4a Reviewed-on: https://go-review.googlesource.com/c/website/+/362501 Trust: Russ Cox <rsc@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-11-17go.dev/_content/css: add styles for various golang.org pagesRuss Cox
Preparation for the golang.org -> go.dev move. Change-Id: I8246702e88f47f0c61a4ea4db2e4a6a390e3c90c Reviewed-on: https://go-review.googlesource.com/c/website/+/362500 Trust: Russ Cox <rsc@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-11-09go.dev/_content/css: various cleanupsRuss Cox
1. Remove all letter-spacing overrides Overriding the letter-spacing might have made sense when we were hard-coding the font (I have my doubts), but it certainly does not make sense now that we are defaulting to the system font instead of a hard-coded font. The effect of the letter-spacing now is to override the font's kerning tables (as if we could do better!) and gives the site a bit of an alien look. The only time a letter-spacing override really works is in ALL CAPS headlines, but we don't have any. 2. Remove font-weight override for article headings The “large but not bold” headings are another thing that don't really work consistently in the variety of fonts users might see. Go back to headings being bold by removing the overrides. Also rewrite a few font-weight: 400 to font-weight: normal for consistency. 3. Change body text to darker grey Using 3e4042 for body text is too light and hurts readability. pkg.go.dev uses 202224 for body text; use that here too. Global search and replace to keep the same number of colors in our palette. 4. Regularize page max-width, line-height Solutions articles were allowed to be 75.75rem wide, but regular articles were capped at 45rem, which is far too narrow when you're using a large screen. Let all articles expand to 75.75rem. (Not sure what is magic about 75.75 but it's used elsewhere too.) Regular line-height to a default of 1.4 for the whole page. Rutter's book _Web Typography_ says 1.4 is a good default for a variety of fonts. The blog was already overriding to 1.4 because that was most readable for the long articles. Many other elements were using 1.5rem, which can then be deleted. Article lists were set to 1.45, so delete that too in favor of consistency. Article text was set to 1.75rem, which is far too wide and hurts readability (the blog was overriding this specific setting), so drop that too. 5. Narrow spaces in code font This rule will let us stop insisting that people write things like Use <code>go</code> <code>get</code> to ... (See for example doc/go1.*.html.) Change-Id: I2154b03296ae1d56bc9bc416a1e3fb9e930d7d9c Reviewed-on: https://go-review.googlesource.com/c/website/+/362015 Trust: Russ Cox <rsc@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org> Website-Publish: Russ Cox <rsc@golang.org>
2021-11-09go.dev/_content/css: fix unreadable pull quotesRuss Cox
See https://go.dev/solutions/clis. The big teal boxes are teal-on-teal quotes. Make them teal-on-white instead. Change-Id: I33dd72f172043123d0b21620d75a44ca7a403224 Reviewed-on: https://go-review.googlesource.com/c/website/+/362017 Trust: Russ Cox <rsc@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-11-04go.dev/_content: add the /security pageMauricio Alvarado
This change adds the security page over on /security alongside it's corresponding assets and style changes. Change-Id: I14e2d43d23e82b39b77bde9cb16520e6f176f481 Reviewed-on: https://go-review.googlesource.com/c/website/+/356511 Reviewed-by: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Trust: Robert Findley <rfindley@google.com>
2021-10-27go.dev/_content: copy golang.org playground onto go.dev homepageJamal Carvalho
HTML and styles for the go.dev playground are copied from golang.org so that a playground section appears between the testimonials and "What’s possible with Go" sections. Change-Id: Ic7648462c7c27b22c057e05b3c0e8e2303d9643c Reviewed-on: https://go-review.googlesource.com/c/website/+/352549 Trust: Jamal Carvalho <jamal@golang.org> Trust: Julie Qiu <julie@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org> Website-Publish: Russ Cox <rsc@golang.org>
2021-08-18go.dev: pin footer to bottom of window frameRuss Cox
In very short pages like go.dev/blog (on large displays), the footer floats above the bottom and leaves a white bar. Get rid of that. Also fix link in blog post. Change-Id: Ib294e7af2d3c5be81facc6d5ab9faaaf329a50fa Reviewed-on: https://go-review.googlesource.com/c/website/+/343409 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Julie Qiu <julie@golang.org> Website-Publish: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
2021-08-18cmd/golangorg: move blog from blog.golang.org to go.dev/blogRuss Cox
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>
2021-05-24[x/go.dev] all: merge assets, content, data, layouts, static, templates into ↵Russ Cox
_content and _templates Simplify down to just _content and _templates. The leading underscore keeps the go command from looking there for packages, like in x/blog and x/website. content -> _content assets -> _content data -> _content static -> _content templates -> _templates layouts -> _templates/layouts Delete sha256-based consistency checks for css/styles.css. We don't do that for any other parts of the site; that file is not special enough to warrant this special handling. Change-Id: Ibad8b49883d599a8fa128942464026f3684518e8 X-GoDev-Commit: cd28665ca4bebc37fd485c866059c1ff261f7dcc