go.dev/_content/css: move header bar to edges of page, like footer

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>
This commit is contained in:
Russ Cox 2021-11-17 14:12:38 -05:00
Родитель 1765241095
Коммит 36da86b3f1
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -160,7 +160,6 @@ a:hover {
display: flex;
justify-content: space-between;
margin: 0 auto;
max-width: 75.75rem;
min-height: 2.5rem;
padding: 0.5rem 1.5rem;
}
@ -207,6 +206,8 @@ a:hover {
.Header,
.Container {
margin: 0 auto;
}
.Container {
max-width: 75.75rem;
}
.Container--padded {