Commit ae34cfa
static/frontend: update the logo styling to not have an explicit width
If a company wants to run their own version of pkgsite, the easiest way to differentiate it from pkg.go.dev is to put their company logo (or some text, like INTERNAL) in the logo SVG next to the GO. However, doing so increases the width of the logo. In the current CSS, a wider logo means it gets shrunk down, because the width and height are constrained by css.
This CL removes the width constraint, so that the logo is allowed to be wider.
This will have a nearly imperceptible effect on the current pkg.go.dev style: the logo will be a few pixels wider. After a few pixels' width growth it becomes constrained by the height rule.
Note: This is doubly important as a CL to upstream because it's very hard to patch in this change, as it requires a change to the minified files. It's quite hard to come up with the appropriate sed command that performs a patch to the minified files.
Change-Id: I717553204888a7438a9f2c93f428bc166f095e09
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/685955
kokoro-CI: kokoro <[email protected]>
Reviewed-by: Jonathan Amsterdam <[email protected]>
Reviewed-by: Chressie Himpel <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Mark Freeman <[email protected]>1 parent d4de666 commit ae34cfa
File tree
77 files changed
+3
-4
lines changed- static
- frontend
- tests/screentest/testdata
- testcases.ci
- testcases
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
77 files changed
+3
-4
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| |||
0 commit comments