Files

19 lines
1.6 KiB
CSS

/* LogoWall (v2) - see LogoWall.jsx */
.v2-lw { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.v2-lw-track { display: flex; width: max-content; animation: v2-lw var(--lw-t, 46s) linear infinite; }
.v2-lw:hover .v2-lw-track, .v2-lw:focus-within .v2-lw-track { animation-play-state: paused; }
.v2-lw-half { display: flex; flex: none; }
.v2-lw-i { flex: none; display: grid; place-items: center; width: clamp(150px, 15vw, 220px); height: 88px; color: var(--ink); text-decoration: none; opacity: .6; transition: opacity .4s cubic-bezier(.16, 1, .3, 1); }
.v2-lw-i:hover { opacity: 1; }
.v2-lw-i img { max-width: 132px; max-height: 32px; object-fit: contain; filter: grayscale(1); }
.v2-lw-name { font: 600 22px/1 var(--sans); letter-spacing: -.03em; text-transform: capitalize; white-space: nowrap; }
@keyframes v2-lw { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
.v2-lw { -webkit-mask-image: none; mask-image: none; }
.v2-lw-track { animation: none; width: auto; justify-content: center; }
.v2-lw-half { flex-wrap: wrap; justify-content: center; }
.v2-lw-half + .v2-lw-half, .v2-lw-half > [aria-hidden='true'] { display: none; }
}
@media (max-width: 900px) { .v2-lw-i { width: 140px; height: 72px; } .v2-lw-i img { max-width: 104px; max-height: 26px; } .v2-lw-name { font-size: 18px; } }
html.dark .v2-lw-i img { filter: grayscale(1) brightness(0) invert(1); } /* James 8 Nov: logos white in dark mode */