Download web/src/styles/sdlc79/shared-mark.css from fsanyoto/loopable: direct link, hf CLI and curl.
- Browser
- Download file 2.53 kB
-
https://huggingface.co/spaces/fsanyoto/loopable/resolve/9291c0100f4e7b8da2efcbbf1ebdea72ee1663e7/web/src/styles/sdlc79/shared-mark.css
- Command line
-
hf download hf://spaces/fsanyoto/loopable@9291c0100f4e7b8da2efcbbf1ebdea72ee1663e7/web/src/styles/sdlc79/shared-mark.css
-
curl -L -o shared-mark.css https://huggingface.co/spaces/fsanyoto/loopable/resolve/9291c0100f4e7b8da2efcbbf1ebdea72ee1663e7/web/src/styles/sdlc79/shared-mark.css
2.53 kB
| /* S79-T61 (R54): the one shared icon. It sits at the end of the tile's row, left of the tile's | |
| right-hand controls and never under them. The box has a fixed size. While marks are pending every | |
| tile holds it empty (`.is-empty`), so a late icon fills reserved space with no shift. Once marks | |
| settle an unshared tile drops it, which only gives the name more room. */ | |
| .home-shared-mark { | |
| flex: none; | |
| inline-size: 14px; | |
| block-size: 14px; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin-inline-start: auto; | |
| color: var(--lp-muted); | |
| cursor: default; | |
| } | |
| /* The tooltip hangs from the tile, not the icon: aligned to the tile's end it stays inside the | |
| tile's own column, so the module panel's edge never clips it. */ | |
| .home-tile:has(> .home-shared-mark) { | |
| position: relative; | |
| } | |
| .home-shared-mark::after { | |
| content: attr(data-tip); | |
| position: absolute; | |
| inset-block-end: calc(100% + var(--lp-panel-inset)); | |
| inset-inline-end: 0; | |
| z-index: 2; | |
| padding: var(--lp-hairline-width) var(--lp-panel-inset); | |
| border-radius: var(--lp-r-sm); | |
| background: var(--lp-ink); | |
| color: var(--lp-surface); | |
| font-size: var(--lp-fs-2xs); | |
| font-weight: 500; | |
| line-height: 1.6; | |
| white-space: nowrap; | |
| pointer-events: none; | |
| opacity: 0; | |
| transition: opacity var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); | |
| } | |
| .home-shared-mark:hover::after, | |
| .home-tile:focus-visible .home-shared-mark::after { | |
| opacity: 1; | |
| transition-delay: 300ms; | |
| } | |
| /* A tile with an actions menu already keeps room between its name and its star. The icon takes that | |
| room, out of flow, so the name column there is exactly as wide as it was before this icon existed. */ | |
| .home-item-tile.can-manage .home-shared-mark { | |
| position: absolute; | |
| inset-block-start: 50%; | |
| inset-inline-end: calc(var(--lp-panel-inset) + var(--lp-home-pagination-control-size) + 26px); | |
| translate: 0 -50%; | |
| } | |
| .home-item-tile.can-manage .home-shared-mark::after { | |
| inset-inline-end: calc(-1 * (var(--lp-panel-inset) + var(--lp-home-pagination-control-size) + 26px)); | |
| } | |
| /* A mark that lands after the tiles painted fades in: opacity only, the feedback tokens. */ | |
| .home-shared-mark.is-arriving { | |
| animation: home-shared-arrive var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing) both; | |
| } | |
| @keyframes home-shared-arrive { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .home-shared-mark::after { transition: none; } | |
| .home-shared-mark.is-arriving { animation: none; } | |
| } | |