diff --git a/pkg/web/static/overrides.css b/pkg/web/static/overrides.css index eba04832acb120c73694275096dee61ca1ab3fdd..00676fec24fc416095883ed48df9c47d79a6e1f2 100644 --- a/pkg/web/static/overrides.css +++ b/pkg/web/static/overrides.css @@ -88,6 +88,16 @@ pre.chroma { background: var(--pico-code-background-color); } +section[aria-labelledby="diff-heading"] article h4 .secondary { + opacity: 0; + transition: opacity 0.2s ease-in-out; +} + +section[aria-labelledby="diff-heading"] article h4:hover .secondary, +section[aria-labelledby="diff-heading"] article h4:focus-within .secondary { + opacity: 1; +} + :root { --pico-font-family-sans-serif: "Atkinson Hyperlegible Next","Atkinson Hyperlegible",system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif,var(--pico-font-family-emoji); --pico-font-family-monospace: "0xProto","JetBrains Mono",ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace,var(--pico-font-family-emoji); diff --git a/pkg/web/templates/commit.html b/pkg/web/templates/commit.html index 6bf01433219cfb4a6c0c7e8aeac43b139b4a7507..7a0c131475df28dd5936c51c0e08977d98a17e6b 100644 --- a/pkg/web/templates/commit.html +++ b/pkg/web/templates/commit.html @@ -52,6 +52,7 @@ {{else}} {{.Name}} {{end}} + 🔗
{{range .Sections}}{{range .Lines}}{{if eq .Type 2}}{{.Content}}{{else if eq .Type 3}}{{.Content}}{{else}}{{.Content}}{{end}}
 {{end}}{{end}}