Skip to content

Commit

Permalink
static/shared: fix for icon to appear in high contrast mode
Browse files Browse the repository at this point in the history
https://screencast.googleplex.com/cast/NDY5OTc3NDYwNDI3OTgwOHwwNmFjYmRjMi04Yg

Change-Id: Icd714b97da87bda5981e38e0f74a17c650445dff
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/516835
kokoro-CI: kokoro <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
Run-TryBot: Jamal Carvalho <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Jamal Carvalho <[email protected]>
  • Loading branch information
Prudhvi Krishna Chintala authored and jamalc committed Aug 25, 2023
1 parent e9097fe commit 9c695c0
Show file tree
Hide file tree
Showing 70 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/frontend/frontend.min.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions static/frontend/frontend.min.css.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions static/shared/icon/icon.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
.go-Icon--inverted {
filter: brightness(0) saturate(100%) invert(100%) sepia(97%) saturate(13%) hue-rotate(245deg)
brightness(103%) contrast(107%);
@media (forced-colors: active) and (prefers-color-scheme: light) {
filter: brightness(500%) saturate(100%) invert(100%) sepia(97%) saturate(13%) hue-rotate(245deg)
brightness(103%) contrast(107%);
}
}

[data-theme='dark'] .go-Icon:not(.go-Icon--accented) {
Expand Down
Binary file modified tests/screentest/testdata/404-with-fetch-button-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/404-with-fetch-button.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/about-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/about.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/badge-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/badge.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-entry-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-entry.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-list-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-list.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-no-results-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-no-results.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-nonstdlib-module-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-nonstdlib-module.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-search-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-search.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-stdlib-module-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-stdlib-module.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln-toolchain-module.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/ci/vuln.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/deprecated-package-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/deprecated-package.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/error-540x1080.a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/screentest/testdata/error.a.png
Binary file modified tests/screentest/testdata/home-540x1080.a.png
Binary file modified tests/screentest/testdata/home.a.png
Binary file modified tests/screentest/testdata/license-policy-540x1080.a.png
Binary file modified tests/screentest/testdata/license-policy.a.png
Binary file modified tests/screentest/testdata/module-that-is-also-a-package.a.png
Binary file modified tests/screentest/testdata/nav-submenu.a.png
Binary file modified tests/screentest/testdata/no-documentation-540x1080.a.png
Binary file modified tests/screentest/testdata/no-documentation.a.png
Binary file modified tests/screentest/testdata/package-with-deprecated-symbols.a.png
Binary file modified tests/screentest/testdata/package-with-multi-GOOS.a.png
Binary file modified tests/screentest/testdata/package-with-multiple-licenses.a.png
Binary file modified tests/screentest/testdata/really-long-import-path.a.png
Binary file modified tests/screentest/testdata/retracted-package-540x1080.a.png
Binary file modified tests/screentest/testdata/retracted-package.a.png
Binary file modified tests/screentest/testdata/search-help-540x1080.a.png
Binary file modified tests/screentest/testdata/search-help.a.png
Binary file modified tests/screentest/testdata/search-no-results-540x1080.a.png
Binary file modified tests/screentest/testdata/search-no-results.a.png
Binary file modified tests/screentest/testdata/short-readme-has-no-toggle.a.png
Binary file modified tests/screentest/testdata/standard-library-540x1080.a.png
Binary file modified tests/screentest/testdata/standard-library-package.a.png
Binary file modified tests/screentest/testdata/standard-library.a.png
Binary file modified tests/screentest/testdata/sub-repositories-540x1080.a.png
Binary file modified tests/screentest/testdata/sub-repositories.a.png
Binary file modified tests/screentest/testdata/x-tools-540x1080.a.png
Binary file modified tests/screentest/testdata/x-tools-readme-expanded.a.png
Binary file modified tests/screentest/testdata/x-tools.a.png

0 comments on commit 9c695c0

Please sign in to comment.