Files
fpv-rid-workbench/crates/web-ui/public/home.css
T
JiuContinentandCursor 5522843823 style(web-ui): 将应用总览标题居中显示
应用总览的系统名称原先贴着卡片左缘,现改为在启动器内容区水平居中。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-30 10:57:47 +08:00

73 lines
7.9 KiB
CSS

/* Approved B1 launch screen. All rules are scoped to the home or wallpaper chooser. */
.home-top{position:absolute;z-index:15;inset:0 0 auto;height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:#0e172570;border-bottom:1px solid #d7e9ff14;backdrop-filter:blur(18px);color:var(--work-text)}
.home-brand{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600}
.home-brand-mark{width:24px;height:24px;background:#a9c9e516;border:1px solid #bad6f430;border-radius:6px;display:grid;place-items:center;color:var(--work-muted);font-size:12px}
.home-top-note{font-size:12px;color:var(--work-muted)}
.workspace-home-link{display:inline-flex;align-items:center;gap:6px;border:0;background:none;box-shadow:none;padding:5px 2px;color:var(--work-muted);font-size:13px}
.workspace-home-link:hover{color:var(--work-text);background:#809ab516}.workspace-crumb-separator{color:var(--work-muted);opacity:.5;font-size:12px}
.home-launcher.homescreen{position:absolute;inset:48px 0 0!important;display:flex;align-items:center;justify-content:center;height:auto;min-height:0;max-width:none;margin:0!important;padding:36px 40px 60px;background:none!important;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;overflow:auto;color:var(--work-text);text-align:left}
.home-space{width:1070px;max-width:100%;margin:auto 0}
.home-heading{margin:0 0 28px;text-align:center}
.home-heading h1{font-size:27px;font-weight:600;line-height:1.4;letter-spacing:0;text-shadow:none;color:var(--work-text)}
.home-heading p{font-size:14px;line-height:1.8;color:var(--work-muted);margin-top:8px}
.home-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.home-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:0;padding:24px;border:1px solid #b0cbea2c;border-radius:17px;background:linear-gradient(145deg,#4d657b4d,#1a2a3b73),#0c182494;box-shadow:0 1px 0 #ffffff08 inset,0 14px 40px #00000012;backdrop-filter:blur(22px);text-align:left;white-space:normal;color:var(--work-text);font:inherit;cursor:pointer;transition:transform .18s,background .18s,border-color .18s}
.home-card:hover{background:linear-gradient(145deg,#667f9852,#24384b85),#0c1824a0;border-color:#bfdafa62;transform:translateY(-3px)}
.home-card:focus-visible{outline:2px solid #91bde8;outline-offset:5px}
.home-app-icon{display:block;width:75px;height:75px;flex-shrink:0;filter:drop-shadow(0 5px 8px #0002)}
.home-card-title{display:block;font-size:18px;font-weight:600;line-height:1.5;margin-top:22px}
.home-card-desc{display:block;min-height:50px;font-size:14px;line-height:1.85;color:var(--work-muted);margin-top:8px}
.home-card-preview{display:block;width:100%;margin-top:23px;pointer-events:none}
/* Static feature illustrations, not live device data or nested controls. */
.home-card .mini{display:flex;flex-direction:column;height:119px;width:100%;border-radius:10px;border:1px solid #33475e;background:#111f30;overflow:hidden;position:relative;color:#c1d1e1}
.home-preview-art{display:block;width:100%;height:88px;min-height:0;flex:1}
.home-card .home-preview-caption{display:block;flex-shrink:0;padding:3px 11px 7px;font-size:11px;line-height:17px;white-space:nowrap;color:#bacbde}
.home-card .preview-sheet{fill:#172b42;stroke:#466689}
.home-card .preview-icon-bg{fill:#355a80}
.home-card .preview-symbol{fill:none;stroke:#c1dcf7;stroke-width:2}
.home-card .preview-title{fill:#deebfb;font-size:12px}
.home-card .preview-detail{fill:#a8bfd8;font-size:10px}
.home-card .preview-lines{fill:none;stroke:#708fb1;stroke-width:3;stroke-linecap:round}
.home-card .preview-arrow{fill:none;stroke:#82aad5}
.home-card .preview-code{fill:#192f47;stroke:#81a4ca}
.home-card .preview-code-mark{fill:none;stroke:#c7dbef;stroke-width:3}
.home-card .preview-code-pixels{fill:#c7dbef}
.home-card .radar{background:#10272e}
.home-card .preview-map-grid{fill:none;stroke:#28474f;stroke-width:.8}
.home-card .preview-map-roads{fill:none;stroke:#40636c;stroke-width:7;opacity:.45}
.home-card .preview-track{fill:none;stroke:#8dc8c3;stroke-width:2;stroke-dasharray:4 4}
.home-card .preview-target-ring{fill:#73beb622;stroke:#73beb677}
.home-card .preview-target{fill:#b5e9e1}
.home-card .home-preview-swatches{display:flex;gap:7px;padding:12px 12px 0;flex:1;min-height:0}
.home-card .home-preview-swatch{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;text-align:center;font-size:11px;line-height:17px}
.home-card .wall{display:block;height:47px;position:relative;flex-shrink:0;border:1px solid #53667c;border-radius:5px}
.home-card .wall-one{background:linear-gradient(135deg,#425264,#152030)}
.home-card .wall-two{background:linear-gradient(135deg,#3a6c92,#172e4d);border:2px solid #95bde7}
.home-card .wall-three{background:linear-gradient(135deg,#e2e9ef,#849caf)}
.home-card .home-preview-check{position:absolute;right:4px;bottom:2px;font-size:11px;color:#e3f3ff}
.home-card-open{display:flex;align-items:center;justify-content:space-between;width:100%;border-top:1px solid #b1cbe429;padding-top:18px;margin-top:23px;color:var(--work-text);font-size:14px}
.theme-blue .home-top{background:#0d274775}.theme-blue .home-card{background:linear-gradient(145deg,#4a78a84d,#173c6673),#081a30a0;border-color:#b0d6ff36}
.theme-white .home-top{background:#eff6ffd1;border-color:#56718c29}
.theme-white .home-card{background:linear-gradient(145deg,#ffffff70,#e1edf96e),#eff6ffd0;border-color:#ffffffb0;box-shadow:0 1px 0 #fff9 inset,0 14px 35px #263e5b12}
.theme-white .home-card:hover{background:linear-gradient(145deg,#ffffff90,#e1edf98e),#eff6ffd9;border-color:#8eb4dc80}
.theme-white .home-card .mini{background:#e3edf6;border-color:#9ab0c7;color:#34516c}
.theme-white .home-card .home-preview-caption{color:#34516c}
.theme-white .home-card .preview-sheet{fill:#d3e3f2;stroke:#7393b3}
.theme-white .home-card .preview-title{fill:#203f5d}
.theme-white .home-card .preview-detail{fill:#34516c}
.theme-white .home-card .radar{background:#dfefee}
.theme-white .home-card .preview-map-grid{stroke:#9bbcbf}
.theme-white .home-card .preview-map-roads{stroke:#8aafb4}
.theme-white .home-card .preview-track{stroke:#346f72}
.theme-white .home-card .preview-target-ring{fill:#346f7214;stroke:#346f7277}
.theme-white .home-card .preview-target{fill:#285f62}
.theme-white .home-card-open{border-color:#6c8da834}
.theme-white .home-launcher.homescreen{background:linear-gradient(130deg,#f1f7ffd9,#d9e7f5bf)!important;backdrop-filter:blur(6px)}
body[data-custom-wallpaper="true"]:not(.theme-white) .home-launcher.homescreen{background:#050f1aad!important}
body[data-custom-wallpaper="true"]:not(.theme-white) .home-heading p{color:#b6c8dc}
.settings-layout .wall-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.home-launcher.homescreen{padding:35px 30px 55px}.home-cards{gap:15px}.home-card{padding:21px}.home-card-desc{font-size:14px}}
@media(max-width:760px){.home-top{padding:0 20px}.home-launcher.homescreen{align-items:flex-start;padding:34px 22px 40px}.home-space{margin:0}.home-heading{margin-bottom:24px}.home-heading h1{font-size:25px}.home-cards{grid-template-columns:1fr;gap:15px}.home-card{display:grid;grid-template-columns:65px minmax(0,1fr) 19px;gap:4px 17px;padding:19px;min-height:134px}.home-app-icon{width:65px;height:65px;grid-row:1/3}.home-card-title{grid-column:2;grid-row:1;margin:0;align-self:end;font-size:17px}.home-card-desc{grid-column:2;grid-row:2;margin:0;min-height:0;align-self:start;font-size:13px}.home-card-preview{display:none}.home-card-open{grid-column:3;grid-row:1/3;display:block;overflow:hidden;width:19px;height:22px;font-size:0;padding:0;margin:0;border:0}.home-card-open svg{display:block;position:absolute}.settings-layout .wall-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.home-card{transition:none}.home-card:hover{transform:none}}
@media(max-width:760px){.workspace-home-link{min-width:24px;padding:4px}.workspace-home-link>span,.workspace-crumb-separator{display:none}}