mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-07-13 08:21:28 +08:00
286 lines
8.5 KiB
CSS
286 lines
8.5 KiB
CSS
html,body,#root { height: 100%; }
|
|
body { font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif; background: var(--ant-color-bg-layout, #f9f9f9); }
|
|
|
|
::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb { background: var(--ant-color-fill-tertiary, #d9d9d9); border-radius: 4px; }
|
|
::-webkit-scrollbar-thumb:hover { background: var(--ant-color-fill-secondary, #bfbfbf); }
|
|
|
|
.fx-surface { background: var(--ant-color-bg-container, #fff); border:1px solid var(--ant-color-border, #eaeaea); border-radius:12px; }
|
|
.fx-card { background: var(--ant-color-bg-container, #fff); border:1px solid var(--ant-color-border, #eaeaea); border-radius:14px; box-shadow:0 1px 2px rgba(0,0,0,.04),0 4px 10px -2px rgba(0,0,0,.03); }
|
|
.fx-fade-text { color: var(--ant-color-text-secondary, #555); }
|
|
|
|
.fx-center-card {
|
|
background: var(--ant-color-bg-container, #fff);
|
|
border: 1px solid var(--ant-color-border, #eaeaea);
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 24px -18px rgba(0,0,0,.22);
|
|
}
|
|
.fx-center-card-hero {
|
|
position: relative;
|
|
height: 112px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, var(--ant-color-fill-secondary, #f3f3f3), var(--ant-color-fill-tertiary, #f5f5f5));
|
|
}
|
|
[data-theme="dark"] .fx-center-card-hero {
|
|
background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
|
|
}
|
|
.fx-center-card-iconbox {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid rgba(255,255,255,0.65);
|
|
background: rgba(255,255,255,0.72);
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.08);
|
|
}
|
|
[data-theme="dark"] .fx-center-card-iconbox {
|
|
border-color: rgba(255,255,255,0.14);
|
|
background: rgba(0,0,0,0.28);
|
|
}
|
|
.fx-center-card-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
object-fit: contain;
|
|
}
|
|
.fx-center-card-pills {
|
|
position: absolute;
|
|
right: 12px;
|
|
bottom: 12px;
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
}
|
|
.fx-center-pill {
|
|
max-width: 120px;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
border: 1px solid rgba(255,255,255,0.55);
|
|
background: rgba(255,255,255,0.72);
|
|
color: rgba(0,0,0,0.72);
|
|
backdrop-filter: blur(8px);
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
[data-theme="dark"] .fx-center-pill {
|
|
border-color: rgba(255,255,255,0.14);
|
|
background: rgba(0,0,0,0.28);
|
|
color: rgba(255,255,255,0.85);
|
|
}
|
|
.fx-center-pill-success {
|
|
border-color: rgba(82,196,26,0.35);
|
|
background: rgba(82,196,26,0.14);
|
|
color: var(--ant-color-success, #52c41a);
|
|
}
|
|
.fx-center-card-body {
|
|
padding: 14px 14px 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
.fx-center-card-titleRow {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
.fx-center-card-title {
|
|
min-width: 0;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
line-height: 1.2;
|
|
color: var(--ant-color-text, #111);
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.fx-center-card-version {
|
|
flex: none;
|
|
font-size: 12px;
|
|
color: var(--ant-color-text-tertiary, #666);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.fx-center-card-metaRow {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
font-size: 12px;
|
|
color: var(--ant-color-text-tertiary, #666);
|
|
}
|
|
.fx-center-card-metaLeft,
|
|
.fx-center-card-metaRight {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.fx-center-card-desc {
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
color: var(--ant-color-text-secondary, #555);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
min-height: 42px;
|
|
}
|
|
.fx-center-card-footer {
|
|
padding: 10px 14px;
|
|
border-top: 1px solid var(--ant-color-border-secondary, #f0f0f0);
|
|
background: var(--ant-color-fill-tertiary, #fafafa);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
[data-theme="dark"] .fx-center-card-footer {
|
|
background: rgba(255,255,255,0.02);
|
|
}
|
|
.fx-center-card-footerLeft,
|
|
.fx-center-card-footerRight {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
.fx-center-card-actions,
|
|
.fx-center-card-links {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.fx-center-card-iconLink {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 8px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
color: var(--ant-color-text-tertiary, #666);
|
|
transition: background .18s ease, color .18s ease;
|
|
}
|
|
.fx-center-card-iconLink:hover {
|
|
background: var(--ant-color-fill-secondary, #f2f2f2);
|
|
color: var(--ant-color-text, #111);
|
|
}
|
|
[data-theme="dark"] .fx-center-card-iconLink:hover {
|
|
background: rgba(255,255,255,0.06);
|
|
}
|
|
|
|
.fx-quiet-btn.ant-btn-text:not(:hover) { color: var(--ant-color-text-tertiary, #666); }
|
|
|
|
/* 使用 antd 默认布局背景 */
|
|
.ant-layout { background: transparent; }
|
|
|
|
/* Menu compact spacing adjustments */
|
|
.ant-menu-inline .ant-menu-item { margin-block:2px; }
|
|
|
|
/* Sidebar high-contrast selection */
|
|
.sider-menu .ant-menu-item-selected {
|
|
background: var(--ant-color-primary, #111) !important;
|
|
color:#fff !important;
|
|
}
|
|
.sider-menu .ant-menu-item-selected .ant-menu-item-icon,
|
|
.sider-menu .ant-menu-item-selected .anticon { color:#fff !important; }
|
|
.sider-menu .ant-menu-item:not(.ant-menu-item-selected):hover { background: var(--ant-color-fill-tertiary, #f2f2f2); }
|
|
|
|
.row-selected td { background: rgba(24,144,255,0.12) !important; }
|
|
.row-selected:hover td { background: rgba(24,144,255,0.2) !important; }
|
|
|
|
.fx-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:20px; align-content:start; }
|
|
.fx-grid-item { cursor:pointer; border-radius:14px; padding:12px 12px 10px; background: var(--ant-color-fill-tertiary, #f5f5f5); position:relative; display:flex; flex-direction:column; align-items:stretch; gap:6px; transition:.18s box-shadow,.18s background; }
|
|
.fx-grid-item.dir { background: var(--ant-color-fill-secondary, #f3f3f3); }
|
|
.fx-grid-item.selected { box-shadow:0 0 0 2px var(--ant-color-primary); background: var(--ant-color-primary-bg, #e6f4ff); }
|
|
.fx-grid-item:hover { background: var(--ant-color-fill, #ededed); box-shadow:0 1px 4px rgba(0,0,0,.06); }
|
|
.fx-grid-item .thumb { height:120px; border-radius:10px; background: var(--ant-color-bg-container, #fff); display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; box-shadow: inset 0 0 0 1px var(--ant-color-border-secondary, #eee); }
|
|
.fx-grid-item .thumb img { width:100%; height:100%; object-fit:cover; }
|
|
.fx-grid-item .thumb .badge { position:absolute; top:6px; left:6px; background: var(--ant-color-primary, #111); color:#fff; font-size:10px; padding:2px 4px; border-radius:6px; line-height:1; letter-spacing:.5px; }
|
|
.fx-grid-item .thumb .score-badge {
|
|
left:auto;
|
|
right:8px;
|
|
top:8px;
|
|
background: rgba(0,0,0,0.45);
|
|
border: 1px solid rgba(255,255,255,0.25);
|
|
color: rgba(255,255,255,0.92);
|
|
font-size: 11px;
|
|
padding: 2px 6px;
|
|
border-radius: 999px;
|
|
letter-spacing: 0;
|
|
font-variant-numeric: tabular-nums;
|
|
opacity: 0;
|
|
transform: translateY(-2px);
|
|
transition: opacity .18s ease, transform .18s ease;
|
|
pointer-events: none;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,.08);
|
|
backdrop-filter: blur(6px);
|
|
}
|
|
.fx-grid-item:hover .thumb .score-badge,
|
|
.fx-grid-item.selected .thumb .score-badge {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
.fx-grid-item .name { font-weight:600; font-size:13px; }
|
|
.ellipsis { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
|
|
|
|
.processors-tabs {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
padding: 5px;
|
|
}
|
|
.processors-tabs .ant-tabs-content-holder,
|
|
.processors-tabs .ant-tabs-content {
|
|
flex: 1;
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.processors-tabs .ant-tabs-tabpane {
|
|
flex: 1;
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: none;
|
|
flex-direction: column;
|
|
}
|
|
.processors-tabs .ant-tabs-tabpane-active {
|
|
display: flex;
|
|
}
|
|
|
|
.plugins-tabs {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
.plugins-tabs .ant-tabs-content-holder,
|
|
.plugins-tabs .ant-tabs-content {
|
|
flex: 1;
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.plugins-tabs .ant-tabs-tabpane {
|
|
flex: 1;
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: none;
|
|
flex-direction: column;
|
|
}
|
|
.plugins-tabs .ant-tabs-tabpane-active {
|
|
display: flex;
|
|
}
|