From 8910d629fe52122351f3a42ebf06f5c278dcf91e Mon Sep 17 00:00:00 2001 From: Alexander Hunt Date: Sat, 1 Nov 2025 14:20:29 -0700 Subject: Fix logo color for git and for oauth2 proxy --- .../src/templates/volumes/soft-serve/hooks/update | 2 +- .../volumes/oauth2proxy/templates/sign_in.html | 30 +++++++++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) (limited to 'playbooks/roles') diff --git a/playbooks/roles/src/templates/volumes/soft-serve/hooks/update b/playbooks/roles/src/templates/volumes/soft-serve/hooks/update index 7d52fcf..c39d55f 100755 --- a/playbooks/roles/src/templates/volumes/soft-serve/hooks/update +++ b/playbooks/roles/src/templates/volumes/soft-serve/hooks/update @@ -4,7 +4,7 @@ function logo() { git config --global color.ui auto -cat <<'EOF' +cat <<'EOF' | while IFS= read -r line; do echo -e "$line"; done {{ colored_logo }} EOF } diff --git a/playbooks/roles/traefik/templates/volumes/oauth2proxy/templates/sign_in.html b/playbooks/roles/traefik/templates/volumes/oauth2proxy/templates/sign_in.html index 17d3718..60b9b92 100644 --- a/playbooks/roles/traefik/templates/volumes/oauth2proxy/templates/sign_in.html +++ b/playbooks/roles/traefik/templates/volumes/oauth2proxy/templates/sign_in.html @@ -54,11 +54,39 @@ .button:hover { background-color: var(--yellow); } + .logo { + font-family: monospace; + font-size: 1rem; + line-height: 1; + white-space: pre; + overflow-x: auto; + overflow-y: hidden; + } + .logo-line { + display: flex; + } + .logo-char { + display: inline-block; + min-width: 1ch; + width: 1ch; + max-width: 1ch; + text-align: center; + overflow: hidden; + white-space: nowrap; + }
- +
{{ '{{' }} if .SignInMessage {{ '}}' }} -- cgit v1.2.3-70-g09d2