Download web/src/styles/sdlc76/catalog-library.css from fsanyoto/loopable: direct link, hf CLI and curl.
- Browser
- Download file 7.46 kB
-
https://huggingface.co/spaces/fsanyoto/loopable/resolve/main/web/src/styles/sdlc76/catalog-library.css
- Command line
-
hf download hf://spaces/fsanyoto/loopable/web/src/styles/sdlc76/catalog-library.css
-
curl -L -o catalog-library.css https://huggingface.co/spaces/fsanyoto/loopable/resolve/main/web/src/styles/sdlc76/catalog-library.css
7.46 kB
| /* refs: company/reference/Mobbin catalog library 1.webp and 2.webp. */ | |
| .cg-catalog-library, | |
| .cg-catalog-record { | |
| min-width: 0; | |
| width: 100%; | |
| height: 100%; | |
| overflow: auto; | |
| padding: var(--lp-content-inset); | |
| color: var(--lp-ink); | |
| font-size: var(--lp-fs-sm); | |
| box-sizing: border-box; | |
| } | |
| .cg-catalog-library-head, | |
| .cg-catalog-record-head { | |
| display: flex; | |
| align-items: center; | |
| gap: var(--lp-home-grid-gap); | |
| margin-bottom: var(--lp-section-gap); | |
| } | |
| .cg-catalog-library-head h2, | |
| .cg-catalog-record-head h2 { | |
| margin: 0; | |
| flex: 1; | |
| min-width: 0; | |
| font-size: var(--lp-fs-lg); | |
| font-weight: var(--lp-fw-semibold); | |
| } | |
| .cg-catalog-library-grid { | |
| display: grid; | |
| grid-template-columns: repeat(5, minmax(0, 1fr)); | |
| grid-auto-rows: 236px; | |
| gap: var(--lp-home-grid-gap); | |
| align-content: start; | |
| min-height: calc((236px + var(--lp-home-grid-gap)) * var(--catalog-page-size) / 5 - var(--lp-home-grid-gap) + var(--lp-home-pagination-inset)); | |
| padding-bottom: var(--lp-home-pagination-inset); | |
| } | |
| .cg-catalog-library-card { | |
| position: relative; | |
| min-width: 0; | |
| border-radius: var(--lp-r-home-tile); | |
| background: var(--lp-surface); | |
| box-shadow: var(--lp-home-tile-shadow); | |
| transition: transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); | |
| } | |
| .cg-catalog-library-open, | |
| .cg-catalog-library-more, | |
| .cg-catalog-library-menu button { | |
| border: 0; | |
| background: transparent; | |
| font: inherit; | |
| color: inherit; | |
| cursor: pointer; | |
| } | |
| .cg-catalog-library-open { | |
| display: flex; | |
| flex-direction: column; | |
| gap: var(--lp-home-grid-gap); | |
| width: 100%; | |
| height: 100%; | |
| padding: var(--lp-home-tile-inset); | |
| border-radius: inherit; | |
| text-align: left; | |
| } | |
| .cg-catalog-library-cover { | |
| display: grid; | |
| grid-template-rows: minmax(0, 1fr); | |
| place-items: center; | |
| width: 100%; | |
| height: 116px; | |
| overflow: hidden; | |
| background: var(--lp-wash); | |
| color: var(--lp-muted); | |
| border-radius: var(--lp-r-sm); | |
| } | |
| .cg-catalog-library-cover img { | |
| min-height: 0; | |
| width: 100%; | |
| height: 100%; | |
| object-fit: contain; | |
| } | |
| .cg-catalog-library-cover > svg { | |
| width: 40px; | |
| height: 52px; | |
| fill: none; | |
| stroke: currentColor; | |
| stroke-width: 1.5; | |
| } | |
| .cg-catalog-library-copy { | |
| display: flex; | |
| flex-direction: column; | |
| gap: var(--lp-home-pagination-gap); | |
| min-width: 0; | |
| padding-right: var(--lp-home-pagination-control-size); | |
| font-size: var(--lp-fs-2xs); | |
| color: var(--lp-muted); | |
| font-variant-numeric: tabular-nums; | |
| } | |
| .cg-catalog-library-copy strong { | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| font-weight: var(--lp-fw-semibold); | |
| font-size: var(--lp-fs-sm); | |
| color: var(--lp-ink); | |
| } | |
| .cg-catalog-library-more { | |
| position: absolute; | |
| right: var(--lp-home-pagination-gap); | |
| bottom: var(--lp-home-tile-inset); | |
| display: grid; | |
| place-items: center; | |
| width: var(--lp-home-pagination-control-size); | |
| height: var(--lp-home-pagination-control-size); | |
| border-radius: var(--lp-r-sm); | |
| fill: currentColor; | |
| } | |
| .cg-catalog-library-more[aria-expanded="true"], | |
| .cg-catalog-library-menu button:hover, | |
| .cg-catalog-library-menu button:focus-visible { | |
| background: var(--lp-wash); | |
| } | |
| .cg-catalog-library-open:focus-visible, | |
| .cg-catalog-library-more:focus-visible, | |
| .cg-catalog-library-menu button:focus-visible, | |
| .cg-catalog-library-name input:focus-visible, | |
| .cg-catalog-record-page input:focus-visible, | |
| .cg-catalog-record-page textarea:focus-visible { | |
| outline: 2px solid var(--lp-blue-deep); | |
| outline-offset: 2px; | |
| } | |
| .cg-catalog-library-menu { | |
| min-width: 160px; | |
| padding: var(--lp-home-pagination-gap); | |
| border: var(--lp-hairline-width) solid var(--lp-line); | |
| border-radius: var(--lp-r-md); | |
| background: var(--lp-surface); | |
| color: var(--lp-ink); | |
| box-shadow: var(--lp-panel-shadow); | |
| transform-origin: top right; | |
| animation: catalog-menu-enter var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); | |
| } | |
| .cg-catalog-library-menu button { | |
| display: block; | |
| width: 100%; | |
| min-height: var(--lp-home-pagination-control-size); | |
| padding: var(--lp-home-pagination-gap) var(--lp-home-tile-inset); | |
| border-radius: var(--lp-r-sm); | |
| text-align: left; | |
| font-size: var(--lp-fs-sm); | |
| } | |
| .cg-catalog-library-menu .is-destructive, | |
| .cg-catalog-library-error { | |
| color: var(--lp-red-deep); | |
| } | |
| .cg-catalog-library-error { | |
| display: flex; | |
| align-items: center; | |
| gap: var(--lp-home-grid-gap); | |
| margin-bottom: var(--lp-home-grid-gap); | |
| font-size: var(--lp-fs-sm); | |
| } | |
| .cg-catalog-library-loading, | |
| .cg-catalog-library-empty { | |
| grid-column: 1 / -1; | |
| align-self: center; | |
| justify-self: center; | |
| text-align: center; | |
| color: var(--lp-muted); | |
| } | |
| .cg-catalog-library-empty h3 { | |
| font-size: var(--lp-fs-sm); | |
| font-weight: var(--lp-fw-semibold); | |
| } | |
| .cg-catalog-library-name, | |
| .cg-catalog-record-page label { | |
| display: grid; | |
| gap: var(--lp-home-pagination-gap); | |
| font-size: var(--lp-fs-sm); | |
| } | |
| .cg-catalog-library-name input, | |
| .cg-catalog-record-page input, | |
| .cg-catalog-record-page textarea { | |
| width: 100%; | |
| box-sizing: border-box; | |
| border: var(--lp-hairline-width) solid var(--lp-line); | |
| border-radius: var(--lp-r-sm); | |
| padding: var(--lp-home-pagination-gap); | |
| background: var(--lp-surface); | |
| color: var(--lp-ink); | |
| font: inherit; | |
| } | |
| .cg-catalog-record-body { | |
| display: grid; | |
| grid-template-columns: 200px minmax(0, 1fr); | |
| gap: var(--lp-section-gap); | |
| min-height: 400px; | |
| } | |
| .cg-catalog-record-pages { | |
| display: flex; | |
| flex-direction: column; | |
| gap: var(--lp-home-pagination-gap); | |
| overflow: auto; | |
| } | |
| .cg-catalog-record-pages .cg-btn { | |
| white-space: normal; | |
| text-align: left; | |
| } | |
| .cg-catalog-record-pages [aria-current="page"] { | |
| background: var(--lp-blue-tint); | |
| color: var(--lp-blue-deep); | |
| } | |
| .cg-catalog-record-page { | |
| display: flex; | |
| flex-direction: column; | |
| gap: var(--lp-home-grid-gap); | |
| min-width: 0; | |
| } | |
| .cg-catalog-record-page img { | |
| max-width: 100%; | |
| height: 120px; | |
| object-fit: contain; | |
| } | |
| .cg-catalog-library button:disabled { | |
| opacity: var(--lp-home-disabled-opacity); | |
| cursor: not-allowed; | |
| } | |
| @keyframes catalog-menu-enter { | |
| from { opacity: 0; transform: translateY(-4px) scale(.98); } | |
| to { opacity: 1; transform: none; } | |
| } | |
| @media (hover: hover) and (pointer: fine) { | |
| .cg-catalog-library-card:hover { | |
| transform: translateY(var(--lp-home-tile-lift)); | |
| box-shadow: var(--lp-home-tile-shadow-hover); | |
| } | |
| .cg-catalog-library-more:hover { background: var(--lp-wash); } | |
| .cg-catalog-library-open:active { transform: scale(.99); } | |
| } | |
| @media (max-width: 1100px) { | |
| .cg-catalog-library-grid { | |
| grid-template-columns: repeat(3, minmax(0, 1fr)); | |
| min-height: calc((236px + var(--lp-home-grid-gap)) * round(up, var(--catalog-page-size) / 3) - var(--lp-home-grid-gap) + var(--lp-home-pagination-inset)); | |
| } | |
| } | |
| @media (max-width: 640px) { | |
| .cg-catalog-library-grid { | |
| grid-template-columns: repeat(2, minmax(0, 1fr)); | |
| min-height: calc((236px + var(--lp-home-grid-gap)) * var(--catalog-page-size) / 2 - var(--lp-home-grid-gap) + var(--lp-home-pagination-inset)); | |
| } | |
| .cg-catalog-library-head, | |
| .cg-catalog-record-head { flex-wrap: wrap; } | |
| .cg-catalog-record-body { grid-template-columns: minmax(0, 1fr); } | |
| .cg-catalog-record-pages { max-height: 160px; } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .cg-catalog-library-card, | |
| .cg-catalog-library-menu, | |
| .cg-catalog-library-open { animation: none; transition: none; transform: none; } | |
| .cg-catalog-library-card:hover, | |
| .cg-catalog-library-open:active { transform: none; } | |
| } | |