diff --git a/crates/forge-web/assets/nav.js b/crates/forge-web/assets/nav.js index 8b514dc..8565827 100644 --- a/crates/forge-web/assets/nav.js +++ b/crates/forge-web/assets/nav.js @@ -819,17 +819,11 @@ } catch (err) { } } - // The widest the tree can be: the grid less the splitter, the two gaps, the README's minimum and, - // at 1200px and up, the aside's column with its gap. + // The widest the tree can be: the grid less the splitter, the two gaps and the README's minimum. function treeMax(grid) { var split = grid.querySelector('[data-repo-split]'); - var side = grid.querySelector(':scope > .repo-meta'); - var readme = grid.querySelector('.repo-readme'); - var cs = getComputedStyle(grid); - var gap = parseFloat(cs.columnGap) || 0; - var inRow = side && readme && side.getBoundingClientRect().left > readme.getBoundingClientRect().left; - var aside = inRow ? side.getBoundingClientRect().width + gap + (parseFloat(getComputedStyle(side).marginLeft) || 0) : 0; - var max = grid.getBoundingClientRect().width - split.getBoundingClientRect().width - 2 * gap - aside - README_MIN; + var gap = parseFloat(getComputedStyle(grid).columnGap) || 0; + var max = grid.getBoundingClientRect().width - split.getBoundingClientRect().width - 2 * gap - README_MIN; return Math.max(TREE_MIN, Math.floor(max)); } diff --git a/crates/forge-web/src/pages/repo.rs b/crates/forge-web/src/pages/repo.rs index 94ae69f..cc29ebc 100644 --- a/crates/forge-web/src/pages/repo.rs +++ b/crates/forge-web/src/pages/repo.rs @@ -24,10 +24,10 @@ use crate::pages::passkeys::s; use crate::pages::code_live::{follows_branch, home_live_url}; use crate::pages::dashboard::badge_class; use crate::pages::finder::file_finder; -use crate::pages::repo_side::{repo_side, run_rows, tree_facts}; +use crate::pages::repo_side::{repo_ci_line, repo_strip, run_rows, tree_facts}; use crate::pages::issue_parts::stamp_unix; use crate::pages::notifications::watch_form; -use crate::pages::packages::{self, repo_packages_card}; +use crate::pages::packages; use crate::pages::refs::{load_refs, ref_links}; use crate::pages::repo_ctx::{RepoCtx, RepoHead, load_repo}; use crate::pages::tree::{ @@ -213,9 +213,15 @@ pub async fn repo_head(head: RepoHead) -> Result { }) } -/// Clone button that opens a popover with both clone URLs as selectable read-only fields. +/// Clone button that opens a popover with both clone URLs as selectable read-only fields and, when +/// the branch has a commit, links to its archive (`downloads`: the zip and tar.gz hrefs). #[component] -async fn clone_popover(https: String, ssh: String, lang: Lang) -> Result { +async fn clone_popover( + https: String, + ssh: String, + downloads: Option<(String, String)>, + lang: Lang, +) -> Result { Ok(view! {
@@ -228,6 +234,12 @@ async fn clone_popover(https: String, ssh: String, lang: Lang) -> Result"SSH"

(g::t(lang, K::SshRequiresKey))

