mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-05 16:02:03 +00:00
Add release packaging, multilingual READMEs, templates, license annotations and coverage setup. Standardize the pages on the shared kit and remove the legacy backend mode.
2756 lines
61 KiB
CSS
2756 lines
61 KiB
CSS
/* Palettes: Rosé Pine (Dawn/Moon), Catppuccin (Latte/Mocha), Nord (light/dark). data-palette picks the family,
|
|
data-scheme picks light or dark; every component reads the same --rp-* roles. */
|
|
:root {
|
|
--iconPrimary: currentColor;
|
|
color-scheme: light;
|
|
--rp-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
--rp-underlay: rgba(0, 0, 0, 0.32);
|
|
--rp-elevated: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04), 0 0 2px rgba(0, 0, 0, 0.12);
|
|
--rp-popover-border: transparent;
|
|
}
|
|
:root[data-scheme='dark'] {
|
|
color-scheme: dark;
|
|
--rp-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
--rp-underlay: rgba(0, 0, 0, 0.55);
|
|
--rp-elevated: 0 4px 12px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.12), 0 0 2px rgba(0, 0, 0, 0.36);
|
|
--rp-popover-border: var(--rp-hl-med);
|
|
}
|
|
|
|
:root,
|
|
:root[data-family='rose-pine'] {
|
|
--rp-base: #faf4ed;
|
|
--rp-surface: #fffaf3;
|
|
--rp-overlay: #f2e9e1;
|
|
--rp-muted: #9893a5;
|
|
--rp-subtle: #797593;
|
|
--rp-text: #464261;
|
|
--rp-love: #b4637a;
|
|
--rp-gold: #ea9d34;
|
|
--rp-rose: #d7827e;
|
|
--rp-pine: #286983;
|
|
--rp-foam: #56949f;
|
|
--rp-iris: #907aa9;
|
|
--rp-c1: var(--rp-pine);
|
|
--rp-c2: var(--rp-foam);
|
|
--rp-c3: var(--rp-iris);
|
|
--rp-c4: var(--rp-gold);
|
|
--rp-c5: var(--rp-rose);
|
|
--rp-c6: var(--rp-love);
|
|
--rp-c7: var(--rp-pine);
|
|
--rp-c8: var(--rp-foam);
|
|
--rp-hl-low: #f4ede8;
|
|
--rp-hl-med: #dfdad9;
|
|
--rp-hl-high: #cecacd;
|
|
--rp-shadow: 0 1px 2px rgba(87, 82, 121, 0.08);
|
|
}
|
|
:root[data-family='rose-pine'][data-scheme='dark'],
|
|
:root[data-flavour='moon'][data-scheme='dark'] {
|
|
--rp-base: #232136;
|
|
--rp-surface: #2a273f;
|
|
--rp-overlay: #393552;
|
|
--rp-muted: #6e6a86;
|
|
--rp-subtle: #908caa;
|
|
--rp-text: #e0def4;
|
|
--rp-love: #eb6f92;
|
|
--rp-gold: #f6c177;
|
|
--rp-rose: #ea9a97;
|
|
--rp-pine: #3e8fb0;
|
|
--rp-foam: #9ccfd8;
|
|
--rp-iris: #c4a7e7;
|
|
--rp-c1: var(--rp-pine);
|
|
--rp-c2: var(--rp-foam);
|
|
--rp-c3: var(--rp-iris);
|
|
--rp-c4: var(--rp-gold);
|
|
--rp-c5: var(--rp-rose);
|
|
--rp-c6: var(--rp-love);
|
|
--rp-c7: var(--rp-pine);
|
|
--rp-c8: var(--rp-foam);
|
|
--rp-hl-low: #2a283e;
|
|
--rp-hl-med: #44415a;
|
|
--rp-hl-high: #56526e;
|
|
--rp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
}
|
|
:root[data-family='catppuccin'] {
|
|
--rp-base: #e6e9ef;
|
|
--rp-surface: #eff1f5;
|
|
--rp-overlay: #dce0e8;
|
|
--rp-muted: #9ca0b0;
|
|
--rp-subtle: #6c6f85;
|
|
--rp-text: #4c4f69;
|
|
--rp-love: #d20f39;
|
|
--rp-gold: #df8e1d;
|
|
--rp-rose: #fe640b;
|
|
--rp-pine: #1e66f5;
|
|
--rp-foam: #179299;
|
|
--rp-iris: #8839ef;
|
|
--rp-c1: #1e66f5;
|
|
--rp-c2: #179299;
|
|
--rp-c3: #8839ef;
|
|
--rp-c4: #fe640b;
|
|
--rp-c5: #40a02b;
|
|
--rp-c6: #ea76cb;
|
|
--rp-c7: #df8e1d;
|
|
--rp-c8: #d20f39;
|
|
--rp-hl-low: #dce0e8;
|
|
--rp-hl-med: #ccd0da;
|
|
--rp-hl-high: #bcc0cc;
|
|
--rp-shadow: 0 1px 2px rgba(76, 79, 105, 0.1);
|
|
}
|
|
:root[data-family='catppuccin'][data-scheme='dark'],
|
|
:root[data-flavour='mocha'][data-scheme='dark'] {
|
|
--rp-base: #181825;
|
|
--rp-surface: #1e1e2e;
|
|
--rp-overlay: #313244;
|
|
--rp-muted: #6c7086;
|
|
--rp-subtle: #a6adc8;
|
|
--rp-text: #cdd6f4;
|
|
--rp-love: #f38ba8;
|
|
--rp-gold: #f9e2af;
|
|
--rp-rose: #fab387;
|
|
--rp-pine: #89b4fa;
|
|
--rp-foam: #94e2d5;
|
|
--rp-iris: #cba6f7;
|
|
--rp-c1: #89b4fa;
|
|
--rp-c2: #94e2d5;
|
|
--rp-c3: #cba6f7;
|
|
--rp-c4: #fab387;
|
|
--rp-c5: #a6e3a1;
|
|
--rp-c6: #f5c2e7;
|
|
--rp-c7: #f9e2af;
|
|
--rp-c8: #f38ba8;
|
|
--rp-hl-low: #313244;
|
|
--rp-hl-med: #45475a;
|
|
--rp-hl-high: #585b70;
|
|
--rp-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
|
|
}
|
|
:root[data-family='nord'] {
|
|
/* Nord ships no light theme: Snow Storm as surfaces, Polar Night as text; mixed steps are blends of official colours. */
|
|
--rp-base: #e5e9f0;
|
|
--rp-surface: #eceff4;
|
|
--rp-overlay: #d8dee9;
|
|
--rp-muted: #4c566a;
|
|
--rp-subtle: #3b4252;
|
|
--rp-text: #2e3440;
|
|
--rp-love: #bf616a;
|
|
--rp-gold: #d08770;
|
|
--rp-rose: #b48ead;
|
|
--rp-pine: #5e81ac;
|
|
--rp-foam: #8fbcbb;
|
|
--rp-iris: #81a1c1;
|
|
--rp-c1: #88c0d0;
|
|
--rp-c2: #a3be8c;
|
|
--rp-c3: #b48ead;
|
|
--rp-c4: #d08770;
|
|
--rp-c5: #5e81ac;
|
|
--rp-c6: #ebcb8b;
|
|
--rp-c7: #bf616a;
|
|
--rp-c8: #8fbcbb;
|
|
--rp-hl-low: #e5e9f0;
|
|
--rp-hl-med: #d8dee9;
|
|
--rp-hl-high: color-mix(in srgb, #4c566a 25%, #e5e9f0);
|
|
--rp-shadow: 0 1px 2px rgba(46, 52, 64, 0.1);
|
|
}
|
|
:root[data-family='nord'][data-scheme='dark'] {
|
|
--rp-base: #2e3440;
|
|
--rp-surface: #3b4252;
|
|
--rp-overlay: #434c5e;
|
|
--rp-muted: #4c566a;
|
|
--rp-subtle: #d8dee9;
|
|
--rp-text: #eceff4;
|
|
--rp-love: #bf616a;
|
|
--rp-gold: #ebcb8b;
|
|
--rp-rose: #d08770;
|
|
--rp-pine: #81a1c1;
|
|
--rp-foam: #8fbcbb;
|
|
--rp-iris: #b48ead;
|
|
--rp-c1: #88c0d0;
|
|
--rp-c2: #a3be8c;
|
|
--rp-c3: #b48ead;
|
|
--rp-c4: #d08770;
|
|
--rp-c5: #5e81ac;
|
|
--rp-c6: #ebcb8b;
|
|
--rp-c7: #bf616a;
|
|
--rp-c8: #8fbcbb;
|
|
--rp-hl-low: #3b4252;
|
|
--rp-hl-med: #434c5e;
|
|
--rp-hl-high: #4c566a;
|
|
--rp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
}
|
|
:root[data-flavour='main'][data-scheme='dark'] {
|
|
--rp-base: #191724;
|
|
--rp-surface: #1f1d2e;
|
|
--rp-overlay: #26233a;
|
|
--rp-muted: #6e6a86;
|
|
--rp-subtle: #908caa;
|
|
--rp-text: #e0def4;
|
|
--rp-love: #eb6f92;
|
|
--rp-gold: #f6c177;
|
|
--rp-rose: #ebbcba;
|
|
--rp-pine: #31748f;
|
|
--rp-foam: #9ccfd8;
|
|
--rp-iris: #c4a7e7;
|
|
--rp-c1: var(--rp-pine);
|
|
--rp-c2: var(--rp-foam);
|
|
--rp-c3: var(--rp-iris);
|
|
--rp-c4: var(--rp-gold);
|
|
--rp-c5: var(--rp-rose);
|
|
--rp-c6: var(--rp-love);
|
|
--rp-c7: var(--rp-pine);
|
|
--rp-c8: var(--rp-foam);
|
|
--rp-hl-low: #21202e;
|
|
--rp-hl-med: #403d52;
|
|
--rp-hl-high: #524f67;
|
|
--rp-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
|
|
}
|
|
:root[data-flavour='frappe'][data-scheme='dark'] {
|
|
--rp-base: #292c3c;
|
|
--rp-surface: #303446;
|
|
--rp-overlay: #414559;
|
|
--rp-muted: #737994;
|
|
--rp-subtle: #a5adce;
|
|
--rp-text: #c6d0f5;
|
|
--rp-love: #e78284;
|
|
--rp-gold: #e5c890;
|
|
--rp-rose: #ef9f76;
|
|
--rp-pine: #8caaee;
|
|
--rp-foam: #81c8be;
|
|
--rp-iris: #ca9ee6;
|
|
--rp-c1: #8caaee;
|
|
--rp-c2: #81c8be;
|
|
--rp-c3: #ca9ee6;
|
|
--rp-c4: #ef9f76;
|
|
--rp-c5: #a6d189;
|
|
--rp-c6: #f4b8e4;
|
|
--rp-c7: #e5c890;
|
|
--rp-c8: #e78284;
|
|
--rp-hl-low: #414559;
|
|
--rp-hl-med: #51576d;
|
|
--rp-hl-high: #626880;
|
|
--rp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
}
|
|
:root[data-flavour='macchiato'][data-scheme='dark'] {
|
|
--rp-base: #1e2030;
|
|
--rp-surface: #24273a;
|
|
--rp-overlay: #363a4f;
|
|
--rp-muted: #6e738d;
|
|
--rp-subtle: #a5adcb;
|
|
--rp-text: #cad3f5;
|
|
--rp-love: #ed8796;
|
|
--rp-gold: #eed49f;
|
|
--rp-rose: #f5a97f;
|
|
--rp-pine: #8aadf4;
|
|
--rp-foam: #8bd5ca;
|
|
--rp-iris: #c6a0f6;
|
|
--rp-c1: #8aadf4;
|
|
--rp-c2: #8bd5ca;
|
|
--rp-c3: #c6a0f6;
|
|
--rp-c4: #f5a97f;
|
|
--rp-c5: #a6da95;
|
|
--rp-c6: #f5bde6;
|
|
--rp-c7: #eed49f;
|
|
--rp-c8: #ed8796;
|
|
--rp-hl-low: #363a4f;
|
|
--rp-hl-med: #494d64;
|
|
--rp-hl-high: #5b6078;
|
|
--rp-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
/* Ant Design 5: design tokens from antd's default and dark algorithms (theme.getDesignToken), palette step 6 from
|
|
@ant-design/colors, categorical colours = G2's qualitative 10 (what Ant Design Charts draws with). */
|
|
:root[data-family='antd'] {
|
|
--rp-base: #f5f5f5;
|
|
--rp-surface: #ffffff;
|
|
--rp-overlay: rgba(0, 0, 0, 0.06);
|
|
--rp-muted: rgba(0, 0, 0, 0.25);
|
|
--rp-subtle: rgba(0, 0, 0, 0.45);
|
|
--rp-text: rgba(0, 0, 0, 0.88);
|
|
--rp-love: #ff4d4f;
|
|
--rp-gold: #faad14;
|
|
--rp-rose: #fa8c16;
|
|
--rp-pine: #1677ff;
|
|
--rp-foam: #52c41a;
|
|
--rp-iris: #722ed1;
|
|
--rp-c1: #5b8ff9;
|
|
--rp-c2: #5ad8a6;
|
|
--rp-c3: #5d7092;
|
|
--rp-c4: #f6bd16;
|
|
--rp-c5: #6f5ef9;
|
|
--rp-c6: #6dc8ec;
|
|
--rp-c7: #945fb9;
|
|
--rp-c8: #ff9845;
|
|
--rp-hl-low: #f0f0f0;
|
|
--rp-hl-med: #d9d9d9;
|
|
--rp-hl-high: rgba(0, 0, 0, 0.15);
|
|
--rp-on-accent: #ffffff;
|
|
--rp-on-text: #ffffff;
|
|
--rp-line: #f0f0f0;
|
|
--rp-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.02);
|
|
}
|
|
:root[data-family='antd'][data-scheme='dark'] {
|
|
--rp-base: #000000;
|
|
--rp-surface: #141414;
|
|
--rp-overlay: rgba(255, 255, 255, 0.08);
|
|
--rp-muted: rgba(255, 255, 255, 0.25);
|
|
--rp-subtle: rgba(255, 255, 255, 0.45);
|
|
--rp-text: rgba(255, 255, 255, 0.85);
|
|
--rp-love: #dc4446;
|
|
--rp-gold: #d89614;
|
|
--rp-rose: #d87a16;
|
|
--rp-pine: #1668dc;
|
|
--rp-foam: #49aa19;
|
|
--rp-iris: #642ab5;
|
|
--rp-c1: #5b8ff9;
|
|
--rp-c2: #5ad8a6;
|
|
--rp-c3: #5d7092;
|
|
--rp-c4: #f6bd16;
|
|
--rp-c5: #e86452;
|
|
--rp-c6: #6dc8ec;
|
|
--rp-c7: #945fb9;
|
|
--rp-c8: #ff9845;
|
|
--rp-hl-low: #303030;
|
|
--rp-hl-med: #424242;
|
|
--rp-hl-high: rgba(255, 255, 255, 0.18);
|
|
--rp-on-accent: #ffffff;
|
|
--rp-on-text: #141414;
|
|
--rp-line: #303030;
|
|
--rp-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.02);
|
|
}
|
|
/* Arco Design (ByteDance): tokens from @arco-design/web-react's arco.css, light body and body[arco-theme=dark]. */
|
|
:root[data-family='arco'] {
|
|
--rp-base: #ffffff;
|
|
--rp-surface: #ffffff;
|
|
--rp-overlay: #f2f3f5;
|
|
--rp-muted: #c9cdd4;
|
|
--rp-subtle: #86909c;
|
|
--rp-text: #1d2129;
|
|
--rp-love: #f53f3f;
|
|
--rp-gold: #f7ba1e;
|
|
--rp-rose: #ff7d00;
|
|
--rp-pine: #165dff;
|
|
--rp-foam: #00b42a;
|
|
--rp-iris: #722ed1;
|
|
--rp-c1: #4080ff;
|
|
--rp-c2: #4cd263;
|
|
--rp-c3: #a871e3;
|
|
--rp-c4: #ff7d00;
|
|
--rp-c5: #14c9c9;
|
|
--rp-c6: #f979b7;
|
|
--rp-c7: #f7ba1e;
|
|
--rp-c8: #9fdb1d;
|
|
--rp-hl-low: #f2f3f5;
|
|
--rp-hl-med: #e5e6eb;
|
|
--rp-hl-high: #c9cdd4;
|
|
--rp-on-accent: #ffffff;
|
|
--rp-on-text: #ffffff;
|
|
--rp-line: #e5e6eb;
|
|
--rp-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
:root[data-family='arco'][data-scheme='dark'] {
|
|
--rp-base: #17171a;
|
|
--rp-surface: #232324;
|
|
--rp-overlay: rgba(255, 255, 255, 0.08);
|
|
--rp-muted: rgba(255, 255, 255, 0.3);
|
|
--rp-subtle: rgba(255, 255, 255, 0.5);
|
|
--rp-text: rgba(255, 255, 255, 0.9);
|
|
--rp-love: #f76965;
|
|
--rp-gold: #f9cc44;
|
|
--rp-rose: #ff9626;
|
|
--rp-pine: #3c7eff;
|
|
--rp-foam: #27c346;
|
|
--rp-iris: #8e51da;
|
|
--rp-c1: #306fff;
|
|
--rp-c2: #129a37;
|
|
--rp-c3: #5a25b0;
|
|
--rp-c4: #ff9626;
|
|
--rp-c5: #3fd4cf;
|
|
--rp-c6: #cb2b88;
|
|
--rp-c7: #f9cc44;
|
|
--rp-c8: #b8e24b;
|
|
--rp-hl-low: rgba(255, 255, 255, 0.08);
|
|
--rp-hl-med: #333335;
|
|
--rp-hl-high: rgba(255, 255, 255, 0.16);
|
|
--rp-on-accent: rgba(255, 255, 255, 0.9);
|
|
--rp-on-text: #17171a;
|
|
--rp-line: #333335;
|
|
--rp-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
/* Semi Design (ByteDance): @douyinfe/semi-theme-default palette step 5 and its semantic bg/text/fill/border tokens. */
|
|
:root[data-family='semi'] {
|
|
--rp-base: #ffffff;
|
|
--rp-surface: #ffffff;
|
|
--rp-overlay: rgba(46, 50, 56, 0.05);
|
|
--rp-muted: rgba(28, 31, 35, 0.35);
|
|
--rp-subtle: rgba(28, 31, 35, 0.62);
|
|
--rp-text: #1c1f23;
|
|
--rp-love: #f93920;
|
|
--rp-gold: #fc8800;
|
|
--rp-rose: #e91e63;
|
|
--rp-pine: #0064fa;
|
|
--rp-foam: #3bb346;
|
|
--rp-iris: #6a3ac7;
|
|
--rp-c1: #4a9cf7;
|
|
--rp-c2: #33b0ab;
|
|
--rp-c3: #b171f9;
|
|
--rp-c4: #f58700;
|
|
--rp-c5: #83b023;
|
|
--rp-c6: #fe8090;
|
|
--rp-c7: #f3cc35;
|
|
--rp-c8: #30a7ce;
|
|
--rp-hl-low: rgba(28, 31, 35, 0.08);
|
|
--rp-hl-med: rgba(46, 50, 56, 0.09);
|
|
--rp-hl-high: rgba(46, 50, 56, 0.13);
|
|
--rp-on-accent: #ffffff;
|
|
--rp-on-text: #ffffff;
|
|
--rp-line: rgba(28, 31, 35, 0.08);
|
|
--rp-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.1);
|
|
}
|
|
:root[data-family='semi'][data-scheme='dark'] {
|
|
--rp-base: #16161a;
|
|
--rp-surface: #232429;
|
|
--rp-overlay: rgba(255, 255, 255, 0.12);
|
|
--rp-muted: rgba(249, 249, 249, 0.35);
|
|
--rp-subtle: rgba(249, 249, 249, 0.6);
|
|
--rp-text: #f9f9f9;
|
|
--rp-love: #fc725a;
|
|
--rp-gold: #ffae43;
|
|
--rp-rose: #ef5686;
|
|
--rp-pine: #54a9ff;
|
|
--rp-foam: #5dc264;
|
|
--rp-iris: #8865d4;
|
|
--rp-c1: #107df8;
|
|
--rp-c2: #0bb3a7;
|
|
--rp-c3: #7142c5;
|
|
--rp-c4: #faad3f;
|
|
--rp-c5: #9acf0d;
|
|
--rp-c6: #c31e57;
|
|
--rp-c7: #f8ca10;
|
|
--rp-c8: #10a2b4;
|
|
--rp-hl-low: rgba(255, 255, 255, 0.08);
|
|
--rp-hl-med: rgba(255, 255, 255, 0.16);
|
|
--rp-hl-high: rgba(255, 255, 255, 0.2);
|
|
--rp-on-accent: #e4e7f5;
|
|
--rp-on-text: #16161a;
|
|
--rp-line: rgba(255, 255, 255, 0.08);
|
|
--rp-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.25);
|
|
}
|
|
/* Glass. The recipe follows what the convincing implementations share (macOS vibrancy, Windows Acrylic, the
|
|
glassmorphism generators): a THIN tint so the backdrop shows through, a LARGE blur plus saturation so it still reads,
|
|
a wallpaper with crisp saturated shapes so the blur is visible at all, a rim that is bright where the light hits and
|
|
fades on the far side (a gradient border, not a white outline), an inner glow, a diagonal sheen, faint grain, and a
|
|
long soft shadow. Chrome sits on the wallpaper; the content area is a faint sheet with no blur of its own, so the
|
|
cards inside blur the wallpaper directly. Accents are Apple's system colours. */
|
|
:root[data-family='glass'] {
|
|
--rp-base: rgba(255, 255, 255, 0.3);
|
|
--rp-surface: rgba(255, 255, 255, 0.4);
|
|
--rp-overlay: rgba(255, 255, 255, 0.42);
|
|
--rp-muted: #8e8e93;
|
|
--rp-subtle: #48484a;
|
|
--rp-text: #1c1c1e;
|
|
--rp-love: #ff3b30;
|
|
--rp-gold: #ff9500;
|
|
--rp-rose: #ff9f0a;
|
|
--rp-pine: #007aff;
|
|
--rp-foam: #34c759;
|
|
--rp-iris: #af52de;
|
|
--rp-c1: #007aff;
|
|
--rp-c2: #34c759;
|
|
--rp-c3: #af52de;
|
|
--rp-c4: #ff9500;
|
|
--rp-c5: #5ac8fa;
|
|
--rp-c6: #ff2d55;
|
|
--rp-c7: #ffcc00;
|
|
--rp-c8: #ff3b30;
|
|
--rp-hl-low: rgba(255, 255, 255, 0.3);
|
|
--rp-hl-med: rgba(255, 255, 255, 0.55);
|
|
--rp-hl-high: rgba(60, 60, 67, 0.28);
|
|
--rp-on-accent: #ffffff;
|
|
--rp-on-text: #ffffff;
|
|
--rp-line: rgba(60, 60, 67, 0.14);
|
|
--rp-shadow: 0 8px 32px rgba(31, 38, 135, 0.16);
|
|
--rp-shadow-lg: 0 24px 64px rgba(31, 38, 135, 0.3);
|
|
--rp-glass: rgba(255, 255, 255, 0.32);
|
|
--rp-glass-strong: rgba(255, 255, 255, 0.58);
|
|
--rp-rim: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.25) 40%, rgba(255, 255, 255, 0.08) 60%, rgba(255, 255, 255, 0.55) 100%);
|
|
--rp-sheen: linear-gradient(115deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 38%, rgba(255, 255, 255, 0) 60%);
|
|
--rp-glow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 28px rgba(255, 255, 255, 0.22);
|
|
--rp-ctl: rgba(255, 255, 255, 0.38);
|
|
--rp-ctl-border: rgba(255, 255, 255, 0.55);
|
|
--rp-track: rgba(60, 60, 67, 0.1);
|
|
--rp-grain-opacity: 0.25;
|
|
--rp-underlay: rgba(20, 20, 30, 0.3);
|
|
--rp-bg:
|
|
radial-gradient(circle 320px at 24% 26%, rgba(120, 170, 255, 0.85) 0 22%, rgba(120, 170, 255, 0) 70%),
|
|
radial-gradient(circle 280px at 74% 18%, rgba(255, 140, 195, 0.8) 0 20%, rgba(255, 140, 195, 0) 70%),
|
|
radial-gradient(circle 360px at 82% 80%, rgba(255, 196, 110, 0.8) 0 22%, rgba(255, 196, 110, 0) 70%),
|
|
radial-gradient(circle 300px at 16% 86%, rgba(110, 220, 190, 0.8) 0 20%, rgba(110, 220, 190, 0) 70%),
|
|
radial-gradient(circle 220px at 52% 58%, rgba(180, 150, 255, 0.7) 0 20%, rgba(180, 150, 255, 0) 70%),
|
|
linear-gradient(118deg, transparent 34%, rgba(255, 255, 255, 0.55) 46%, rgba(255, 255, 255, 0.55) 49%, transparent 61%),
|
|
linear-gradient(135deg, #dfeeff 0%, #f3ddff 32%, #ffe6d6 64%, #dcf6ec 100%);
|
|
}
|
|
:root[data-family='glass'][data-scheme='dark'] {
|
|
--rp-base: rgba(255, 255, 255, 0.05);
|
|
--rp-surface: rgba(24, 24, 32, 0.45);
|
|
--rp-overlay: rgba(255, 255, 255, 0.1);
|
|
--rp-muted: #8e8e93;
|
|
--rp-subtle: #d0d0d6;
|
|
--rp-text: #f2f2f7;
|
|
--rp-love: #ff453a;
|
|
--rp-gold: #ff9f0a;
|
|
--rp-rose: #ffb340;
|
|
--rp-pine: #0a84ff;
|
|
--rp-foam: #30d158;
|
|
--rp-iris: #bf5af2;
|
|
--rp-c1: #0a84ff;
|
|
--rp-c2: #30d158;
|
|
--rp-c3: #bf5af2;
|
|
--rp-c4: #ff9f0a;
|
|
--rp-c5: #64d2ff;
|
|
--rp-c6: #ff375f;
|
|
--rp-c7: #ffd60a;
|
|
--rp-c8: #ff453a;
|
|
--rp-hl-low: rgba(255, 255, 255, 0.07);
|
|
--rp-hl-med: rgba(255, 255, 255, 0.14);
|
|
--rp-hl-high: rgba(255, 255, 255, 0.24);
|
|
--rp-on-accent: #ffffff;
|
|
--rp-on-text: #1c1c1e;
|
|
--rp-line: rgba(255, 255, 255, 0.12);
|
|
--rp-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
|
|
--rp-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);
|
|
--rp-glass: rgba(18, 20, 30, 0.56);
|
|
--rp-glass-strong: rgba(22, 24, 34, 0.74);
|
|
--rp-rim: linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.09) 40%, rgba(255, 255, 255, 0.03) 60%, rgba(255, 255, 255, 0.16) 100%);
|
|
--rp-sheen: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(255, 255, 255, 0) 60%);
|
|
--rp-glow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 28px rgba(255, 255, 255, 0.03);
|
|
--rp-ctl: rgba(255, 255, 255, 0.09);
|
|
--rp-ctl-border: rgba(255, 255, 255, 0.1);
|
|
--rp-track: rgba(0, 0, 0, 0.32);
|
|
--rp-grain-opacity: 0.35;
|
|
--rp-underlay: rgba(0, 0, 0, 0.45);
|
|
--rp-bg:
|
|
radial-gradient(circle 320px at 24% 26%, rgba(46, 84, 230, 0.7) 0 22%, rgba(46, 84, 230, 0) 70%),
|
|
radial-gradient(circle 280px at 74% 18%, rgba(150, 50, 140, 0.6) 0 20%, rgba(150, 50, 140, 0) 70%),
|
|
radial-gradient(circle 360px at 82% 80%, rgba(190, 96, 40, 0.42) 0 22%, rgba(190, 96, 40, 0) 70%),
|
|
radial-gradient(circle 300px at 16% 86%, rgba(16, 140, 120, 0.6) 0 20%, rgba(16, 140, 120, 0) 70%),
|
|
radial-gradient(circle 220px at 52% 58%, rgba(100, 70, 220, 0.55) 0 20%, rgba(100, 70, 220, 0) 70%),
|
|
linear-gradient(118deg, transparent 34%, rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0.06) 49%, transparent 61%),
|
|
linear-gradient(135deg, #090d24 0%, #1c0f38 32%, #1b1230 64%, #05201c 100%);
|
|
}
|
|
:root[data-family='glass'] {
|
|
--rp-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
}
|
|
:root[data-family='glass'] body {
|
|
background: var(--rp-bg);
|
|
background-attachment: fixed;
|
|
}
|
|
:root[data-family='glass'] body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
background: var(--rp-grain);
|
|
opacity: 0.14;
|
|
mix-blend-mode: overlay;
|
|
}
|
|
/* The shell keeps the usual 1600px centring; the readability scrim is a fixed full-viewport layer so it ends in no seam. */
|
|
:root[data-family='glass'] .rp-shell {
|
|
position: relative;
|
|
}
|
|
:root[data-family='glass'] body::after {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
background: linear-gradient(160deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
|
|
}
|
|
:root[data-family='glass'][data-scheme='dark'] body::after {
|
|
background: linear-gradient(160deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 50%);
|
|
}
|
|
/* Over a photo the chrome becomes a vibrancy sheet (as macOS sidebars do): frosted, no border, so labels stay readable
|
|
whatever the picture. The gradient look keeps the chrome bare. */
|
|
:root[data-family='glass'] .rp-top,
|
|
:root[data-family='glass'] .rp-side {
|
|
background: transparent;
|
|
}
|
|
:root[data-family='glass'] .rp-main {
|
|
background: rgba(255, 255, 255, 0.14);
|
|
border: 1px solid rgba(255, 255, 255, 0.35);
|
|
border-bottom: 0;
|
|
}
|
|
:root[data-family='glass'][data-scheme='dark'] .rp-main {
|
|
background: rgba(0, 0, 0, 0.18);
|
|
border-color: rgba(255, 255, 255, 0.08);
|
|
}
|
|
:root[data-family='glass'] .rp-search {
|
|
background: var(--rp-ctl);
|
|
border-color: var(--rp-ctl-border);
|
|
}
|
|
:root[data-family='glass'] .rp-vrule {
|
|
background: var(--rp-ctl-border);
|
|
}
|
|
/* The material. ::before carries the grain, ::after the gradient rim (a 1px ring cut out with a mask). */
|
|
:root[data-family='glass'] .rp-card,
|
|
:root[data-family='glass'] .rp-table,
|
|
:root[data-family='glass'] .rp-popover,
|
|
:root[data-family='glass'] .rp-dialog,
|
|
:root[data-family='glass'] .rp-toast {
|
|
position: relative;
|
|
isolation: isolate;
|
|
background: var(--rp-sheen), var(--rp-glass);
|
|
backdrop-filter: blur(28px) saturate(1.8);
|
|
border: 1px solid transparent;
|
|
box-shadow: var(--rp-glow), var(--rp-shadow);
|
|
}
|
|
:root[data-family='glass'] .rp-card::before,
|
|
:root[data-family='glass'] .rp-popover::before,
|
|
:root[data-family='glass'] .rp-dialog::before,
|
|
:root[data-family='glass'] .rp-table::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
background: var(--rp-grain);
|
|
opacity: var(--rp-grain-opacity);
|
|
mix-blend-mode: overlay;
|
|
}
|
|
:root[data-family='glass'] .rp-card::after,
|
|
:root[data-family='glass'] .rp-popover::after,
|
|
:root[data-family='glass'] .rp-dialog::after,
|
|
:root[data-family='glass'] .rp-table::after,
|
|
:root[data-family='glass'] .rp-toast::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: -1px;
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
padding: 1px;
|
|
background: var(--rp-rim);
|
|
mask:
|
|
linear-gradient(#000 0 0) content-box,
|
|
linear-gradient(#000 0 0);
|
|
mask-composite: exclude;
|
|
}
|
|
:root[data-family='glass'] .rp-card {
|
|
border-radius: 20px;
|
|
}
|
|
:root[data-family='glass'] .rp-popover::after {
|
|
inset: 0;
|
|
}
|
|
:root[data-family='glass'] .rp-popover,
|
|
:root[data-family='glass'] .rp-dialog {
|
|
background: var(--rp-sheen), var(--rp-glass-strong);
|
|
backdrop-filter: blur(40px) saturate(1.8);
|
|
box-shadow: var(--rp-glow), var(--rp-shadow-lg);
|
|
}
|
|
:root[data-family='glass'] .rp-table [role='columnheader'] {
|
|
background: transparent;
|
|
}
|
|
:root[data-family='glass'] .rp-table [role='row'][data-hovered]:not([data-selected]) {
|
|
background: rgba(255, 255, 255, 0.18);
|
|
}
|
|
:root[data-family='glass'][data-scheme='dark'] .rp-table [role='row'][data-hovered]:not([data-selected]) {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
/* Controls are small pieces of the same glass: translucent fill, a light rim, a lit pill for the selected segment. */
|
|
:root[data-family='glass'] .rp-btn {
|
|
background: var(--rp-ctl);
|
|
border-color: var(--rp-ctl-border);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
|
|
}
|
|
:root[data-family='glass'][data-scheme='dark'] .rp-btn {
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
}
|
|
:root[data-family='glass'] .rp-btn:hover {
|
|
background: var(--rp-hl-med);
|
|
}
|
|
:root[data-family='glass'] .rp-btn.quiet {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
:root[data-family='glass'] .rp-btn.quiet:hover {
|
|
background: var(--rp-hl-low);
|
|
}
|
|
:root[data-family='glass'] .rp-btn.secondary {
|
|
background: transparent;
|
|
}
|
|
:root[data-family='glass'] .rp-btn.accent,
|
|
:root[data-family='glass'] .rp-btn.primary {
|
|
background: var(--rp-pine);
|
|
border-color: transparent;
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.35),
|
|
0 4px 12px rgba(0, 122, 255, 0.35);
|
|
}
|
|
:root[data-family='glass'] .rp-btn.accent:hover,
|
|
:root[data-family='glass'] .rp-btn.primary:hover,
|
|
:root[data-family='glass'] .rp-btn.accent[data-pressed],
|
|
:root[data-family='glass'] .rp-btn.primary[data-pressed] {
|
|
background: color-mix(in srgb, var(--rp-pine) 86%, var(--rp-ink-mix));
|
|
}
|
|
:root[data-family='glass'] .rp-seg {
|
|
background: var(--rp-track);
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
}
|
|
:root[data-family='glass'] .rp-seg .rp-btn,
|
|
:root[data-family='glass'] .rp-seg .rp-btn:hover {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
:root[data-family='glass'] .rp-seg .rp-btn[data-selected] {
|
|
color: var(--rp-text);
|
|
}
|
|
:root[data-family='glass'] .rp-slider {
|
|
background: rgba(255, 255, 255, 0.85);
|
|
border-color: transparent;
|
|
box-shadow:
|
|
inset 0 1px 0 #fff,
|
|
0 1px 3px rgba(0, 0, 0, 0.18);
|
|
}
|
|
:root[data-family='glass'][data-scheme='dark'] .rp-slider {
|
|
background: rgba(120, 120, 128, 0.62);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.18),
|
|
0 1px 3px rgba(0, 0, 0, 0.45);
|
|
}
|
|
:root[data-family='glass'] .rp-switch .track {
|
|
background: var(--rp-track);
|
|
}
|
|
:root[data-family='glass'] .rp-switch[data-selected] .track {
|
|
background: var(--rp-pine);
|
|
}
|
|
:root[data-family='glass'] .rp-switch .track::after {
|
|
background: #ffffff;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
|
|
}
|
|
:root[data-family='glass'] .rp-node {
|
|
background: var(--rp-ctl);
|
|
border-color: var(--rp-ctl-border);
|
|
}
|
|
:root[data-family='glass'] .rp-node[data-selected],
|
|
:root[data-family='glass'] .rp-node.cur {
|
|
border-color: var(--rp-pine);
|
|
background: color-mix(in srgb, var(--rp-pine) 14%, var(--rp-ctl));
|
|
}
|
|
:root[data-family='glass'] .rp-input {
|
|
background: var(--rp-ctl);
|
|
border-color: var(--rp-ctl-border);
|
|
}
|
|
:root[data-family='glass'] .rp-selectbtn {
|
|
background: var(--rp-ctl);
|
|
}
|
|
:root[data-family='glass'] .rp-toast {
|
|
background: var(--rp-sheen), color-mix(in srgb, var(--rp-text) 84%, transparent);
|
|
box-shadow: var(--rp-glow), var(--rp-shadow-lg);
|
|
}
|
|
:root[data-family='glass'] .rp-toast.positive {
|
|
background: var(--rp-sheen), color-mix(in srgb, var(--rp-pine) 84%, transparent);
|
|
}
|
|
:root[data-family='glass'] .rp-toast.negative {
|
|
background: var(--rp-sheen), color-mix(in srgb, var(--rp-love) 84%, transparent);
|
|
}
|
|
:root[data-family='glass'] .rp-toast.info {
|
|
background: var(--rp-sheen), color-mix(in srgb, var(--rp-foam) 84%, transparent);
|
|
}
|
|
:root[data-family='glass'] .rp-underlay {
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
.rp-icon {
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
flex-shrink: 0;
|
|
}
|
|
@media not ((hover: hover) and (pointer: fine)) {
|
|
.rp-icon {
|
|
width: 1.5625rem;
|
|
height: 1.5625rem;
|
|
}
|
|
}
|
|
.rp-icon-stack {
|
|
position: relative;
|
|
width: 20px;
|
|
height: 20px;
|
|
display: block;
|
|
}
|
|
.rp-icon-stack > svg {
|
|
position: absolute;
|
|
inset: 0;
|
|
transition:
|
|
opacity 200ms ease-out,
|
|
transform 200ms ease-out;
|
|
}
|
|
.rp-icon-stack > .sun {
|
|
opacity: 0;
|
|
transform: rotate(90deg) scale(0.5);
|
|
}
|
|
.rp-icon-stack[data-dark] > .sun {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
.rp-icon-stack[data-dark] > .moon {
|
|
opacity: 0;
|
|
transform: rotate(-90deg) scale(0.5);
|
|
}
|
|
.rp-dialog .close {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
}
|
|
.rp-dialog {
|
|
position: relative;
|
|
}
|
|
.rp-empty {
|
|
padding: 24px;
|
|
text-align: center;
|
|
color: var(--rp-subtle);
|
|
}
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
background: var(--rp-base);
|
|
color: var(--rp-text);
|
|
}
|
|
/* Integer line heights everywhere so 1px rules land on whole pixels. */
|
|
body {
|
|
font:
|
|
14px/20px 'Noto Sans TC',
|
|
system-ui,
|
|
sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
button,
|
|
input {
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
.rp-shell {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: auto 1fr;
|
|
min-height: 100vh;
|
|
max-width: 1600px;
|
|
margin: 0 auto;
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.rp-shell {
|
|
grid-template-columns: 240px minmax(0, 1fr);
|
|
}
|
|
}
|
|
.rp-top {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
grid-column: 1 / -1;
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
column-gap: 24px;
|
|
padding: 0 24px;
|
|
min-height: 64px;
|
|
background: var(--rp-base);
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.rp-top {
|
|
grid-template-columns: 216px minmax(0, 1fr) auto;
|
|
}
|
|
}
|
|
.rp-brand {
|
|
grid-column: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: var(--rp-text);
|
|
text-decoration: none;
|
|
}
|
|
.rp-brand img {
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
.rp-search-wrap {
|
|
grid-column: 2;
|
|
display: none;
|
|
justify-content: center;
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.rp-search-wrap {
|
|
display: flex;
|
|
}
|
|
}
|
|
.rp-search {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
height: 40px;
|
|
padding: 0 12px 0 14px;
|
|
border: 1px solid var(--rp-hl-high);
|
|
border-radius: 999px;
|
|
background: var(--rp-surface);
|
|
color: var(--rp-subtle);
|
|
cursor: text;
|
|
text-align: start;
|
|
}
|
|
.rp-search:hover,
|
|
.rp-search[data-focus-visible] {
|
|
border-color: var(--rp-muted);
|
|
}
|
|
.rp-search .grow {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.rp-kbd {
|
|
font-size: 11px;
|
|
line-height: 16px;
|
|
padding: 2px 8px;
|
|
border: 1px solid var(--rp-hl-high);
|
|
border-radius: 999px;
|
|
color: var(--rp-subtle);
|
|
}
|
|
.rp-actions {
|
|
grid-column: 3;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
}
|
|
.rp-search-compact {
|
|
display: inline-flex;
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.rp-search-compact {
|
|
display: none;
|
|
}
|
|
}
|
|
.rp-vrule {
|
|
width: 2px;
|
|
height: 32px;
|
|
margin: 0 4px;
|
|
background: var(--rp-hl-med);
|
|
border-radius: 1px;
|
|
}
|
|
.rp-side {
|
|
display: none;
|
|
flex-direction: column;
|
|
padding: 16px 12px 16px 24px;
|
|
position: sticky;
|
|
top: 64px;
|
|
height: calc(100vh - 64px);
|
|
overflow: auto;
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.rp-side {
|
|
display: flex;
|
|
}
|
|
}
|
|
.rp-side-grow {
|
|
flex: 1;
|
|
}
|
|
.rp-group {
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: var(--rp-muted);
|
|
margin: 0 0 4px;
|
|
}
|
|
.rp-side > div + div {
|
|
margin-top: 16px;
|
|
}
|
|
.rp-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
border-radius: 8px;
|
|
color: var(--rp-subtle);
|
|
text-decoration: none;
|
|
position: relative;
|
|
}
|
|
.rp-nav:hover {
|
|
background: var(--rp-hl-low);
|
|
color: var(--rp-text);
|
|
}
|
|
.rp-nav[aria-current='page'] {
|
|
color: var(--rp-pine);
|
|
font-weight: 600;
|
|
}
|
|
.rp-nav-slider {
|
|
position: absolute;
|
|
left: 12px;
|
|
top: 0;
|
|
width: 2px;
|
|
border-radius: 1px;
|
|
background: var(--rp-group, var(--rp-pine));
|
|
transition:
|
|
translate 200ms var(--rp-ease-out),
|
|
height 200ms var(--rp-ease-out),
|
|
background-color 200ms var(--rp-ease);
|
|
pointer-events: none;
|
|
}
|
|
.rp-nav-slider {
|
|
clip-path: inset(8px 0);
|
|
}
|
|
.rp-version {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
height: 32px;
|
|
padding: 0 8px;
|
|
border-radius: 8px;
|
|
color: var(--rp-subtle);
|
|
background: transparent;
|
|
border: 0;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
}
|
|
.rp-version:hover {
|
|
background: var(--rp-hl-low);
|
|
}
|
|
.rp-main {
|
|
margin-right: 0;
|
|
padding: 32px 40px 48px;
|
|
background: var(--rp-surface);
|
|
border-radius: 16px 16px 0 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.rp-main {
|
|
margin-right: 16px;
|
|
}
|
|
}
|
|
.rp-content {
|
|
width: 100%;
|
|
max-width: 1120px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
min-width: 0;
|
|
}
|
|
.rp-head {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
.rp-mobile-nav {
|
|
display: block;
|
|
}
|
|
.rp-mobile-nav .rp-selectbtn {
|
|
width: 100%;
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.rp-mobile-nav {
|
|
display: none;
|
|
}
|
|
}
|
|
.rp-h1 {
|
|
font-size: 28px;
|
|
font-weight: 800;
|
|
margin: 0;
|
|
line-height: 36px;
|
|
color: var(--rp-text);
|
|
}
|
|
.rp-card {
|
|
background: var(--rp-base);
|
|
border: 1px solid color-mix(in srgb, var(--rp-hl-med) 70%, transparent);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
.rp-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
min-height: 32px;
|
|
flex-wrap: wrap;
|
|
min-width: 0;
|
|
}
|
|
.rp-row > * {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
.rp-cluster {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
min-width: 0;
|
|
}
|
|
.rp-label {
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: var(--rp-subtle);
|
|
}
|
|
.rp-strip {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
}
|
|
@media (min-width: 600px) {
|
|
.rp-strip {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
@media (min-width: 1200px) {
|
|
.rp-strip {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
}
|
|
.rp-g21 {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
align-items: stretch;
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.rp-g21 {
|
|
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
|
|
}
|
|
}
|
|
.rp-g3 {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
align-items: stretch;
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.rp-g3 {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
}
|
|
.rp-qlabel {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--rp-text);
|
|
}
|
|
.rp-tile-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 24px;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
min-width: 0;
|
|
color: var(--rp-subtle);
|
|
white-space: nowrap;
|
|
}
|
|
.rp-tile-body {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
min-height: 32px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.rp-tile-val {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
white-space: nowrap;
|
|
}
|
|
.rp-big {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
line-height: 28px;
|
|
}
|
|
.rp-delta {
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: var(--rp-subtle);
|
|
}
|
|
/* Colour roles: icons and deltas pick up the palette accents now that every palette has them. */
|
|
.rp-tile-head > svg,
|
|
.rp-qlabel > svg {
|
|
flex: none;
|
|
}
|
|
/* Role colours on icons, nav groups, rankings, and the wordmark; each palette supplies its own categorical set --rp-c1..c8. */
|
|
.rp-tint-c1 > svg {
|
|
color: var(--rp-c1);
|
|
}
|
|
.rp-tint-c2 > svg {
|
|
color: var(--rp-c2);
|
|
}
|
|
.rp-tint-c3 > svg {
|
|
color: var(--rp-c3);
|
|
}
|
|
.rp-tint-c4 > svg {
|
|
color: var(--rp-c4);
|
|
}
|
|
.rp-tint-c5 > svg {
|
|
color: var(--rp-c5);
|
|
}
|
|
.rp-side [data-group='status'] {
|
|
--rp-group: var(--rp-c1);
|
|
}
|
|
.rp-side [data-group='network'] {
|
|
--rp-group: var(--rp-c2);
|
|
}
|
|
.rp-side [data-group='proxy'] {
|
|
--rp-group: var(--rp-c3);
|
|
}
|
|
.rp-side [data-group='system'] {
|
|
--rp-group: var(--rp-c4);
|
|
}
|
|
.rp-nav > svg {
|
|
color: var(--rp-group, currentColor);
|
|
}
|
|
.rp-nav[aria-current='page'] {
|
|
color: var(--rp-group, var(--rp-pine));
|
|
}
|
|
.rp-side:has([data-group='status'] [aria-current='page']) .rp-nav-slider {
|
|
--rp-group: var(--rp-c1);
|
|
}
|
|
.rp-side:has([data-group='network'] [aria-current='page']) .rp-nav-slider {
|
|
--rp-group: var(--rp-c2);
|
|
}
|
|
.rp-side:has([data-group='proxy'] [aria-current='page']) .rp-nav-slider {
|
|
--rp-group: var(--rp-c3);
|
|
}
|
|
.rp-side:has([data-group='system'] [aria-current='page']) .rp-nav-slider {
|
|
--rp-group: var(--rp-c4);
|
|
}
|
|
.rp-nav:hover {
|
|
color: var(--rp-text);
|
|
}
|
|
:root:not([data-wordmark='plain']) .rp-brand span {
|
|
background: linear-gradient(90deg, var(--rp-c1), var(--rp-c3), var(--rp-c6));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
.rp-h1 {
|
|
color: var(--rp-text);
|
|
}
|
|
.rp-table [role='columnheader'] {
|
|
color: var(--rp-pine);
|
|
}
|
|
.rp-light.info::before {
|
|
background: var(--rp-foam);
|
|
}
|
|
.rp-delta.good {
|
|
color: var(--rp-pine);
|
|
}
|
|
.rp-delta.bad {
|
|
color: var(--rp-rose);
|
|
}
|
|
.rp-spark {
|
|
flex: 1 1 80px;
|
|
min-width: 80px;
|
|
max-width: 120px;
|
|
}
|
|
/* Controls on react-aria-components */
|
|
.rp-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
border-radius: 8px;
|
|
border: 1px solid transparent;
|
|
background: var(--rp-overlay);
|
|
color: var(--rp-text);
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
.rp-btn:hover {
|
|
background: var(--rp-hl-med);
|
|
}
|
|
.rp-btn[data-pressed] {
|
|
background: var(--rp-hl-high);
|
|
}
|
|
.rp-btn[data-focus-visible] {
|
|
outline: 2px solid var(--rp-pine);
|
|
outline-offset: 2px;
|
|
}
|
|
.rp-btn.quiet {
|
|
background: transparent;
|
|
}
|
|
.rp-btn.quiet:hover {
|
|
background: var(--rp-hl-low);
|
|
}
|
|
.rp-btn.sm {
|
|
height: 24px;
|
|
padding: 0 8px;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
border-radius: 8px;
|
|
}
|
|
.rp-btn.sm.icon {
|
|
width: 24px;
|
|
}
|
|
.rp-btn.accent,
|
|
.rp-btn.primary,
|
|
.rp-btn.negative,
|
|
.rp-btn.secondary {
|
|
border-radius: 999px;
|
|
padding: 0 12px;
|
|
}
|
|
.rp-btn.secondary {
|
|
background: transparent;
|
|
border-color: var(--rp-hl-high);
|
|
color: var(--rp-text);
|
|
}
|
|
.rp-btn.secondary:hover,
|
|
.rp-btn.secondary[data-pressed] {
|
|
background: var(--rp-hl-low);
|
|
}
|
|
.rp-btn.sm.accent,
|
|
.rp-btn.sm.primary,
|
|
.rp-btn.sm.negative,
|
|
.rp-btn.sm.secondary {
|
|
padding: 0 8px;
|
|
}
|
|
.rp-btn.icon {
|
|
width: 32px;
|
|
padding: 0;
|
|
justify-content: center;
|
|
}
|
|
.rp-btn.accent {
|
|
background: var(--rp-pine);
|
|
color: var(--rp-on-accent);
|
|
}
|
|
.rp-btn.accent:hover,
|
|
.rp-btn.accent[data-pressed] {
|
|
background: color-mix(in srgb, var(--rp-pine) 86%, var(--rp-ink-mix));
|
|
}
|
|
.rp-seg {
|
|
display: inline-flex;
|
|
gap: 4px;
|
|
max-width: 100%;
|
|
background: var(--rp-overlay);
|
|
border-radius: 10px;
|
|
padding: 2px;
|
|
}
|
|
.rp-seg .rp-btn {
|
|
flex: 0 1 auto;
|
|
min-width: 0;
|
|
padding: 0 8px;
|
|
}
|
|
.rp-seg .rp-btn {
|
|
height: 28px;
|
|
background: transparent;
|
|
color: var(--rp-subtle);
|
|
border-radius: 8px;
|
|
border: 2px solid transparent;
|
|
}
|
|
.rp-seg .rp-btn:hover {
|
|
color: var(--rp-text);
|
|
}
|
|
.rp-seg .rp-btn[data-selected] {
|
|
background: var(--rp-surface);
|
|
color: var(--rp-pine);
|
|
border-color: var(--rp-pine);
|
|
}
|
|
.rp-sec-h {
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: var(--rp-muted);
|
|
padding: 8px 8px 2px 32px;
|
|
}
|
|
.rp-popover [role='menu'],
|
|
.rp-popover [role='listbox'],
|
|
.rp-popover [role='dialog'] {
|
|
outline: none;
|
|
}
|
|
/* A slim overlay-like scrollbar so a long menu keeps its 8px inset on both sides. */
|
|
.rp-popover::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
.rp-popover::-webkit-scrollbar-thumb {
|
|
border-radius: 3px;
|
|
background: var(--rp-hl-high);
|
|
}
|
|
.rp-popover::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
margin: 8px 0;
|
|
}
|
|
/* Popover surface after S2: layer-2 background, radius 10, the three-layer elevated shadow, an outline only in dark. */
|
|
.rp-popover {
|
|
background: var(--rp-surface);
|
|
border: 1px solid var(--rp-popover-border);
|
|
border-radius: 10px;
|
|
padding: 8px;
|
|
overflow: hidden auto;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--rp-hl-high) transparent;
|
|
box-sizing: border-box;
|
|
box-shadow: var(--rp-elevated);
|
|
min-width: 160px;
|
|
}
|
|
.rp-item {
|
|
display: grid;
|
|
grid-template-columns: 16px minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
column-gap: 8px;
|
|
min-height: 32px;
|
|
padding: 0 8px 0 8px;
|
|
border-radius: 8px;
|
|
cursor: default;
|
|
outline: none;
|
|
color: var(--rp-text);
|
|
}
|
|
.rp-item[data-focused],
|
|
.rp-item[data-hovered] {
|
|
background: var(--rp-hl-low);
|
|
}
|
|
.rp-item[data-pressed] {
|
|
background: var(--rp-hl-med);
|
|
}
|
|
.rp-item[data-selected] {
|
|
font-weight: 600;
|
|
}
|
|
.rp-item .rp-check-mark {
|
|
width: 16px;
|
|
height: 16px;
|
|
visibility: hidden;
|
|
color: var(--rp-text);
|
|
}
|
|
.rp-item[data-selected] .rp-check-mark {
|
|
visibility: visible;
|
|
}
|
|
.rp-item.plain {
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
padding-left: 12px;
|
|
}
|
|
.rp-item .desc {
|
|
color: var(--rp-subtle);
|
|
font-size: 12px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.rp-item .desc.ok {
|
|
color: var(--rp-foam);
|
|
}
|
|
.rp-item .desc.warn {
|
|
color: var(--rp-gold);
|
|
}
|
|
.rp-item .desc.err {
|
|
color: var(--rp-love);
|
|
}
|
|
.rp-il {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
.ic {
|
|
display: inline-flex;
|
|
margin-right: 6px;
|
|
}
|
|
.rp-il .ic {
|
|
margin-right: 0;
|
|
}
|
|
.flag {
|
|
display: inline-flex;
|
|
width: 16px;
|
|
height: 12px;
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18);
|
|
flex: none;
|
|
vertical-align: -1px;
|
|
}
|
|
.flag > svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
.rp-tip {
|
|
background: var(--rp-text);
|
|
color: var(--rp-on-text);
|
|
font-size: 12px;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
}
|
|
.rp-light {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
white-space: nowrap;
|
|
}
|
|
.rp-light::before {
|
|
content: '';
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--dot, var(--rp-muted));
|
|
flex-shrink: 0;
|
|
}
|
|
.rp-light.sm {
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
}
|
|
.rp-light.sm::before {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
.rp-light.ok {
|
|
--dot: var(--rp-foam);
|
|
}
|
|
.rp-light.warn {
|
|
--dot: var(--rp-gold);
|
|
}
|
|
.rp-light.err {
|
|
--dot: var(--rp-love);
|
|
}
|
|
.rp-light.info {
|
|
--dot: var(--rp-iris);
|
|
}
|
|
.rp-light.neutral {
|
|
--dot: var(--rp-subtle);
|
|
}
|
|
.rp-light.muted {
|
|
color: var(--rp-muted);
|
|
opacity: 0.6;
|
|
}
|
|
.rp-bar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
.rp-bar .top {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
.rp-bar .top .l {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.rp-bar .top .v {
|
|
color: var(--rp-subtle);
|
|
flex-shrink: 0;
|
|
font-size: 12px;
|
|
}
|
|
.rp-bar .track {
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
background: var(--rp-hl-med);
|
|
overflow: hidden;
|
|
}
|
|
.rp-bar .fill {
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
}
|
|
.rp-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
.rp-dev {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 28px;
|
|
color: var(--rp-subtle);
|
|
}
|
|
.rp-hr {
|
|
height: 0;
|
|
border: 0;
|
|
border-top: 1px solid var(--rp-hl-med);
|
|
margin: 0;
|
|
}
|
|
.rp-legend {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: var(--rp-subtle);
|
|
}
|
|
.rp-legend .it {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.rp-legend .sw {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 3px;
|
|
background: var(--rp-c1);
|
|
}
|
|
.rp-legend b {
|
|
color: var(--rp-text);
|
|
}
|
|
.rp-donut {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.rp-donut .box {
|
|
position: relative;
|
|
width: 112px;
|
|
height: 112px;
|
|
flex-shrink: 0;
|
|
}
|
|
.rp-donut .center {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
line-height: 28px;
|
|
font-weight: 700;
|
|
pointer-events: none;
|
|
}
|
|
.rp-donut .lst {
|
|
flex: 1 1 160px;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
.rp-donut .r {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 24px;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: var(--rp-subtle);
|
|
}
|
|
.rp-donut .r .dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
.rp-donut .r .n {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--rp-text);
|
|
}
|
|
.rp-donut .r .p {
|
|
width: 36px;
|
|
text-align: end;
|
|
font-size: 12px;
|
|
}
|
|
.rp-select {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
height: 24px;
|
|
padding: 0 8px;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
border: 0;
|
|
color: var(--rp-text);
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
}
|
|
.rp-select:hover {
|
|
background: var(--rp-hl-low);
|
|
}
|
|
.rp-dialog {
|
|
background: var(--rp-surface);
|
|
border-radius: 16px;
|
|
padding: 24px 32px;
|
|
width: min(720px, 90vw);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
outline: none;
|
|
}
|
|
.rp-underlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: var(--rp-underlay);
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding-top: 12vh;
|
|
z-index: 10;
|
|
}
|
|
.rp-input {
|
|
display: flex;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
align-items: center;
|
|
gap: 8px;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--rp-hl-high);
|
|
border-radius: 8px;
|
|
background: var(--rp-base);
|
|
}
|
|
.rp-input.lg {
|
|
height: 40px;
|
|
border-radius: 10px;
|
|
}
|
|
.rp-input .clear {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 0;
|
|
border-radius: 50%;
|
|
background: transparent;
|
|
color: var(--rp-subtle);
|
|
cursor: pointer;
|
|
}
|
|
.rp-input .clear:hover {
|
|
background: var(--rp-hl-med);
|
|
}
|
|
.rp-input[data-empty] .clear {
|
|
display: none;
|
|
}
|
|
.rp-input input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
border: 0;
|
|
outline: 0;
|
|
background: transparent;
|
|
}
|
|
.rp-input input::-webkit-search-cancel-button {
|
|
display: none;
|
|
}
|
|
.rp-results {
|
|
max-height: 420px;
|
|
overflow: auto;
|
|
scrollbar-width: thin;
|
|
padding-right: 12px;
|
|
}
|
|
.rp-section-h {
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: var(--rp-muted);
|
|
padding: 8px 12px 4px;
|
|
}
|
|
.rp-placeholder {
|
|
color: var(--rp-subtle);
|
|
}
|
|
|
|
/* Kit additions for the remaining pages */
|
|
.rp-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
min-width: 0;
|
|
}
|
|
.rp-note {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
color: var(--rp-subtle);
|
|
}
|
|
.rp-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.rp-between {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.rp-col {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
min-width: 0;
|
|
}
|
|
.rp-col > .rp-btn,
|
|
.rp-card > .rp-btn {
|
|
align-self: flex-start;
|
|
}
|
|
.rp-split {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
@media (min-width: 1280px) {
|
|
.rp-split {
|
|
grid-template-columns: minmax(0, 1fr) 320px;
|
|
}
|
|
}
|
|
.rp-h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
line-height: 20px;
|
|
font-weight: 700;
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.rp-code {
|
|
font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
|
|
font-size: 13px;
|
|
}
|
|
.rp-kv {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
|
gap: 12px 16px;
|
|
}
|
|
.rp-kv .k {
|
|
display: block;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: var(--rp-muted);
|
|
}
|
|
.rp-kv .v {
|
|
display: block;
|
|
line-height: 20px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.rp-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
flex: none;
|
|
height: 20px;
|
|
padding: 0 8px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
font-weight: 500;
|
|
border: 1px solid var(--rp-hl-high);
|
|
color: var(--rp-subtle);
|
|
}
|
|
.rp-badge.warn {
|
|
border-color: transparent;
|
|
background: var(--rp-gold);
|
|
color: var(--rp-on-accent);
|
|
}
|
|
.rp-btn.negative {
|
|
background: transparent;
|
|
border-color: var(--rp-love);
|
|
color: var(--rp-love);
|
|
}
|
|
.rp-btn.negative:hover,
|
|
.rp-btn.negative[data-pressed] {
|
|
background: color-mix(in srgb, var(--rp-love) 12%, transparent);
|
|
}
|
|
.rp-btn.primary {
|
|
background: var(--rp-pine);
|
|
color: var(--rp-on-accent);
|
|
}
|
|
.rp-btn.primary:hover,
|
|
.rp-btn.primary[data-pressed] {
|
|
background: color-mix(in srgb, var(--rp-pine) 86%, var(--rp-ink-mix));
|
|
}
|
|
.rp-btn[data-disabled] {
|
|
cursor: default;
|
|
pointer-events: none;
|
|
color: var(--rp-muted);
|
|
background: var(--rp-hl-low);
|
|
border-color: transparent;
|
|
}
|
|
.rp-btn.quiet[data-disabled] {
|
|
background: transparent;
|
|
}
|
|
.rp-btn.negative[data-disabled] {
|
|
background: transparent;
|
|
border-color: var(--rp-hl-med);
|
|
}
|
|
.rp-btn.accent[data-disabled],
|
|
.rp-btn.primary[data-disabled] {
|
|
background: var(--rp-hl-med);
|
|
color: var(--rp-muted);
|
|
}
|
|
.rp-btn[data-disabled] > svg {
|
|
opacity: 0.6;
|
|
}
|
|
.rp-nodes {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
.rp-grow {
|
|
flex: 1;
|
|
}
|
|
/* Node tiles */
|
|
.rp-node {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
height: 56px;
|
|
padding: 8px 12px;
|
|
border-radius: 8px;
|
|
border: 2px solid transparent;
|
|
background: var(--rp-overlay);
|
|
color: var(--rp-text);
|
|
text-align: start;
|
|
width: 100%;
|
|
min-width: 0;
|
|
box-sizing: border-box;
|
|
font: inherit;
|
|
}
|
|
button.rp-node {
|
|
cursor: pointer;
|
|
}
|
|
button.rp-node:hover {
|
|
background: var(--rp-hl-med);
|
|
}
|
|
button.rp-node[data-focus-visible] {
|
|
outline: 2px solid var(--rp-pine);
|
|
outline-offset: 2px;
|
|
}
|
|
.rp-node[data-selected],
|
|
.rp-node.cur {
|
|
border-color: var(--rp-pine);
|
|
background: color-mix(in srgb, var(--rp-pine) 10%, var(--rp-overlay));
|
|
}
|
|
.rp-node .top {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
.rp-node .n {
|
|
font-weight: 700;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.rp-node .ms {
|
|
flex: none;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.rp-node .ms.ok {
|
|
color: var(--rp-foam);
|
|
}
|
|
.rp-node .ms.warn {
|
|
color: var(--rp-gold);
|
|
}
|
|
.rp-node .ms.err {
|
|
color: var(--rp-love);
|
|
}
|
|
.rp-node .s {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: var(--rp-subtle);
|
|
white-space: pre;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.rp-node .cur {
|
|
color: var(--rp-pine);
|
|
font-weight: 600;
|
|
}
|
|
.rp-nodegrid {
|
|
height: 376px;
|
|
overflow: auto;
|
|
outline: none;
|
|
scrollbar-width: thin;
|
|
border-radius: 8px;
|
|
}
|
|
.rp-nodegrid .rp-node {
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
.rp-nodegrid .rp-node[data-hovered] {
|
|
background: var(--rp-hl-med);
|
|
}
|
|
.rp-nodegrid .rp-node[data-focus-visible] {
|
|
outline: 2px solid var(--rp-pine);
|
|
outline-offset: -2px;
|
|
}
|
|
.rp-menu-scroll {
|
|
max-height: 360px;
|
|
overflow: auto;
|
|
scrollbar-width: thin;
|
|
}
|
|
.rp-menu-search {
|
|
margin: 4px 4px 8px;
|
|
width: 240px;
|
|
}
|
|
.rp-more {
|
|
color: var(--rp-subtle);
|
|
}
|
|
.rp-spinner {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--rp-hl-high);
|
|
border-top-color: var(--rp-pine);
|
|
animation: rp-spin 800ms linear infinite;
|
|
}
|
|
.rp-muted {
|
|
color: var(--rp-muted);
|
|
}
|
|
.rp-switch {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
}
|
|
.rp-switch .track {
|
|
width: 32px;
|
|
height: 16px;
|
|
border-radius: 8px;
|
|
background: var(--rp-hl-high);
|
|
position: relative;
|
|
transition: background 150ms;
|
|
flex-shrink: 0;
|
|
}
|
|
.rp-switch .track::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
background: var(--rp-surface);
|
|
transition: transform 150ms;
|
|
}
|
|
.rp-switch[data-selected] .track {
|
|
background: var(--rp-pine);
|
|
}
|
|
.rp-switch[data-selected] .track::after {
|
|
transform: translateX(16px);
|
|
}
|
|
.rp-switch[data-disabled] {
|
|
opacity: 0.4;
|
|
cursor: default;
|
|
}
|
|
.rp-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
.rp-field > label,
|
|
.rp-field .lbl {
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: var(--rp-subtle);
|
|
}
|
|
.rp-field .rp-input {
|
|
height: 32px;
|
|
}
|
|
.rp-selectbtn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
height: 32px;
|
|
padding: 0 8px 0 12px;
|
|
border-radius: 8px;
|
|
background: var(--rp-overlay);
|
|
border: 0;
|
|
color: var(--rp-text);
|
|
cursor: pointer;
|
|
min-width: 120px;
|
|
}
|
|
.rp-selectbtn:hover {
|
|
background: var(--rp-hl-med);
|
|
}
|
|
.rp-selectbtn[data-disabled] {
|
|
opacity: 0.4;
|
|
cursor: default;
|
|
}
|
|
.rp-table {
|
|
width: 100%;
|
|
height: 442px;
|
|
border: 1px solid var(--rp-hl-med);
|
|
border-radius: 8px;
|
|
background: var(--rp-surface);
|
|
overflow: auto;
|
|
scrollbar-width: thin;
|
|
outline: none;
|
|
}
|
|
.rp-table table,
|
|
.rp-table [role='grid'] {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
table-layout: fixed;
|
|
}
|
|
.rp-table [role='columnheader'] {
|
|
text-align: start;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
font-weight: 700;
|
|
color: var(--rp-pine);
|
|
padding: 8px 16px;
|
|
background: var(--rp-base);
|
|
border-bottom: 1px solid var(--rp-hl-med);
|
|
white-space: nowrap;
|
|
position: sticky;
|
|
top: 0;
|
|
outline: none;
|
|
}
|
|
.rp-table [role='row'][data-selected] {
|
|
background: color-mix(in srgb, var(--rp-pine) 12%, transparent);
|
|
}
|
|
.rp-table [role='row'][data-hovered]:not([data-selected]) {
|
|
background: var(--rp-hl-low);
|
|
}
|
|
.rp-table [role='row'][data-focus-visible] {
|
|
outline: 2px solid var(--rp-pine);
|
|
outline-offset: -2px;
|
|
}
|
|
.rp-table [role='rowheader'],
|
|
.rp-table [role='gridcell'] {
|
|
padding: 0 16px;
|
|
height: 40px;
|
|
border-bottom: 1px solid var(--rp-line);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 0;
|
|
outline: none;
|
|
vertical-align: middle;
|
|
}
|
|
.rp-table [role='row'][data-selection-mode='single'] {
|
|
cursor: default;
|
|
}
|
|
.rp-table .empty {
|
|
padding: 32px 16px;
|
|
text-align: center;
|
|
color: var(--rp-subtle);
|
|
}
|
|
.rp-table .end {
|
|
text-align: end;
|
|
}
|
|
/* Virtualized tables use divs; only their layout differs from native cells. */
|
|
.rp-table > div[role='grid'] {
|
|
height: 100%;
|
|
overflow: auto;
|
|
scrollbar-width: thin;
|
|
outline: none;
|
|
}
|
|
.rp-table div[role='row'],
|
|
.rp-table div[role='columnheader'],
|
|
.rp-table div[role='rowgroup'] {
|
|
height: 100%;
|
|
}
|
|
.rp-table div[role='columnheader'] {
|
|
position: static;
|
|
}
|
|
.rp-table div[role='rowheader'],
|
|
.rp-table div[role='gridcell'] {
|
|
display: flex;
|
|
align-items: center;
|
|
max-width: none;
|
|
}
|
|
.rp-table .cell {
|
|
width: 100%;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.rp-kw {
|
|
color: var(--rp-love);
|
|
}
|
|
.rp-out {
|
|
color: var(--rp-pine);
|
|
font-weight: 600;
|
|
}
|
|
.rp-alert {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 12px 16px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--rp-love);
|
|
}
|
|
.rp-p {
|
|
margin: 0;
|
|
line-height: 20px;
|
|
}
|
|
.rp-dialog .foot {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding-top: 8px;
|
|
}
|
|
.rp-dialog h2 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
line-height: 24px;
|
|
font-weight: 700;
|
|
}
|
|
.rp-dialog.narrow {
|
|
width: min(480px, 90vw);
|
|
}
|
|
.rp-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
.rp-cards {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
}
|
|
@media (min-width: 1280px) {
|
|
.rp-cards {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
.rp-check {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.rp-check {
|
|
grid-template-columns: 200px minmax(0, 1fr) auto;
|
|
}
|
|
}
|
|
.rp-pair {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 16px;
|
|
}
|
|
.rp-fail {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--rp-hl-med);
|
|
}
|
|
.rp-group-btns {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.rp-table .rp-group-btns {
|
|
flex-wrap: nowrap;
|
|
}
|
|
.rp-table [role='gridcell']:has(.rp-btn) {
|
|
overflow: visible;
|
|
}
|
|
.rp-kv.inline {
|
|
display: flex;
|
|
gap: 24px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* ---- Motion, after S2: default 150ms cubic-bezier(0.45,0,0.4,1); overlays 200ms in / out; modals 250ms in, 130ms out. ---- */
|
|
:root {
|
|
--rp-on-accent: var(--rp-surface);
|
|
--rp-on-text: var(--rp-surface);
|
|
--rp-line: var(--rp-hl-low);
|
|
--rp-ease: cubic-bezier(0.45, 0, 0.4, 1);
|
|
--rp-ease-in: cubic-bezier(0.5, 0, 1, 1);
|
|
--rp-ease-out: cubic-bezier(0, 0, 0.4, 1);
|
|
}
|
|
.rp-btn,
|
|
.rp-nav,
|
|
.rp-item,
|
|
.rp-select,
|
|
.rp-selectbtn,
|
|
.rp-search,
|
|
.rp-input,
|
|
.rp-version,
|
|
.rp-brand,
|
|
.rp-input .clear,
|
|
.rp-table [role='row'],
|
|
.rp-switch,
|
|
.rp-check,
|
|
.rp-badge {
|
|
transition-property: color, background-color, border-color, opacity, box-shadow, outline-color;
|
|
transition-duration: 150ms;
|
|
transition-timing-function: var(--rp-ease);
|
|
}
|
|
/* Press feedback follows S2 Button: hover and press are one colour step, no movement. */
|
|
:root {
|
|
--rp-ink-mix: #000;
|
|
}
|
|
:root[data-scheme='dark'] {
|
|
--rp-ink-mix: #fff;
|
|
}
|
|
.rp-bar .fill {
|
|
transition: width 200ms var(--rp-ease-out);
|
|
}
|
|
/* Segmented control: the selection slides between items (200ms, ease-out). */
|
|
.rp-seg {
|
|
position: relative;
|
|
}
|
|
.rp-slider {
|
|
position: absolute;
|
|
top: 2px;
|
|
bottom: 2px;
|
|
left: 0;
|
|
border-radius: 8px;
|
|
background: var(--rp-surface);
|
|
border: 2px solid var(--rp-pine);
|
|
box-sizing: border-box;
|
|
transition:
|
|
translate 200ms var(--rp-ease-out),
|
|
width 200ms var(--rp-ease-out);
|
|
pointer-events: none;
|
|
}
|
|
.rp-seg .rp-btn {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
.rp-seg .rp-btn[data-selected] {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
}
|
|
/* Popovers, menus, tooltips: fade and drift 4px from the trigger side. */
|
|
.rp-popover,
|
|
.rp-tip {
|
|
transition:
|
|
opacity 200ms var(--rp-ease),
|
|
translate 200ms var(--rp-ease);
|
|
}
|
|
.rp-popover[data-entering],
|
|
.rp-tip[data-entering] {
|
|
animation: rp-pop-in 200ms var(--rp-ease);
|
|
}
|
|
.rp-popover[data-exiting],
|
|
.rp-tip[data-exiting] {
|
|
animation: rp-pop-out 200ms var(--rp-ease-in);
|
|
pointer-events: none;
|
|
}
|
|
.rp-popover[data-placement='top'],
|
|
.rp-tip[data-placement='top'] {
|
|
--rp-drift: 0 4px;
|
|
}
|
|
.rp-popover[data-placement='bottom'],
|
|
.rp-tip[data-placement='bottom'] {
|
|
--rp-drift: 0 -4px;
|
|
}
|
|
.rp-popover[data-placement='left'],
|
|
.rp-tip[data-placement='left'] {
|
|
--rp-drift: 4px 0;
|
|
}
|
|
.rp-popover[data-placement='right'],
|
|
.rp-tip[data-placement='right'] {
|
|
--rp-drift: -4px 0;
|
|
}
|
|
@keyframes rp-pop-in {
|
|
from {
|
|
opacity: 0;
|
|
translate: var(--rp-drift, 0 -4px);
|
|
}
|
|
}
|
|
@keyframes rp-pop-out {
|
|
to {
|
|
opacity: 0;
|
|
translate: var(--rp-drift, 0 -4px);
|
|
}
|
|
}
|
|
/* Modal: underlay fades, the dialog follows with a short delay and a 20px rise. */
|
|
.rp-underlay[data-entering] {
|
|
animation: rp-fade-in 250ms var(--rp-ease);
|
|
}
|
|
.rp-underlay[data-exiting] {
|
|
animation: rp-fade-out 130ms var(--rp-ease);
|
|
}
|
|
.rp-underlay[data-entering] .rp-dialog {
|
|
animation: rp-dialog-in 250ms var(--rp-ease) 160ms both;
|
|
}
|
|
.rp-underlay[data-exiting] .rp-dialog {
|
|
animation: rp-fade-out 130ms var(--rp-ease) both;
|
|
}
|
|
@keyframes rp-fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
@keyframes rp-fade-out {
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
@keyframes rp-dialog-in {
|
|
from {
|
|
opacity: 0;
|
|
translate: 0 20px;
|
|
}
|
|
}
|
|
/* Toasts slide in from below and back out. */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.rp-slider,
|
|
.rp-bar .fill {
|
|
transition: none;
|
|
}
|
|
.rp-popover[data-entering],
|
|
.rp-tip[data-entering],
|
|
.rp-underlay[data-entering] .rp-dialog {
|
|
animation: rp-fade-in 200ms var(--rp-ease);
|
|
}
|
|
.rp-popover[data-exiting],
|
|
.rp-tip[data-exiting],
|
|
.rp-underlay[data-exiting] .rp-dialog {
|
|
animation: rp-fade-out 130ms var(--rp-ease) forwards;
|
|
}
|
|
}
|
|
/* ---- Toast stack (after S2 ToastContainer): bottom centre, newest on top, older toasts peek out behind; expanded = list over an underlay. ---- */
|
|
.rp-toast-underlay {
|
|
appearance: none;
|
|
border: 0;
|
|
padding: 0;
|
|
text-align: inherit;
|
|
position: fixed;
|
|
inset: 0;
|
|
background: var(--rp-underlay);
|
|
z-index: 19;
|
|
animation: rp-fade-in 250ms var(--rp-ease);
|
|
}
|
|
.rp-toasts {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 16px;
|
|
margin: 0 auto;
|
|
width: fit-content;
|
|
max-width: 90vw;
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
gap: 8px;
|
|
z-index: 20;
|
|
}
|
|
.rp-toasts.expanded {
|
|
bottom: 0;
|
|
top: 0;
|
|
padding: 16px 8px;
|
|
max-height: 100vh;
|
|
}
|
|
.rp-toast-list {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
gap: 8px;
|
|
}
|
|
.rp-toasts.expanded .rp-toast-list {
|
|
overflow: auto;
|
|
padding: 8px;
|
|
margin: 0 -8px;
|
|
}
|
|
.rp-toast-controls {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
.rp-toast {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 12px 8px 12px 16px;
|
|
min-height: 56px;
|
|
width: 336px;
|
|
max-width: 90vw;
|
|
border-radius: 10px;
|
|
background: var(--rp-text);
|
|
color: var(--rp-on-text);
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
box-shadow: var(--rp-shadow-lg);
|
|
box-sizing: border-box;
|
|
flex-shrink: 0;
|
|
transition:
|
|
translate 400ms var(--rp-ease),
|
|
scale 400ms var(--rp-ease),
|
|
opacity 400ms var(--rp-ease);
|
|
}
|
|
.rp-toast .main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
.rp-toast .body {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.rp-toast .body > svg {
|
|
flex: none;
|
|
}
|
|
.rp-toast .grow {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.rp-toast .more {
|
|
color: inherit;
|
|
flex: none;
|
|
margin-left: -8px;
|
|
}
|
|
.rp-toast .more:hover,
|
|
.rp-toast .close:hover {
|
|
background: color-mix(in srgb, currentColor 16%, transparent);
|
|
}
|
|
.rp-toast > .close {
|
|
color: inherit;
|
|
width: 24px;
|
|
height: 24px;
|
|
min-width: 0;
|
|
flex: none;
|
|
align-self: flex-start;
|
|
margin-top: -2px;
|
|
}
|
|
.rp-toast > .close > svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
.rp-toast.negative {
|
|
background: var(--rp-love);
|
|
color: var(--rp-on-accent);
|
|
}
|
|
.rp-toast.positive {
|
|
background: var(--rp-pine);
|
|
color: var(--rp-on-accent);
|
|
}
|
|
.rp-toast.info {
|
|
background: var(--rp-foam);
|
|
color: var(--rp-on-accent);
|
|
}
|
|
|
|
/* Collapsed stack: toasts behind the main one sit on it, pushed up and shrunk by their depth; only three show. */
|
|
.rp-toast.background {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
min-height: 0;
|
|
translate: 0 calc(var(--i) * -10px);
|
|
scale: calc(1 - var(--i) * 0.06);
|
|
opacity: 1;
|
|
}
|
|
.rp-toast.background > * {
|
|
visibility: hidden;
|
|
}
|
|
.rp-toast.background[style*='--i: 3'] {
|
|
opacity: 0;
|
|
}
|
|
.rp-toast-list:hover .rp-toast.background {
|
|
translate: 0 calc(var(--i) * -14px);
|
|
}
|
|
.rp-toasts:not(.expanded) .rp-toast-list {
|
|
cursor: default;
|
|
}
|
|
.rp-toast:not(.background):not(.exiting) {
|
|
animation: rp-toast-in 400ms var(--rp-ease);
|
|
}
|
|
.rp-toast.exiting {
|
|
animation: rp-toast-out 400ms var(--rp-ease) forwards;
|
|
pointer-events: none;
|
|
}
|
|
.rp-toast.exiting.background {
|
|
animation: rp-fade-out 400ms var(--rp-ease) forwards;
|
|
}
|
|
@keyframes rp-toast-in {
|
|
from {
|
|
opacity: 0;
|
|
translate: 0 calc(100% + 12px);
|
|
}
|
|
}
|
|
@keyframes rp-toast-out {
|
|
to {
|
|
opacity: 0;
|
|
translate: 0 calc(100% + 12px);
|
|
}
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.rp-toast {
|
|
transition: none;
|
|
}
|
|
.rp-toast:not(.background):not(.exiting) {
|
|
animation: rp-fade-in 200ms var(--rp-ease);
|
|
}
|
|
.rp-toast.exiting {
|
|
animation: rp-fade-out 130ms var(--rp-ease) forwards;
|
|
}
|
|
}
|
|
/* The sidebar marker slides to the active page; palette and scheme changes crossfade (view transitions). Page changes themselves are instant, as in S2. */
|
|
::view-transition-old(root),
|
|
::view-transition-new(root) {
|
|
animation-duration: 300ms;
|
|
}
|
|
.rp-spin svg {
|
|
animation: rp-spin 600ms var(--rp-ease);
|
|
}
|
|
@keyframes rp-spin {
|
|
to {
|
|
rotate: 360deg;
|
|
}
|
|
}
|
|
.rp-node {
|
|
transition:
|
|
background-color 150ms var(--rp-ease),
|
|
border-color 150ms var(--rp-ease);
|
|
}
|
|
button.rp-node:hover {
|
|
background: var(--rp-hl-med);
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.rp-nav-slider {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
.rp-flow-timeline {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
margin: 0;
|
|
padding-inline-start: 24px;
|
|
}
|
|
.rp-flow-step {
|
|
border-inline-start: 2px solid var(--rp-hl-med);
|
|
padding: 8px 0 8px 16px;
|
|
}
|
|
.rp-flow-step > .rp-toolbar {
|
|
margin-bottom: 12px;
|
|
}
|
|
.rp-flow-raw {
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
font: inherit;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.rp-provenance {
|
|
margin-inline-start: 4px;
|
|
padding: 1px 4px;
|
|
border-radius: 4px;
|
|
background: var(--rp-hl-med);
|
|
color: var(--rp-subtle);
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
}
|
|
.rp-rule {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
.rp-rule > span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.rp-rule > .rp-provenance {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rp-flow-filter .rp-btn {
|
|
background: var(--rp-hl-low);
|
|
border-color: var(--rp-hl-high);
|
|
}
|
|
|
|
.rp-spin svg {
|
|
animation-iteration-count: infinite;
|
|
}
|
|
|
|
.rp-flow-columns {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 24px 48px;
|
|
}
|
|
.rp-flow-ribbons {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
.rp-flow-stage {
|
|
position: relative;
|
|
min-width: 0;
|
|
}
|
|
.rp-flow-stage > .rp-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 0;
|
|
padding: 0 10px;
|
|
font-weight: 500;
|
|
}
|
|
.rp-flow-stage .rp-count {
|
|
background: var(--rp-hl-med);
|
|
color: var(--rp-subtle);
|
|
}
|
|
.rp-flow-row {
|
|
width: 100%;
|
|
min-width: 0;
|
|
padding: 6px 8px;
|
|
border: 2px solid transparent;
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
color: var(--rp-text);
|
|
text-align: start;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.rp-flow-row[data-hovered] {
|
|
background: var(--rp-hl-low);
|
|
}
|
|
.rp-flow-row[data-selected] {
|
|
border-color: var(--rp-pine);
|
|
background: color-mix(in srgb, var(--rp-pine) 10%, var(--rp-overlay));
|
|
}
|
|
.rp-flow-row[data-focus-visible] {
|
|
outline: 2px solid var(--rp-pine);
|
|
outline-offset: 2px;
|
|
}
|
|
.rp-flow-row[data-unknown] .l {
|
|
color: var(--rp-muted);
|
|
}
|
|
@media (max-width: 900px) {
|
|
.rp-flow-columns {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
column-gap: 24px;
|
|
}
|
|
.rp-flow-ribbons {
|
|
display: none;
|
|
}
|
|
}
|