style: make client logos grey with opacity

This commit is contained in:
Chaoming Li 2024-11-19 23:27:24 +11:00
parent 6b6c9492ae
commit ab9d07545f

View file

@ -5,11 +5,11 @@
<div class="logo-scroll">
<div class="logos-slide{{ if ne (.Get "animate" | default "true") "false" }} animate{{ end }}">
{{ range .Page.Params.client_logos }}
<img src="{{ .logo | relURL }}" alt="{{ .name }}" />
<img src="{{ .logo | relURL }}" class="h-20" alt="{{ .name }}" />
{{ end }}
{{ if ne (.Get "animate" | default "true") "false" }}
{{ range .Page.Params.client_logos }}
<img src="{{ .logo | relURL }}" alt="{{ .name }}" />
<img src="{{ .logo | relURL }}" class="h-20" alt="{{ .name }}" />
{{ end }}
{{ end }}
</div>
@ -48,10 +48,12 @@
}
.logos-slide img {
height: 48px;
max-height: 1.5rem;
margin: 0 40px;
display: inline-block;
vertical-align: middle;
filter: grayscale(100%);
opacity: 0.6;
}
.logo-scroll.static .logos-slide img {