+ if let Some((zip, tar)) = downloads { + + }
}) @@ -263,24 +275,6 @@ async fn branches_card( }) } -/// Download links for the archive of `ref_name`. -#[component] -async fn archive_links( - owner: String, - repo: String, - ref_name: String, - lang: Lang, -) -> Result { - let tar = repo_href(&owner, &repo, "archive", &format!("{ref_name}.tar.gz")); - let zip = repo_href(&owner, &repo, "archive", &format!("{ref_name}.zip")); - Ok(view! { - - }) -} - async fn default_commit(path: PathBuf, branch: String) -> Result> { Ok( tokio::task::spawn_blocking(move || browse::default_branch_commit(&path, &branch)) @@ -488,14 +482,18 @@ async fn repo_page(cx: &Cx) -> Result { let latest = crate::pages::releases::latest_release_for_home(state, &ctx).await?; let runs = run_rows(state, lang, repo).await?; let ci_href = repo_href(&owner_name, &repo_name, "ci", ""); - let visibility = repo.visibility; let banners = recent_push_banners(state, &ctx, header.forked_from.clone()).await?; let viewer_user = ctx.viewer.as_ref().map(|(user, _)| user); let packages = packages::repo_package_links(state, viewer_user, &repo.id).await?; let now = now_unix(); + let downloads = ( + repo_href(&owner_name, &repo_name, "archive", &format!("{branch}.zip")), + repo_href(&owner_name, &repo_name, "archive", &format!("{branch}.tar.gz")), + ); Ok(view! { shell(title: title.as_str(), viewer: ctx.viewer.as_ref(), repo_head(head: header) + repo_strip(lang: lang, facts: facts, release: latest, packages: packages) if !banners.is_empty() { recent_pushes(banners: banners, now: now, lang: lang) } @@ -507,10 +505,9 @@ async fn repo_page(cx: &Cx) -> Result { branches_href: branches_href, tags_href: tags_href) file_finder(lang: lang, owner: owner_name.clone(), repo: repo_name.clone(), ref_name: branch.clone()) - archive_links(owner: owner_name, repo: repo_name, - ref_name: branch.clone(), lang: lang) - clone_popover(https: https, ssh: ssh, lang: lang) + clone_popover(https: https, ssh: ssh, downloads: Some(downloads), lang: lang) + repo_ci_line(lang: lang, runs: runs, ci_href: ci_href) tree_table(rows: rows, latest: bar, lang: lang) - } else {
- clone_popover(https: https, ssh: ssh, lang: lang) + clone_popover(https: https, ssh: ssh, downloads: None, lang: lang)
branches_card(branches: branch_names, push_https: push_https, push_ssh: push_ssh, lang: lang) } diff --git a/crates/forge-web/src/pages/repo_side.rs b/crates/forge-web/src/pages/repo_side.rs index 0129471..3574acf 100644 --- a/crates/forge-web/src/pages/repo_side.rs +++ b/crates/forge-web/src/pages/repo_side.rs @@ -1,5 +1,5 @@ -//! The repo home's side column: About (visibility, default branch, license, size), the newest CI -//! runs, the latest release and the languages of the default branch. Languages, license and size +//! The repo home's facts: the line under its header (license, size, languages, the latest release +//! and the packages) and the newest CI run over the tree. Languages, license and size //! are worked out from the tree once per head commit and kept in memory, since they only change //! with a push. @@ -8,7 +8,7 @@ use std::path::{Path, PathBuf}; use std::sync::{Mutex, OnceLock}; use forge_core::ci::{JobState, RunState}; -use forge_core::{Repo, Visibility}; +use forge_core::Repo; use forge_git::{browse, history}; use time::OffsetDateTime; use time::format_description::well_known::Rfc3339; @@ -18,14 +18,15 @@ use topcoat::view::{View, component, view}; use crate::i18n::Lang; use crate::i18n::releases_ci as rc; use crate::pages::ci_runs::{duration_templates, duration_text, run_href, state_text}; +use crate::pages::packages::PackageLink; use crate::pages::passkeys::s; use crate::pages::releases::LatestRelease; use crate::repo_stats::{LangShare, languages, license_file, license_id}; use crate::state::AppState; use crate::views::{human_size, now_unix, rel_time, short_oid}; -/// CI runs the column lists. -const RUNS_SHOWN: u32 = 3; +/// CI runs the home page shows: the newest. +const RUNS_SHOWN: u32 = 1; /// Languages listed before the rest fold into "Other". const TOP_LANGUAGES: usize = 4; /// Files the language count reads at most. @@ -248,123 +249,124 @@ pub async fn runs_fingerprint(state: &AppState, repo_id: &str) -> Result Ok(out.join("\n")) } -/// The side column. `facts` is None for a repo with no commit yet. +/// One language's slice of the header's language bar: where it starts and how wide it is, in +/// percent of the bar, and its shade (0 the biggest). +pub struct LangSlice { + pub x: String, + pub width: String, + pub class: &'static str, +} + +/// The bar's slices in order. Each shade is a class (the page's CSP allows no inline styles), and +/// the SVG takes its geometry from attributes. +fn lang_slices(langs: &[LangShare]) -> Vec { + const SHADES: [&str; 5] = ["lang-0", "lang-1", "lang-2", "lang-3", "lang-4"]; + let mut at = 0u32; + langs + .iter() + .enumerate() + .map(|(i, share)| { + let slice = LangSlice { + x: format!("{at}%"), + width: format!("{}%", share.percent), + class: if share.others.is_empty() { SHADES[i.min(3)] } else { SHADES[4] }, + }; + at += share.percent; + slice + }) + .collect() +} + +/// The facts line under the repo header, in place of a side column: license, size and a bar of +/// the languages on the left; the latest release and the packages as chips on the right. `facts` +/// is None for a repo with no commit yet. #[component] -pub async fn repo_side( +pub async fn repo_strip( lang: Lang, - visibility: Visibility, - default_branch: String, facts: Option, - runs: Vec, - ci_href: String, release: Option, + packages: Vec, ) -> Result { - let public = visibility == Visibility::Public; - let visibility_word = if public { - s(lang, "public", "herkese açık") - } else { - s(lang, "private", "özel") - }; let size = facts.as_ref().map(|f| human_size(lang, f.size)); let license = facts.as_ref().and_then(|f| f.license.clone()); let langs = facts.map(|f| f.languages).unwrap_or_default(); - // The CI rows' clock: the server's time and the duration words the page's ticker rewrites with. - let now = now_unix(); - let (fm, fs) = duration_templates(lang); + let slices = lang_slices(&langs); + let bar_label = langs + .iter() + .map(|share| format!("{} {}%", lang_name(lang, share), share.percent)) + .collect::>() + .join(", "); Ok(view! { -
-

