Changeset 38120c7 in Klonkt for src/assets
- Timestamp:
- 06/30/2026 11:38:24 PM (2 months ago)
- Branches:
- main
- Children:
- 2a58d76
- Parents:
- 86fa2d2
- File:
-
- 1 edited
-
src/assets/css/style.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/assets/css/style.css
r86fa2d2 r38120c7 1937 1937 color-mix(in srgb, var(--accent, #888) 6%, var(--paper-2, var(--paper))) 100%); 1938 1938 } 1939 .post-list-cover img {1939 .post-list-cover img, .post-list-cover video { 1940 1940 width: 100%; height: 100%; 1941 object-fit: cover; 1941 object-fit: cover; /* fill the square, keep aspect, crop the overflow, centered */ 1942 object-position: center; 1942 1943 display: block; 1943 1944 background-color: #fff; /* transparent logos sit on white once loaded */ … … 2401 2402 .grid-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: opacity .4s ease; } 2402 2403 .grid-tile-img.is-loading { opacity: 0; } 2403 /* A video cover keeps its own aspect ratio inside the square tile (centered, letterboxed) instead2404 of zoom-cropping a wide video to fill. Images stay object-fit:cover. */2405 video.grid-tile-img { object-fit: contain; background: var(--paper-2, #0a0e1a); }2406 2404 .grid-tile:hover { transform: scale(0.98); } 2407 2405 .grid-tile-overlay {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)