AdithyaSK HF Staff
sergiopaniego HF Staff
Update app/src/content/embeds/framework-cards.html (#4)
0cd9877 Download app/src/content/embeds/framework-cards.html from AdithyaSK/rl-environments-guide: direct link, hf CLI and curl.
- Browser
- Download file 13.7 kB
-
https://huggingface.co/spaces/AdithyaSK/rl-environments-guide/resolve/main/app/src/content/embeds/framework-cards.html
- Command line
-
hf download hf://spaces/AdithyaSK/rl-environments-guide/app/src/content/embeds/framework-cards.html
-
curl -L -o framework-cards.html https://huggingface.co/spaces/AdithyaSK/rl-environments-guide/resolve/main/app/src/content/embeds/framework-cards.html
13.7 kB
| <div class="fw-cards" style="width:100%;margin:14px 0;"></div> | |
| <style> | |
| .fw-cards { | |
| border: 1px solid var(--border-color); | |
| border-radius: 12px; | |
| background: var(--surface-bg); | |
| overflow: hidden; | |
| color: var(--text-color); | |
| } | |
| .fw-cards__head { | |
| display: flex; align-items: center; gap: 12px; | |
| padding: 8px 12px; | |
| border-bottom: 1px solid var(--border-color); | |
| background: color-mix(in oklab, var(--muted-color) 4%, transparent); | |
| flex-wrap: wrap; | |
| } | |
| .fw-cards__title { | |
| font-size: 10.5px; | |
| font-weight: 800; | |
| letter-spacing: 1px; | |
| text-transform: uppercase; | |
| color: var(--muted-color); | |
| margin-right: auto; | |
| } | |
| .fw-cards__view { | |
| display: inline-flex; | |
| background: var(--surface-bg); | |
| border: 1px solid var(--border-color); | |
| border-radius: 6px; | |
| padding: 2px; | |
| gap: 2px; | |
| } | |
| .fw-cards__view button { | |
| border: 0; | |
| background: transparent; | |
| color: var(--muted-color); | |
| font-size: 10.5px; | |
| font-weight: 700; | |
| padding: 5px 10px; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| letter-spacing: 0.4px; | |
| text-transform: uppercase; | |
| } | |
| .fw-cards__view button.active { | |
| color: var(--text-color); | |
| background: color-mix(in oklab, var(--text-color) 8%, transparent); | |
| } | |
| .fw-cards__body > div { display: none; } | |
| .fw-cards__body > div.active { display: block; } | |
| /* ── Cards view ── */ | |
| .fw-cards__grid { | |
| display: grid; | |
| grid-template-columns: repeat(3, minmax(0, 1fr)); | |
| gap: 12px; | |
| padding: 12px; | |
| background: color-mix(in oklab, var(--muted-color) 3%, transparent); | |
| } | |
| @media (max-width: 880px) { .fw-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } | |
| @media (max-width: 580px) { .fw-cards__grid { grid-template-columns: minmax(0, 1fr); } } | |
| .fw-card { | |
| position: relative; | |
| border: 1px solid var(--border-color); | |
| border-radius: 10px; | |
| background: var(--surface-bg); | |
| padding: 14px 14px 12px 14px; | |
| box-sizing: border-box; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| overflow: hidden; | |
| min-width: 0; | |
| } | |
| .fw-card::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; left: 0; right: 0; | |
| height: 2px; | |
| background: var(--fw-accent); | |
| } | |
| .fw-card__row { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: flex-start; | |
| gap: 10px; | |
| min-width: 0; | |
| } | |
| .fw-card__title-block { flex: 1 1 auto; min-width: 0; } | |
| .fw-card__name { | |
| font-size: 14.5px; | |
| font-weight: 700; | |
| color: var(--text-color); | |
| line-height: 1.2; | |
| } | |
| .fw-card__creator { | |
| font-size: 11px; | |
| color: var(--muted-color); | |
| margin-top: 2px; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .fw-card__transport { | |
| flex-shrink: 0; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 3px; | |
| padding: 2px 7px; | |
| border-radius: 999px; | |
| border: 1px solid color-mix(in oklab, var(--fw-accent) 30%, var(--border-color)); | |
| color: color-mix(in oklab, var(--fw-accent) 90%, var(--text-color)); | |
| background: color-mix(in oklab, var(--fw-accent) 10%, transparent); | |
| font-size: 9px; | |
| font-weight: 700; | |
| letter-spacing: 0.3px; | |
| text-transform: uppercase; | |
| white-space: nowrap; | |
| line-height: 1; | |
| } | |
| .fw-card__transport svg { width: 9px; height: 9px; flex-shrink: 0; } | |
| .fw-card__tagline { | |
| font-size: 12px; | |
| line-height: 1.5; | |
| color: var(--muted-color); | |
| } | |
| .fw-card__meta { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| flex-wrap: wrap; | |
| margin-top: auto; | |
| } | |
| .fw-card__pkg { | |
| font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; | |
| font-size: 11px; | |
| background: color-mix(in oklab, var(--muted-color) 8%, transparent); | |
| border: 1px solid var(--border-color); | |
| border-radius: 5px; | |
| padding: 2px 7px; | |
| color: var(--text-color); | |
| } | |
| .fw-card__pyver { | |
| font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; | |
| font-size: 10.5px; | |
| color: var(--muted-color); | |
| } | |
| .fw-card__action { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 5px; | |
| color: var(--muted-color); | |
| font-size: 11.5px; | |
| font-weight: 600; | |
| text-decoration: none; | |
| transition: color .12s ease; | |
| margin-left: auto; | |
| } | |
| .fw-card__action:hover { color: var(--fw-accent); } | |
| .fw-card__action svg { width: 12px; height: 12px; flex-shrink: 0; } | |
| /* ── Table view ── */ | |
| .fw-cards__table-wrap { overflow-x: auto; } | |
| .fw-cards__table-wrap table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| font-size: 12.5px; | |
| min-width: 640px; | |
| } | |
| .fw-cards__table-wrap thead th { | |
| text-align: left; | |
| font-size: 10.5px; | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| letter-spacing: 0.6px; | |
| color: var(--muted-color); | |
| padding: 10px 12px; | |
| border-bottom: 1px solid var(--border-color); | |
| background: color-mix(in oklab, var(--muted-color) 3%, transparent); | |
| white-space: nowrap; | |
| } | |
| .fw-cards__table-wrap tbody td { | |
| padding: 10px 12px; | |
| border-bottom: 1px solid color-mix(in oklab, var(--border-color) 60%, transparent); | |
| vertical-align: middle; | |
| color: var(--text-color); | |
| font-size: 12px; | |
| line-height: 1.5; | |
| } | |
| .fw-cards__table-wrap tbody tr:last-child td { border-bottom: 0; } | |
| .fw-cards__table-wrap tbody tr:hover td { | |
| background: color-mix(in oklab, var(--muted-color) 3%, transparent); | |
| } | |
| .fw-cards__table-wrap td.idx { | |
| font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; | |
| color: var(--muted-color); | |
| font-size: 11px; | |
| width: 28px; | |
| } | |
| .fw-cards__table-wrap td.fw-name { | |
| font-weight: 700; | |
| white-space: nowrap; | |
| } | |
| .fw-cards__table-wrap td.fw-name a { | |
| color: var(--text-color); | |
| text-decoration: none; | |
| border-bottom: 2px solid var(--fw-accent); | |
| padding-bottom: 1px; | |
| } | |
| .fw-cards__table-wrap td.fw-name a:hover { color: var(--fw-accent); } | |
| .fw-cards__table-wrap td.fw-name .swatch { | |
| width: 8px; height: 8px; border-radius: 50%; | |
| background: var(--fw-accent); | |
| display: inline-block; | |
| margin-right: 7px; | |
| vertical-align: middle; | |
| } | |
| .fw-cards__table-wrap code { | |
| background: color-mix(in oklab, var(--muted-color) 10%, transparent); | |
| border-radius: 3px; | |
| padding: 0 5px; | |
| font-size: 11px; | |
| font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; | |
| } | |
| .fwt-pill { | |
| display: inline-flex; align-items: center; gap: 4px; | |
| padding: 1px 8px; | |
| border-radius: 999px; | |
| font-size: 10.5px; | |
| font-weight: 700; | |
| letter-spacing: 0.4px; | |
| } | |
| .fwt-pill.http { background: color-mix(in oklab, #3b82f6 12%, transparent); color: color-mix(in oklab, #3b82f6 80%, var(--text-color)); border: 1px solid color-mix(in oklab, #3b82f6 30%, transparent); } | |
| .fwt-pill.inproc { background: color-mix(in oklab, #ec4899 10%, transparent); color: color-mix(in oklab, #ec4899 80%, var(--text-color)); border: 1px solid color-mix(in oklab, #ec4899 28%, transparent); } | |
| </style> | |
| <script> | |
| </script> | |