(s(lang, "About", "Hakkında"))

-
-
-
(s(lang, "Visibility", "Görünürlük"))
-
(visibility_word)
-
-
-
(s(lang, "Default branch", "Varsayılan dal"))
-
(default_branch.as_str())
-
- if let Some((file, id)) = license.as_ref() { -
-
(s(lang, "License", "Lisans"))
- if id.is_empty() { -
(file.as_str())
- } else { -
(id.as_str())
+
+ if let Some((file, id)) = license.as_ref() { + + + if id.is_empty() { (file.as_str()) } else { (id.as_str()) } + + } + if let Some(size) = size.as_ref() { + (size.as_str()) + } + if !langs.is_empty() { +
+ + for slice in slices.iter() { + + } + +
    + for (share, slice) in langs.iter().zip(slices.iter()) { +
  • (lang_name(lang, share))" "(format!("{}%", share.percent))
  • } -
+ +
+ } +
+ if let Some(release) = release.as_ref() { + + (rc::t(lang, rc::K::LatestReleaseHeading))" " + + (release.tag.as_str()) + rel_time(lang: lang, stamp: release.when.iso.as_str()) + } - if let Some(size) = size.as_ref() { -
-
(s(lang, "Size", "Boyut"))
-
(size.as_str())
-
+ for link in packages.iter() { + + + (link.name.as_str()) + } -
-
- if !runs.is_empty() { -
- - -
- } - if let Some(release) = release.as_ref() { -
-

(rc::t(lang, rc::K::LatestReleaseHeading))

- -
- } - if !langs.is_empty() { -
-

(s(lang, "Languages", "Diller"))

-
    - for share in langs.iter() { -
  • -
    -
    (lang_name(lang, share))
    -
    (lang_meta(lang, share))
    -
    - (format!("{}%", share.percent)) - (format!("{}%", share.percent)) -
  • + + + }) +} + +/// The newest CI run as one line over the tree, with a link to all runs. A run still going has +/// its bar of jobs done and a ticking clock, as the CI pages do. +#[component] +pub async fn repo_ci_line(lang: Lang, runs: Vec, ci_href: String) -> Result { + // The clock: the server's time and the duration words the page's ticker rewrites with. + let now = now_unix(); + let (fm, fs) = duration_templates(lang); + Ok(view! { + if let Some(run) = runs.first() { +
-
+ + if let Some(since) = run.since.as_deref() { + (run.label.as_str()) + } else { + (run.label.as_str()) + } + + + (s(lang, "All runs", "Tüm çalıştırmalar")) + } }) } diff --git a/crates/forge-web/src/pages/tree.rs b/crates/forge-web/src/pages/tree.rs index b79a6a9..4ff7587 100644 --- a/crates/forge-web/src/pages/tree.rs +++ b/crates/forge-web/src/pages/tree.rs @@ -459,7 +459,7 @@ pub async fn tree_table( if row.kind == "dir" { - + } else { } diff --git a/style/_repo.scss b/style/_repo.scss index 7959cfb..7d5da68 100644 --- a/style/_repo.scss +++ b/style/_repo.scss @@ -1,5 +1,5 @@ // repo: sage redesign. Repo home header, browse bar with the Clone popover, directory table, -// README card, commit list and the repo-meta aside. Colours come from tokens only so both themes +// README card and commit list. Colours come from tokens only so both themes // follow main.scss. // Header: name with the visibility pill on the left, outline actions on the right. @@ -242,7 +242,8 @@ } } -// Grid of the repo-meta aside and the main column. Below 900px the columns stack in normal flow. +// The repo home: the browse bar and the tree in a left column, the README beside it. Below 900px +// the columns stack in normal flow. .repo-grid { display: grid; grid-template-columns: minmax(0, 1fr); @@ -254,30 +255,33 @@ min-width: 0; } -.repo-meta { - display: grid; - gap: 28px; - align-content: start; - min-width: 0; - h2 { - margin: 0 0 10px; - font-size: 13px; - font-weight: 600; - color: var(--muted); - } +// The repo home takes the whole width of the page column instead of the 1280px other pages keep: +// the README gets the room the tree column leaves. +.shell-body > main:has(.repo-home) { + max-width: none; } -// Repo home: the browse bar and the tree form a left column, the README fills the middle and the -// repo-meta aside sits on the right. The columns scroll inside the grid so the page fits the -// viewport; the height is the viewport less the top bar and the page header. .repo-home { - --repo-home-h: max(480px, calc(100dvh - var(--topbar-h) - 200px)); - margin-top: 20px; + // The grid fills the viewport under the top bar and the repo header, so the page does not scroll; + // each column scrolls on its own. + --repo-home-h: max(480px, calc(100dvh - var(--topbar-h) - 236px)); - // The grid's own margin carries the space above the browse bar. + // One row: the branch, Go to file and, at the right end, Clone (which also holds the downloads). .browse-bar { - margin: 0 0 12px; + flex-wrap: nowrap; + margin: 0; + padding: 0 0 12px; + border-top: 0; + + // Go to file sits beside the branch here; only Clone is pushed to the right end. + .finder-open { + margin-left: 0; + } + + .clone { + margin-left: auto; + } } .repo-main { @@ -294,14 +298,66 @@ overflow-y: auto; } + // The newest commit as a two-line header over the tree: its subject on the first line, then the + // author, hash, age and commit count, so the narrow column does not cut both down to a few letters. + .latest-commit { + gap: 6px 12px; + + .latest-subject { + order: -1; + flex: 1 1 100%; + font-weight: 500; + } + + .latest-author { + max-width: 12rem; + } + } + + // The README column is the frame: the card inside loses its own border and fills it, the file + // name strip stays at the top and only the text under it scrolls, so the scrollbar sits inside + // the frame. (A sticky strip in a rounded scroller leaves its corners unclipped in Chrome.) .repo-readme { + display: flex; + flex-direction: column; min-width: 0; min-height: 0; - overflow-y: auto; + overflow: hidden; + background: var(--surface); + border: 1px solid var(--border); + border-radius: var(--radius-lg); + + &:empty { + display: none; + } } .readme { - margin-top: 0; + display: flex; + flex: 1 1 auto; + flex-direction: column; + min-height: 0; + margin: 0; + background: transparent; + border: 0; + border-radius: 0; + box-shadow: none; + + .readme-name { + flex: none; + } + + .markdown-body, + .readme-text { + flex: 1 1 auto; + min-height: 0; + overflow-y: auto; + } + + // Lines stay a readable length however wide the column gets; the scroll area keeps the width. + .markdown-body > * { + max-width: 900px; + } } // The drag handle between the tree and the README (nav.js drives it): a 1px rule centred in the @@ -322,7 +378,7 @@ left: 50%; width: 1px; transform: translateX(-50%); - background: var(--border); + background: transparent; } &:hover::before, @@ -347,16 +403,18 @@ html.tree-resizing .repo-split::before { background: var(--accent); } -// 900px to 1199px: the tree and README sit side by side and the aside drops under them at full -// width, so the columns keep their own height and the aside flows with the page. -@media (min-width: 900px) { - .repo-grid { - gap: 40px 16px; - } +// The downloads in the Clone popover, under the clone URLs. +.clone .archive-links { + margin: 14px 0 0; + padding-top: 12px; + border-top: 1px solid var(--border); +} +// From 900px: the tree and README side by side, filling the viewport. +@media (min-width: 900px) { .repo-home { - grid-template-columns: var(--tree-w, 380px) 8px minmax(0, 1fr); - align-items: start; + grid-template-columns: var(--tree-w, 380px) 12px minmax(0, 1fr); + gap: 32px 8px; .repo-split { display: block; @@ -364,14 +422,10 @@ html.tree-resizing .repo-split::before { .repo-main, .repo-readme { - max-height: var(--repo-home-h); + height: var(--repo-home-h); } - .repo-meta { - grid-column: 1 / -1; - } - - // The name keeps half the narrow column and the last-commit message takes the rest. + // In the narrow column the name keeps up to half the row and the message ellipsizes. .tree-table { th, td { @@ -386,37 +440,131 @@ html.tree-resizing .repo-split::before { font-size: 13px; } } + } +} - .latest-commit { - gap: 8px; +// The facts line under the repo header: license and size, a bar of the languages with its legend, +// then the latest release and the packages as chips at the right end. +.repo-strip { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 8px 20px; + margin: 4px 0 16px; + font-size: 13px; + color: var(--text-2); - .latest-author { - max-width: 8rem; - } - } + .i { + width: 14px; + height: 14px; + fill: none; + stroke: currentColor; + stroke-width: 1.8; + stroke-linecap: round; + stroke-linejoin: round; } } -// 1200px and up: browse bar and tree | README | aside, all filling the viewport height. -@media (min-width: 1200px) { - .repo-home { - grid-template-columns: var(--tree-w, 420px) 8px minmax(0, 1fr) 260px; - column-gap: 12px; - align-items: stretch; - height: var(--repo-home-h); +.strip-fact { + display: inline-flex; + align-items: center; + gap: 6px; + white-space: nowrap; +} - .repo-main, - .repo-readme { - max-height: none; - } +.strip-langs { + display: flex; + flex: 0 1 auto; + align-items: center; + gap: 12px; + min-width: 0; +} - // With the splitter's 12px gaps this keeps the README and aside 32px apart, as before. - .repo-meta { - grid-column: auto; - min-height: 0; - overflow-y: auto; - margin-left: 20px; - } +.lang-bar { + flex: none; + width: 160px; + height: 6px; + overflow: hidden; + border-radius: var(--radius-full); + background: var(--surface-2); +} + +.lang-legend { + display: flex; + flex-wrap: wrap; + gap: 4px 14px; + margin: 0; + padding: 0; + list-style: none; + + li { + display: inline-flex; + align-items: center; + gap: 6px; + white-space: nowrap; + } +} + +// The languages' shades: the biggest takes the accent, the next ones fainter mixes of it, the +// folded remainder the muted colour. Classes, not inline styles, since the CSP allows none. +.lang-0 { --lang: var(--accent); } +.lang-1 { --lang: color-mix(in srgb, var(--accent) 65%, var(--surface)); } +.lang-2 { --lang: color-mix(in srgb, var(--accent) 40%, var(--surface)); } +.lang-3 { --lang: color-mix(in srgb, var(--accent) 22%, var(--surface)); } +.lang-4 { --lang: var(--muted); } + +.lang-bar rect { + fill: var(--lang); +} + +.lang-dot { + width: 8px; + height: 8px; + border-radius: 50%; + background: var(--lang); +} + +.strip-chips { + display: flex; + flex-wrap: wrap; + gap: 8px; + margin-left: auto; + + &:empty { + display: none; + } +} + +.strip-chip { + display: inline-flex; + align-items: center; + gap: 6px; + height: 26px; + padding: 0 10px; + color: var(--text); + white-space: nowrap; + border: 1px solid var(--border); + border-radius: var(--radius-full); + + &:hover { + text-decoration: none; + background: var(--surface-2); + } +} + +// The newest CI run over the tree: its dot, number and words, and All runs at the right. +.repo-ci { + display: flex; + align-items: center; + gap: 12px; + padding: 8px 0; + font-size: 13px; + border-bottom: 1px solid var(--border); + + .side-run-link { + flex: 1 1 auto; + min-width: 0; + padding: 0; } } @@ -451,6 +599,12 @@ html.tree-resizing .repo-split::before { stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; + + // Folders take the accent, with a light fill, so they stand apart from files at a glance. + &.is-dir { + color: var(--accent); + fill: color-mix(in srgb, var(--accent) 35%, transparent); + } } th { diff --git a/style/_repo_side.scss b/style/_repo_side.scss index e2e9857..9c222bc 100644 --- a/style/_repo_side.scss +++ b/style/_repo_side.scss @@ -1,17 +1,7 @@ -// The repo home's side column (pages/repo_side.rs), in the runners' row language: a quiet heading -// over a hairline, then rows on hairlines with a status dot, a bold name, a muted line under it and -// one compact thing on the right. The dots are `.health-dot` (_account_admin.scss). +// The repo home's newest CI run (pages/repo_side.rs) and the shared side-heading style. The dots +// are `.health-dot` (_account_admin.scss). -.health-dot.accent { - background: var(--accent); -} - -.repo-meta .side-sec h2 { - margin: 0; -} - -.side-h, -.side-sec > h2 { +.side-h { display: flex; align-items: baseline; justify-content: space-between; @@ -20,95 +10,9 @@ border-bottom: 1px solid var(--border-strong); } -.side-facts { - margin: 0; - - > div { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - padding: 9px 0; - font-size: 13px; - } - - > div + div { - border-top: 1px solid var(--border); - } - - dt { - color: var(--muted); - } - - dd { - min-width: 0; - margin: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - - code { - font-family: var(--mono); - font-size: 12.5px; - } -} - -.side-rows { - margin: 0; - padding: 0; - list-style: none; -} - -.side-row, -.side-lang { - display: grid; - align-items: center; - column-gap: 12px; - padding: 11px 0; - - & + & { - border-top: 1px solid var(--border); - } -} - -.side-row { - grid-template-columns: minmax(0, 1fr) auto; -} - -.side-row-main { - min-width: 0; -} - -.side-row-title { - display: flex; - align-items: center; - gap: 8px; - min-width: 0; -} - -.side-row-name { - color: var(--text); - font-size: 14px; - font-weight: 600; -} - -// The muted line lines up under the name, past the dot. -.side-row-meta { - margin: 2px 0 0 16px; - overflow: hidden; - font-size: 12px; - text-overflow: ellipsis; - white-space: nowrap; -} - -// One row per CI run, the whole row a link: an ember dot that glows while the run goes, the number, +// The run is one link: an ember dot that glows while the run goes, the number, // a slim heat bar of the jobs done (while it goes), and one muted line on the right: the current // job and its clock, or the result and the total time. -.side-run + .side-run { - border-top: 1px solid var(--border); -} - .side-run-link { display: flex; align-items: center; @@ -185,65 +89,3 @@ progress.side-run-bar { text-overflow: ellipsis; white-space: nowrap; } - -// Languages: the name and what it is made of, a thin meter in the accent, the share on the right. -// One colour for every language; the remainder row is muted. -.side-lang { - grid-template-columns: minmax(0, 1fr) 64px 34px; - - .side-row-meta { - margin-left: 0; - } -} - -.side-lang-name { - color: var(--text); - font-size: 13.5px; - font-weight: 600; -} - -progress.side-meter { - -webkit-appearance: none; - appearance: none; - display: block; - box-sizing: border-box; - width: 100%; - height: 4px; - margin: 0; - border: 0; - border-radius: 2px; - overflow: hidden; - background: var(--surface-2); - color: var(--accent); - - &::-webkit-progress-bar { - background: var(--surface-2); - } - - &::-webkit-progress-value { - background: var(--accent); - } - - &::-moz-progress-bar { - background: var(--accent); - } -} - -.side-lang.is-other progress.side-meter { - color: var(--muted); - - &::-webkit-progress-value { - background: var(--muted); - } - - &::-moz-progress-bar { - background: var(--muted); - } -} - -.side-pct { - color: var(--text-2); - font-size: 12.5px; - font-variant-numeric: tabular-nums; - text-align: right; -}