Download web/src/styles/sdlc79/ranking-diagnostic.css from fsanyoto/loopable: direct link, hf CLI and curl.
- Browser
- Download file 14.5 kB
-
https://huggingface.co/spaces/fsanyoto/loopable/resolve/main/web/src/styles/sdlc79/ranking-diagnostic.css
- Command line
-
hf download hf://spaces/fsanyoto/loopable/web/src/styles/sdlc79/ranking-diagnostic.css
-
curl -L -o ranking-diagnostic.css https://huggingface.co/spaces/fsanyoto/loopable/resolve/main/web/src/styles/sdlc79/ranking-diagnostic.css
14.5 kB
| /* S79-T20: the Ranking diagnostic App screen. Tokens only. The dispatcher draws the frame; this is its body. */ | |
| .rd-app { | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| flex: 1 1 0; | |
| min-width: 0; | |
| min-height: 0; | |
| overflow: hidden; | |
| background: var(--lp-surface); | |
| color: var(--lp-ink); | |
| font-size: var(--lp-fs-sm); | |
| } | |
| .rd-scroll { | |
| container: rd / inline-size; | |
| flex: 1 1 0; | |
| min-height: 0; | |
| overflow-x: hidden; | |
| overflow-y: auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| /* Buttons reset native chrome first (DESIGN.md §4). */ | |
| .rd-tab, | |
| .rd-card, | |
| .rd-button, | |
| .rd-link, | |
| .rd-open { | |
| border: 0; | |
| background: transparent; | |
| font: inherit; | |
| color: inherit; | |
| cursor: pointer; | |
| } | |
| .rd-toolbar { display: flex; align-items: center; gap: 8px; min-height: 32px; } | |
| .rd-week { display: flex; align-items: center; gap: 8px; } | |
| .rd-week .rd-select { width: auto; min-width: 144px; } | |
| .rd-week-text { margin: 0; color: var(--lp-muted); font-size: var(--lp-fs-xs); font-variant-numeric: tabular-nums; } | |
| /* Status tabs: one card per tab, label over its count. */ | |
| .rd-tabs { | |
| display: grid; | |
| grid-template-columns: repeat(6, minmax(0, 1fr)); | |
| gap: 8px; | |
| } | |
| .rd-tab, | |
| .rd-card { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: flex-start; | |
| gap: 4px; | |
| min-width: 0; | |
| padding: 8px 12px; | |
| border: var(--lp-hairline-width) solid var(--lp-line); | |
| border-radius: var(--lp-r-md); | |
| text-align: left; | |
| transition: transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); | |
| } | |
| .rd-tab:hover, | |
| .rd-card:hover { background: var(--lp-wash); } | |
| .rd-tab:active, | |
| .rd-card:active { transform: scale(0.98); } | |
| .rd-tab.is-active, | |
| .rd-card.is-active { border-color: var(--lp-blue-deep); background: var(--lp-blue-tint); } | |
| .rd-tab-label, | |
| .rd-card-label { color: var(--lp-muted); font-size: var(--lp-fs-xs); } | |
| .rd-tab.is-active .rd-tab-label, | |
| .rd-card.is-active .rd-card-label { color: var(--lp-ink); } | |
| .rd-tab-count, | |
| .rd-card-value { | |
| font-size: var(--lp-fs-md); | |
| font-weight: var(--lp-fw-semibold); | |
| font-variant-numeric: tabular-nums; | |
| } | |
| .rd-body { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| min-width: 0; | |
| } | |
| .rd-problems { display: flex; flex-direction: column; gap: 4px; } | |
| .rd-problem { margin: 0; color: var(--lp-ink); background: transparent; } | |
| .rd-empty, | |
| .rd-note { margin: 0; color: var(--lp-ink); } | |
| .rd-error { margin: 0; color: var(--lp-red-deep); } | |
| .rd-muted { color: var(--lp-muted); } | |
| .rd-button { | |
| min-height: 32px; | |
| padding: 0 12px; | |
| border-radius: var(--lp-r-sm); | |
| background: var(--lp-wash); | |
| color: var(--lp-ink); | |
| font-size: var(--lp-fs-xs); | |
| transition: transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing), | |
| opacity var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); | |
| } | |
| .rd-button.is-primary { | |
| background: var(--lp-primary); | |
| color: var(--lp-surface); | |
| font-weight: var(--lp-fw-semibold); | |
| } | |
| .rd-button.is-primary:hover:not(:disabled) { background: var(--lp-primary-hover); } | |
| .rd-button.is-quiet { background: transparent; color: var(--lp-muted); } | |
| .rd-button.is-quiet:hover { background: var(--lp-wash); color: var(--lp-ink); } | |
| .rd-button:active:not(:disabled) { transform: scale(0.97); } | |
| .rd-button:disabled { opacity: var(--lp-home-disabled-opacity); cursor: default; } | |
| .rd-link { | |
| padding: 0; | |
| color: var(--lp-blue-deep); | |
| text-decoration: underline; | |
| } | |
| .rd-open { | |
| padding: 0; | |
| text-align: left; | |
| color: var(--lp-ink); | |
| font-weight: 500; | |
| font-variant-numeric: tabular-nums; | |
| overflow-wrap: anywhere; | |
| } | |
| .rd-open:hover { color: var(--lp-blue-deep); text-decoration: underline; } | |
| .rd-tab:focus-visible, | |
| .rd-card:focus-visible, | |
| .rd-button:focus-visible, | |
| .rd-link:focus-visible, | |
| .rd-open:focus-visible, | |
| .rd-select:focus-visible { | |
| outline: 2px solid var(--lp-blue-deep); | |
| outline-offset: 2px; | |
| } | |
| /* One table, fixed columns. */ | |
| .rd-table { | |
| width: 100%; | |
| table-layout: fixed; | |
| border-collapse: collapse; | |
| font-size: var(--lp-fs-xs); | |
| } | |
| .rd-table th { | |
| text-align: left; | |
| font-weight: 500; | |
| color: var(--lp-muted); | |
| padding: 8px; | |
| border-bottom: var(--lp-hairline-width) solid var(--lp-line); | |
| } | |
| .rd-table td { | |
| padding: 8px; | |
| vertical-align: top; | |
| border-bottom: var(--lp-hairline-width) solid var(--lp-line); | |
| overflow-wrap: anywhere; | |
| } | |
| .rd-table .is-num { text-align: right; font-variant-numeric: tabular-nums; } | |
| .rd-table th.is-num { text-align: right; } | |
| .rd-drops .rd-col-asin { width: auto; } | |
| .rd-drops .rd-col-rank { width: 88px; } | |
| .rd-drops .rd-col-change { width: 112px; } | |
| .rd-drops .rd-col-trend { width: 120px; } | |
| .rd-drops .rd-col-owner { width: 12%; } | |
| .rd-drops .rd-col-status { width: 112px; } | |
| .rd-asins .rd-col-asin { width: 40%; } | |
| .rd-asins .rd-col-units { width: 96px; } | |
| .rd-asins .rd-col-sales { width: 120px; } | |
| .rd-sub { display: block; margin-top: 2px; color: var(--lp-muted); } | |
| .rd-unit-word { display: none; } | |
| .rd-status { color: var(--lp-ink); white-space: nowrap; } | |
| /* S82-T59 (R6): status reads as a coloured pill; the weekly rank line draws in the row. */ | |
| .rd-chip { | |
| display: inline-block; | |
| padding: 2px 8px; | |
| border-radius: var(--lp-r-pill); | |
| font-size: var(--lp-fs-2xs); | |
| font-weight: 500; | |
| white-space: nowrap; | |
| } | |
| .rd-chip.is-open { background: var(--lp-red-tint); color: var(--lp-red-deep); } | |
| .rd-chip.is-progress { background: var(--lp-yellow-tint); color: var(--lp-yellow-deep); } | |
| .rd-chip.is-fixed { background: var(--lp-green-tint); color: var(--lp-green-deep); } | |
| .rd-chip.is-ignored { background: var(--lp-wash); color: var(--lp-muted); } | |
| .rd-spark { display: block; overflow: visible; } | |
| .rd-spark.is-up polyline { stroke: var(--lp-green-deep); } | |
| .rd-spark.is-down polyline { stroke: var(--lp-red-deep); } | |
| .rd-spark.is-up circle { fill: var(--lp-green-deep); } | |
| .rd-spark.is-down circle { fill: var(--lp-red-deep); } | |
| .rd-product-title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| .rd-row-details { margin-top: 4px; color: var(--lp-muted); } | |
| .rd-row-details summary { cursor: pointer; } | |
| /* S82-T59: the first-run screen, shown until two weekly syncs are held. */ | |
| .rd-first { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 24px; | |
| max-width: 880px; | |
| padding: 24px 0; | |
| } | |
| .rd-first-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; } | |
| .rd-first-title { margin: 0; font-size: var(--lp-fs-lg); font-weight: 600; color: var(--lp-ink); } | |
| .rd-first-held { margin: 0; color: var(--lp-muted); font-variant-numeric: tabular-nums; } | |
| .rd-first-meter { | |
| width: 240px; | |
| height: 6px; | |
| border-radius: var(--lp-r-pill); | |
| background: var(--lp-wash); | |
| overflow: hidden; | |
| } | |
| .rd-first-meter span { display: block; height: 100%; background: var(--lp-primary); } | |
| .rd-first-action { display: inline-flex; align-items: center; margin-top: 8px; text-decoration: none; } | |
| .rd-first-steps { | |
| display: grid; | |
| grid-template-columns: repeat(3, minmax(0, 1fr)); | |
| gap: 12px; | |
| margin: 0; | |
| padding: 0; | |
| list-style: none; | |
| } | |
| .rd-first-step { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 4px; | |
| padding: 16px; | |
| border: var(--lp-hairline-width) solid var(--lp-line); | |
| border-radius: var(--lp-r-md); | |
| background: var(--lp-surface); | |
| } | |
| .rd-first-number { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 24px; | |
| height: 24px; | |
| border-radius: var(--lp-r-pill); | |
| background: var(--lp-blue-tint); | |
| color: var(--lp-blue-deep); | |
| font-weight: 600; | |
| font-size: var(--lp-fs-xs); | |
| } | |
| .rd-first-step-title { font-weight: 600; color: var(--lp-ink); } | |
| .rd-first-step-line { color: var(--lp-muted); font-size: var(--lp-fs-xs); } | |
| .rd-drawer-body { display: flex; flex-direction: column; gap: 12px; } | |
| .rd-foot { | |
| display: flex; | |
| flex-wrap: wrap; | |
| align-items: center; | |
| gap: 8px 16px; | |
| } | |
| .rd-results { color: var(--lp-muted); font-size: var(--lp-fs-xs); font-variant-numeric: tabular-nums; } | |
| .rd-foot .rd-button { margin-left: auto; } | |
| .rd-skeleton-rows { display: flex; flex-direction: column; gap: 8px; } | |
| .rd-skeleton { | |
| height: 32px; | |
| border-radius: var(--lp-r-sm); | |
| background: var(--lp-wash); | |
| } | |
| .rd-skeleton.is-chart { height: 200px; } | |
| /* The item drawer: right side, inside the App panel, over the list. */ | |
| .rd-drawer { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| bottom: 0; | |
| width: min(560px, 100%); | |
| box-sizing: border-box; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| padding: 16px; | |
| overflow-y: auto; | |
| background: var(--lp-panel); | |
| border-left: var(--lp-hairline-width) solid var(--lp-line); | |
| box-shadow: var(--lp-panel-shadow); | |
| z-index: 2; | |
| animation: rd-drawer-in var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing) both; | |
| } | |
| @keyframes rd-drawer-in { | |
| from { opacity: 0; transform: translateX(16px); } | |
| to { opacity: 1; transform: none; } | |
| } | |
| .rd-drawer-head { display: flex; align-items: flex-start; gap: 8px; } | |
| .rd-drawer-names { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; } | |
| .rd-drawer-title { | |
| margin: 0; | |
| font-size: var(--lp-fs-md); | |
| font-weight: var(--lp-fw-semibold); | |
| font-variant-numeric: tabular-nums; | |
| overflow-wrap: anywhere; | |
| } | |
| .rd-drawer-sub { margin: 0; color: var(--lp-muted); font-size: var(--lp-fs-xs); overflow-wrap: anywhere; } | |
| /* The cause card: one cause, its evidence, one fix. */ | |
| .rd-cause { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 4px; | |
| padding: 12px; | |
| border: var(--lp-hairline-width) solid var(--lp-line); | |
| border-radius: var(--lp-r-md); | |
| background: var(--lp-surface); | |
| } | |
| .rd-cause p { margin: 0; } | |
| .rd-cause-label { color: var(--lp-muted); font-size: var(--lp-fs-2xs); } | |
| .rd-cause-name { font-size: var(--lp-fs-md); font-weight: var(--lp-fw-semibold); } | |
| .rd-cause-reason { | |
| margin-bottom: 8px; | |
| color: var(--lp-muted); | |
| font-size: var(--lp-fs-xs); | |
| font-variant-numeric: tabular-nums; | |
| } | |
| .rd-cause-reason + .rd-cause-label, | |
| .rd-cause-name + .rd-cause-label { margin-top: 8px; } | |
| .rd-cause-fix { font-size: var(--lp-fs-xs); line-height: var(--lp-lh); } | |
| .rd-status-form { display: flex; flex-direction: column; gap: 8px; } | |
| .rd-field { | |
| display: grid; | |
| grid-template-columns: 96px minmax(0, 1fr); | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .rd-field-label { color: var(--lp-muted); font-size: var(--lp-fs-xs); } | |
| .rd-select { | |
| min-height: 32px; | |
| width: 100%; | |
| min-width: 0; | |
| box-sizing: border-box; | |
| padding: 0 8px; | |
| border: var(--lp-hairline-width) solid var(--lp-line-strong); | |
| border-radius: var(--lp-r-sm); | |
| background: var(--lp-surface); | |
| color: var(--lp-ink); | |
| font: inherit; | |
| font-size: var(--lp-fs-xs); | |
| font-variant-numeric: tabular-nums; | |
| } | |
| .rd-status-row { | |
| display: flex; | |
| flex-wrap: wrap; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: var(--lp-fs-xs); | |
| } | |
| .rd-status-row .rd-field { flex: 0 1 336px; } | |
| .rd-saved { color: var(--lp-green-deep); } | |
| .rd-facts { margin: 0; display: flex; flex-direction: column; font-size: var(--lp-fs-xs); } | |
| .rd-fact { | |
| display: grid; | |
| grid-template-columns: 96px minmax(0, 1fr); | |
| gap: 8px; | |
| padding: 8px 0; | |
| border-bottom: var(--lp-hairline-width) solid var(--lp-line); | |
| } | |
| .rd-fact dt { color: var(--lp-muted); } | |
| .rd-fact dd { margin: 0; overflow-wrap: anywhere; } | |
| .rd-fact dd.is-num { font-variant-numeric: tabular-nums; } | |
| .rd-section { display: flex; flex-direction: column; gap: 8px; } | |
| .rd-section-title { margin: 0; font-size: var(--lp-fs-sm); font-weight: var(--lp-fw-semibold); } | |
| /* Signal cards over one trend chart: three a row, each card picks the chart's signal. */ | |
| .rd-cards { | |
| display: grid; | |
| grid-template-columns: repeat(3, minmax(0, 1fr)); | |
| gap: 8px; | |
| } | |
| .rd-card { gap: 2px; } | |
| .rd-compare { margin: 0; color: var(--lp-muted); font-size: var(--lp-fs-2xs); font-variant-numeric: tabular-nums; } | |
| .rd-card-delta { | |
| color: var(--lp-muted); | |
| font-size: var(--lp-fs-2xs); | |
| font-variant-numeric: tabular-nums; | |
| } | |
| .rd-card-delta.is-up { color: var(--lp-green-deep); } | |
| .rd-card-delta.is-down { color: var(--lp-red-deep); } | |
| .rd-chart { min-width: 0; min-height: 200px; } | |
| /* A timeline: one line per status change, a hairline rule on the left. */ | |
| .rd-events { | |
| margin: 0; | |
| padding: 0 0 0 12px; | |
| list-style: none; | |
| border-left: var(--lp-hairline-width) solid var(--lp-line-strong); | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| font-size: var(--lp-fs-xs); | |
| } | |
| .rd-event { display: flex; flex-direction: column; gap: 2px; } | |
| .rd-event-what { color: var(--lp-ink); } | |
| .rd-event-detail, | |
| .rd-event-when { color: var(--lp-muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } | |
| @media (prefers-reduced-motion: reduce) { | |
| .rd-button, | |
| .rd-tab, | |
| .rd-card { transition: none; } | |
| .rd-button:active:not(:disabled), | |
| .rd-tab:active, | |
| .rd-card:active { transform: none; } | |
| .rd-drawer { animation: none; } | |
| } | |
| /* Narrow panel (390 px phone): tabs wrap three a row, each row stacks, the drawer fills the panel. */ | |
| @container rd (max-width: 640px) { | |
| .rd-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } | |
| .rd-table, | |
| .rd-table tbody { display: block; width: 100%; } | |
| .rd-table colgroup, | |
| .rd-table thead { display: none; } | |
| .rd-table tr.rd-row { | |
| display: grid; | |
| column-gap: 8px; | |
| padding: 8px 0; | |
| border-bottom: var(--lp-hairline-width) solid var(--lp-line); | |
| } | |
| .rd-table td { display: block; padding: 2px 0; border: 0; min-width: 0; } | |
| .rd-drops tr.rd-row { | |
| grid-template-columns: minmax(0, 1fr) auto; | |
| grid-template-areas: | |
| "asin status" | |
| "rank trend" | |
| "change change" | |
| "cause owner"; | |
| } | |
| .rd-drops .rd-c-asin { grid-area: asin; } | |
| .rd-drops .rd-c-status { grid-area: status; text-align: right; } | |
| .rd-drops .rd-c-rank { grid-area: rank; text-align: left; } | |
| .rd-drops .rd-c-change { grid-area: change; } | |
| .rd-drops .rd-c-trend { grid-area: trend; justify-self: end; } | |
| .rd-drops .rd-c-cause { grid-area: cause; } | |
| .rd-drops .rd-c-owner { grid-area: owner; text-align: right; color: var(--lp-muted); } | |
| .rd-first-steps { grid-template-columns: minmax(0, 1fr); } | |
| .rd-asins tr.rd-row { | |
| grid-template-columns: minmax(0, 1fr) auto; | |
| grid-template-areas: | |
| "asin sales" | |
| "drop units"; | |
| } | |
| .rd-asins .rd-c-asin { grid-area: asin; } | |
| .rd-asins .rd-c-sales { grid-area: sales; } | |
| .rd-asins .rd-c-drop { grid-area: drop; } | |
| .rd-asins .rd-c-units { grid-area: units; color: var(--lp-muted); } | |
| .rd-unit-word { display: inline; } | |
| } | |
| /* The drawer fills a narrow App panel; its signal cards go two a row. */ | |
| @media (max-width: 640px) { | |
| .rd-drawer { width: 100%; } | |
| .rd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } | |
| } | |