Integrate Antirion admin with FastAPI and htmx
Add the shared document API, constructor and expert editors, isolated preview, and fragment catalog metadata with typed block IDs. Include design references, specification 001, QA scripts, project guidance, and cached Docker dependency installation. Leave example sites for a separate commit.
This commit is contained in:
@@ -0,0 +1,143 @@
|
||||
/* Site Engine / 03 · Antirion-inspired visual treatment.
|
||||
Independent original CSS. Design cues: antirion.ai official console screenshots
|
||||
(flat surfaces, dense tables, teal functional accent, hairline separators).
|
||||
Retains the exact Stage 1 IA and client-side behaviors. */
|
||||
body.theme-antirion[data-theme="dark"] {
|
||||
color-scheme:dark;
|
||||
--bg:#111415; --sidebar:#151819; --panel:#141718; --panel2:#191d1e;
|
||||
--raised:#202526; --hover:#1c2525; --line:#2a3031; --line-soft:#252b2c;
|
||||
--text:#e8ebeb; --text-2:#a9b0b1; --muted:#778182;
|
||||
--accent:#00c5c1; --accent-ink:#021a1a; --accent-bg:#103536;
|
||||
--tag:#222829; --good:#21c6b8; --warn:#e4b35c; --bad:#ee786f;
|
||||
--blue:#89b7c6; --shadow:rgba(0,0,0,.44); --selected:#113d3d;
|
||||
--input:#101314; --header:#131617; --site-surface:#f4f1e9; --site-ink:#20251f;
|
||||
}
|
||||
body.theme-antirion[data-theme="light"] {
|
||||
color-scheme:light;
|
||||
--bg:#f5f7f6; --sidebar:#eef2f0; --panel:#fff; --panel2:#f7f9f8;
|
||||
--raised:#e8eeee; --hover:#e6f0ef; --line:#dbe2e1; --line-soft:#e5eae8;
|
||||
--text:#1b2b2d; --text-2:#526467; --muted:#748385;
|
||||
--accent:#008f8b; --accent-ink:#fff; --accent-bg:#e2f5f2;
|
||||
--tag:#edf2f0; --good:#008b80; --warn:#a87920; --bad:#b34a4b;
|
||||
--blue:#477e90; --shadow:rgba(6,30,32,.12); --selected:#e3f3f0;
|
||||
--input:#fff; --header:#f9fbfa; --site-surface:#f4f1e9; --site-ink:#20251f;
|
||||
}
|
||||
body.theme-antirion {font-size:12px; line-height:1.42;letter-spacing:.003em}
|
||||
body.theme-antirion .app{grid-template-columns:207px minmax(0,1fr)}
|
||||
body.theme-antirion .app.collapsed{grid-template-columns:56px minmax(0,1fr)}
|
||||
body.theme-antirion .sidebar{background:var(--sidebar)}
|
||||
body.theme-antirion .brand-area{height:57px;padding:11px 13px 10px;border-bottom:1px solid var(--line)}
|
||||
body.theme-antirion .brand-mark{height:26px;width:26px;border-radius:1px;font-size:13px;letter-spacing:-.12em}
|
||||
body.theme-antirion .brand-name{font-size:12px;letter-spacing:-.025em}
|
||||
body.theme-antirion .brand-sub{font-size:9px;letter-spacing:.075em}
|
||||
body.theme-antirion .sidebar-inner{padding:9px 8px 14px}
|
||||
body.theme-antirion .nav-heading{font-size:9px;letter-spacing:.075em;padding:13px 9px 6px;font-weight:650;color:var(--muted)}
|
||||
body.theme-antirion .nav-group+.nav-group{margin-top:16px}
|
||||
body.theme-antirion .nav-button{min-height:31px;padding:6px 9px;gap:9px;border-radius:2px;font-size:11.5px;margin:0}
|
||||
body.theme-antirion .nav-button .ico{width:14px;height:14px}
|
||||
body.theme-antirion .nav-button.active{background:var(--selected);color:var(--text);font-weight:640}
|
||||
body.theme-antirion .nav-button.active:before{width:2px;height:100%;left:-8px;top:0;border-radius:0}
|
||||
body.theme-antirion .nav-count{border:0;background:transparent;font-size:10px}
|
||||
body.theme-antirion .sidebar-bottom{padding:9px 9px 10px}
|
||||
body.theme-antirion .site-chip{padding:7px 8px;border-color:var(--line-soft);background:transparent;border-radius:2px}
|
||||
body.theme-antirion .site-chip .site-avatar{border-radius:2px;width:21px;height:21px}
|
||||
body.theme-antirion .site-chip strong{font-size:10px}
|
||||
body.theme-antirion .site-chip small{font-size:10px}
|
||||
body.theme-antirion .topbar{height:45px;gap:11px;padding:0 19px}
|
||||
body.theme-antirion .top-breadcrumb{font-size:11px;gap:7px}
|
||||
body.theme-antirion .cmd-search{width:245px;height:27px;border-radius:2px;background:var(--input);font-size:11px}
|
||||
body.theme-antirion .cmd-search .key{border-color:var(--line-soft);border-radius:2px}
|
||||
body.theme-antirion .tiny-live{font-size:10px}
|
||||
body.theme-antirion .tiny-live:before{background:var(--accent);box-shadow:0 0 0 2px var(--accent-bg)}
|
||||
body.theme-antirion .avatar-button{width:27px;height:27px;border-radius:50%;background:#48402f;color:#e9ca83;font-size:10px}
|
||||
body.theme-antirion .icon-button{height:28px;min-width:28px;border-radius:2px}
|
||||
body.theme-antirion .page-wrap{max-width:none;padding:25px 25px 35px}
|
||||
body.theme-antirion .section-head{margin-bottom:19px;gap:10px}
|
||||
body.theme-antirion .eyebrow{color:var(--muted);letter-spacing:.1em;font-weight:600;margin-bottom:6px;font-size:9.5px}
|
||||
body.theme-antirion .page-title{font-size:23px;letter-spacing:-.043em;font-weight:640}
|
||||
body.theme-antirion .page-subtitle{margin-top:6px;font-size:11px}
|
||||
body.theme-antirion .head-actions{gap:6px}
|
||||
body.theme-antirion .btn{min-height:28px;padding:5px 10px;border-radius:2px;font-weight:550;font-size:11px;background:transparent}
|
||||
body.theme-antirion .btn-primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:670}
|
||||
body.theme-antirion .btn-primary:hover{background:var(--accent);filter:brightness(1.08)}
|
||||
body.theme-antirion .btn-sm{min-height:26px;padding:4px 8px}
|
||||
body.theme-antirion .tag{border-radius:2px;font-size:9.5px;padding:2px 6px;background:transparent;border-color:var(--line-soft)}
|
||||
body.theme-antirion .tag.green{background:var(--accent-bg);color:var(--good);border-color:transparent}
|
||||
body.theme-antirion .tag .dot{width:5px;height:5px}
|
||||
body.theme-antirion .panel{border-radius:0;background:transparent;border-color:var(--line)}
|
||||
body.theme-antirion .panel-head{padding:11px 13px;border-color:var(--line-soft)}
|
||||
body.theme-antirion .panel-title{font-size:11.5px;font-weight:650}
|
||||
body.theme-antirion .panel-sub{font-size:10px}
|
||||
body.theme-antirion .panel-body{padding:11px 13px}
|
||||
body.theme-antirion .strip{border-radius:0;border-left:0;border-right:0;background:transparent;padding:12px 4px 13px;gap:12px;margin-bottom:16px}
|
||||
body.theme-antirion .strip:before{display:none}
|
||||
body.theme-antirion .strip-symbol{height:28px;width:28px;border-radius:2px}
|
||||
body.theme-antirion .strip h2{font-weight:640;font-size:13px}
|
||||
body.theme-antirion .strip p{font-size:10.5px}
|
||||
body.theme-antirion .strip-details{gap:19px}
|
||||
body.theme-antirion .strip-details .value{font-size:11px}
|
||||
body.theme-antirion .metric-row{gap:0;border:1px solid var(--line);margin-bottom:15px}
|
||||
body.theme-antirion .metric{border:0;border-right:1px solid var(--line);border-radius:0;min-height:98px;padding:13px 15px;background:transparent}
|
||||
body.theme-antirion .metric:last-child{border-right:0}
|
||||
body.theme-antirion .metric-label{font-size:10px}
|
||||
body.theme-antirion .metric-value{font-size:25px;font-weight:650;letter-spacing:-.06em;margin-top:9px}
|
||||
body.theme-antirion .metric-foot{font-size:9.5px;margin-top:5px}
|
||||
body.theme-antirion .metric:nth-child(1) .metric-value{color:var(--accent)}
|
||||
body.theme-antirion .layout-2,.theme-antirion .stack{gap:14px}
|
||||
body.theme-antirion .list-row{min-height:49px}
|
||||
body.theme-antirion .list-row .row-symbol{border-radius:1px}
|
||||
body.theme-antirion .list-row-main strong{font-weight:580}
|
||||
body.theme-antirion .event+.event{margin-top:0}
|
||||
body.theme-antirion .note{border-radius:0}
|
||||
body.theme-antirion .toolbar{gap:7px;margin-bottom:11px}
|
||||
body.theme-antirion .search-field{height:29px;border-radius:2px;background:var(--input);font-size:11px}
|
||||
body.theme-antirion .search-field input{font-size:11px}
|
||||
body.theme-antirion .select{height:29px;border-radius:2px;font-size:10.5px}
|
||||
body.theme-antirion .tabbar{border-bottom:1px solid var(--line);gap:12px;margin-bottom:14px}
|
||||
body.theme-antirion .tab{font-size:10.5px;padding:9px 0}
|
||||
body.theme-antirion .tab.active{color:var(--accent)}
|
||||
body.theme-antirion .pages-layout{gap:13px}
|
||||
body.theme-antirion .table-panel{border-radius:0}
|
||||
body.theme-antirion .data-table th{background:var(--panel);font-size:9.5px;color:var(--muted);text-transform:none;font-weight:600;padding:11px 12px}
|
||||
body.theme-antirion .data-table td{padding:10px 12px;border-color:var(--line-soft);font-size:10.5px}
|
||||
body.theme-antirion .data-table tbody tr.selected{background:var(--selected)}
|
||||
body.theme-antirion .data-table tbody tr.selected td:first-child{box-shadow:inset 2px 0 var(--accent)}
|
||||
body.theme-antirion .page-cell{gap:8px}
|
||||
body.theme-antirion .page-cell strong{font-weight:600;font-size:11px}
|
||||
body.theme-antirion .page-cell small{font-size:9.5px}
|
||||
body.theme-antirion .file-icon{height:25px;width:25px;border-radius:2px}
|
||||
body.theme-antirion .table-foot{min-height:33px;padding:8px 12px;font-size:10px}
|
||||
body.theme-antirion .inspector{background:transparent;border-radius:0}
|
||||
body.theme-antirion .inspector-top{padding:13px}
|
||||
body.theme-antirion .inspector-top h3{font-size:12px;font-weight:670}
|
||||
body.theme-antirion .inspector-sec{padding:12px 13px}
|
||||
body.theme-antirion .inspector-header{font-size:9.5px}
|
||||
body.theme-antirion .preview-shell{border-radius:0}
|
||||
body.theme-antirion .preview-actions button{border-radius:2px;font-size:10px}
|
||||
body.theme-antirion .preview-actions button.active{color:var(--accent);border-color:var(--accent)}
|
||||
body.theme-antirion .kv{padding:6px 0}
|
||||
body.theme-antirion .inspector-actions{padding:12px}
|
||||
body.theme-antirion .collection-grid{gap:9px}
|
||||
body.theme-antirion .collection-card{border-radius:0;background:transparent}
|
||||
body.theme-antirion .collection-card.selected{background:var(--selected)}
|
||||
body.theme-antirion .pipeline-step,.theme-antirion .feature-main{border-radius:0}
|
||||
body.theme-antirion .pipeline-step .step-num{border-radius:2px}
|
||||
body.theme-antirion .release-row,.theme-antirion .check-row{border-color:var(--line-soft)}
|
||||
body.theme-antirion .footer-line{color:var(--muted);font-size:9.5px;border-color:var(--line)}
|
||||
body.theme-antirion .modal{border-radius:3px}
|
||||
body.theme-antirion .text-input{border-radius:2px}
|
||||
body.theme-antirion .toast{border-radius:2px}
|
||||
body.theme-antirion .command-dialog{border-radius:3px}
|
||||
/* Thin accent traces like the reference charts; avoid decorative gradients. */
|
||||
body.theme-antirion .metric:after{content:"";position:absolute;left:14px;right:14px;bottom:0;height:1px;background:linear-gradient(90deg,transparent 0%,var(--accent) 62%,transparent 100%);opacity:.13}
|
||||
body.theme-antirion .metric:first-child:after{opacity:.9}
|
||||
/* Palette chip in header identifies the additional design concept. */
|
||||
body.theme-antirion .brand-mark{background:var(--accent)}
|
||||
body.theme-antirion .brand-copy .brand-sub{color:var(--muted)}
|
||||
@media(max-width:1150px){body.theme-antirion .pages-layout{grid-template-columns:minmax(0,1fr)}body.theme-antirion .metric-row{grid-template-columns:repeat(2,minmax(0,1fr))}body.theme-antirion .metric:nth-child(2){border-right:0}body.theme-antirion .metric:nth-child(-n+2){border-bottom:1px solid var(--line)}}
|
||||
@media(max-width:960px){body.theme-antirion .app,body.theme-antirion .app.collapsed{grid-template-columns:minmax(0,1fr)}body.theme-antirion .sidebar{width:223px}body.theme-antirion .topbar{padding:0 13px}}
|
||||
@media(max-width:740px){body.theme-antirion .page-wrap{padding:17px 14px 26px}body.theme-antirion .topbar{height:48px}body.theme-antirion .section-head{margin-bottom:13px}body.theme-antirion .metric-row{margin-bottom:12px}body.theme-antirion .metric{min-height:80px;padding:11px}body.theme-antirion .metric-value{font-size:22px}body.theme-antirion .strip{padding:12px 4px}body.theme-antirion .brand-area{height:56px}}
|
||||
@media(max-width:480px){body.theme-antirion .topbar{padding:0 11px}body.theme-antirion .metric-row{gap:0}body.theme-antirion .page-title{font-size:21px}body.theme-antirion .data-table td{padding:9px 8px}body.theme-antirion .strip-details{padding-left:0}}
|
||||
/* Neutral illustration inside the sample site preview, not the admin accent. */
|
||||
body.theme-antirion .mini-site .mini-orb{background:radial-gradient(circle at 42% 35%,#c6cdd0 0%,#dfdcd3 42%,#e8e2d6 63%,transparent 71%)}
|
||||
body.theme-antirion .mini-site .mini-nav span:last-child{color:#797c7a}
|
||||
Reference in New Issue
Block a user