MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
初始化技术文档中心框架 |
完善手机端搜索、表格与代码块响应式布局 |
||
| Line 65: | Line 65: | ||
.techdocs-download-card__body span,.techdocs-download-card__body small { color:var(--techdocs-muted); } | .techdocs-download-card__body span,.techdocs-download-card__body small { color:var(--techdocs-muted); } | ||
.techdocs-download-card__action a { display:inline-flex; padding:.55rem .85rem; border-radius:8px; color:#fff!important; background:var(--techdocs-blue); font-weight:750; text-decoration:none; } | .techdocs-download-card__action a { display:inline-flex; padding:.55rem .85rem; border-radius:8px; color:#fff!important; background:var(--techdocs-blue); font-weight:750; text-decoration:none; } | ||
.techdocs-anchor-bar,.techdocs-spec-table,.mw-highlight,pre { max-width:100%; box-sizing:border-box; } | |||
.mw-highlight,pre { overflow-x:auto; } | |||
.techdocs-download-card__body,.techdocs-feature-panel,.techdocs-category-card { min-width:0; } | |||
@media (max-width: 900px) { | @media (max-width: 900px) { | ||
| Line 71: | Line 74: | ||
} | } | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.techdocs-hero { padding:1.5rem; border-radius:16px; } | |||
.techdocs-hero .mw-inputbox-form { display:grid; gap:.55rem; } | |||
.techdocs-hero .mw-inputbox-input,.techdocs-hero .mw-ui-button { width:100%; min-width:0; margin:0; box-sizing:border-box; } | |||
.techdocs-category-grid { grid-template-columns:1fr; } | .techdocs-category-grid { grid-template-columns:1fr; } | ||
.techdocs-section-heading { display:block; } | .techdocs-section-heading { display:block; } | ||
.techdocs-section-note { display:block; margin-top:.35rem; } | .techdocs-section-note { display:block; margin-top:.35rem; } | ||
.techdocs-product-card__header { align-items:flex-start; flex-direction:column; } | .techdocs-product-card__header { align-items:flex-start; flex-direction:column; } | ||
.techdocs-spec-table { display:block; overflow-x:auto; } | |||
.techdocs-anchor-bar { overflow-x:auto; white-space:nowrap; } | |||
.techdocs-download-card { grid-template-columns:50px 1fr; } | .techdocs-download-card { grid-template-columns:50px 1fr; } | ||
.techdocs-download-card__action { grid-column:1/-1; } | .techdocs-download-card__action { grid-column:1/-1; } | ||
.techdocs-download-card__action a { justify-content:center; width:100%; box-sizing:border-box; } | .techdocs-download-card__action a { justify-content:center; width:100%; box-sizing:border-box; } | ||
} | } | ||
Revision as of 15:30, 19 July 2026
:root {
--techdocs-blue: #1464c0;
--techdocs-blue-dark: #0b4f9c;
--techdocs-ink: #172b3f;
--techdocs-muted: #5e7184;
--techdocs-border: #d9e4ee;
--techdocs-surface: #f4f8fc;
}
.mw-body-content { color: var(--techdocs-ink); }
.mw-body-content a { text-underline-offset: 2px; }
.techdocs-hero {
padding: clamp(2rem, 6vw, 4.75rem);
border: 1px solid #cfe0f1;
border-radius: 22px;
background:
radial-gradient(circle at 88% 18%, rgba(20,100,192,.18), transparent 28%),
linear-gradient(135deg, #f8fbff 0%, #eaf3fc 100%);
box-shadow: 0 20px 60px rgba(30, 80, 130, .10);
margin-bottom: 2.4rem;
}
.techdocs-hero__eyebrow,.techdocs-kicker {
display: block; color: var(--techdocs-blue); font-size: .75rem;
font-weight: 750; letter-spacing: .14em; margin-bottom: .5rem;
}
.techdocs-hero__title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.12; }
.techdocs-hero__summary { max-width: 760px; color: var(--techdocs-muted); font-size: 1.05rem; margin: 1rem 0 1.6rem; }
.techdocs-hero .mw-inputbox-input { min-width: min(100%, 420px); border-radius: 10px; border: 1px solid #b9cde0; padding: .7rem .9rem; }
.techdocs-hero .mw-ui-button { border-radius: 10px; }
.techdocs-section-heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin:2rem 0 1rem; }
.techdocs-section-heading h2 { margin:0; border:0; font-size:1.75rem; }
.techdocs-section-note { color:var(--techdocs-muted); font-size:.9rem; }
.techdocs-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.techdocs-category-card {
position:relative; min-height:190px; padding:1.35rem; border:1px solid var(--techdocs-border);
border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(36,71,105,.06);
transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.techdocs-category-card:hover { transform:translateY(-3px); border-color:#8bb7df; box-shadow:0 16px 34px rgba(36,71,105,.12); }
.techdocs-category-card__icon { display:inline-flex; padding:.35rem .55rem; border-radius:7px; background:#e8f2fc; color:var(--techdocs-blue); font-size:.72rem; font-weight:800; letter-spacing:.08em; }
.techdocs-category-card h3 { margin:.9rem 0 .55rem; font-size:1.2rem; }
.techdocs-category-card p { color:var(--techdocs-muted); margin:0 0 1rem; }
.techdocs-category-card__link { color:var(--techdocs-blue); font-weight:700; font-size:.88rem; }
.techdocs-feature-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:1rem; margin:2rem 0; }
.techdocs-feature-panel { padding:1.7rem; border-radius:18px; color:#fff; background:linear-gradient(135deg,var(--techdocs-blue-dark),#2580d8); }
.techdocs-feature-panel--muted { color:var(--techdocs-ink); background:var(--techdocs-surface); border:1px solid var(--techdocs-border); }
.techdocs-feature-panel h2 { margin:.25rem 0 .65rem; border:0; }
.techdocs-feature-panel:not(.techdocs-feature-panel--muted) a { color:#fff; }
.techdocs-actions { margin-top:1rem; font-weight:700; }
.techdocs-notice { padding:1rem 1.2rem; border-left:4px solid var(--techdocs-blue); background:#eef6fd; border-radius:8px; color:#38546e; }
.techdocs-product-card { border:1px solid var(--techdocs-border); border-radius:16px; overflow:hidden; margin:1rem 0 1.5rem; box-shadow:0 10px 28px rgba(36,71,105,.08); }
.techdocs-product-card__header { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding:1.2rem 1.4rem; background:linear-gradient(120deg,#f7fbff,#eaf3fc); }
.techdocs-product-card__model { font-size:1.8rem; font-weight:800; color:var(--techdocs-blue-dark); }
.techdocs-spec-table { width:100%; margin:0!important; border:0!important; }
.techdocs-spec-table th { width:16%; color:#435b72; background:#f7f9fb; }
.techdocs-spec-table th,.techdocs-spec-table td { padding:.75rem!important; border-color:#e1e8ef!important; }
.techdocs-status-badge { display:inline-flex; padding:.3rem .65rem; border-radius:999px; font-size:.8rem; font-weight:750; }
.techdocs-status-badge--published { color:#146c43; background:#dff5e9; }
.techdocs-status-badge--draft { color:#8a5b00; background:#fff0c7; }
.techdocs-status-badge--archived { color:#586575; background:#e8edf2; }
.techdocs-anchor-bar { position:sticky; top:1rem; z-index:2; padding:.75rem 1rem; margin:1rem 0 1.5rem; border:1px solid var(--techdocs-border); border-radius:10px; background:rgba(255,255,255,.94); backdrop-filter:blur(8px); }
.techdocs-download-card { display:grid; grid-template-columns:64px 1fr auto; gap:1rem; align-items:center; padding:1rem; margin:.75rem 0; border:1px solid var(--techdocs-border); border-radius:13px; background:#fff; }
.techdocs-download-card__type { display:grid; place-items:center; min-height:48px; border-radius:9px; color:#fff; background:var(--techdocs-blue); font-size:.72rem; font-weight:800; }
.techdocs-download-card__body { display:flex; flex-direction:column; gap:.2rem; }
.techdocs-download-card__body span,.techdocs-download-card__body small { color:var(--techdocs-muted); }
.techdocs-download-card__action a { display:inline-flex; padding:.55rem .85rem; border-radius:8px; color:#fff!important; background:var(--techdocs-blue); font-weight:750; text-decoration:none; }
.techdocs-anchor-bar,.techdocs-spec-table,.mw-highlight,pre { max-width:100%; box-sizing:border-box; }
.mw-highlight,pre { overflow-x:auto; }
.techdocs-download-card__body,.techdocs-feature-panel,.techdocs-category-card { min-width:0; }
@media (max-width: 900px) {
.techdocs-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.techdocs-feature-grid { grid-template-columns:1fr; }
}
@media (max-width: 600px) {
.techdocs-hero { padding:1.5rem; border-radius:16px; }
.techdocs-hero .mw-inputbox-form { display:grid; gap:.55rem; }
.techdocs-hero .mw-inputbox-input,.techdocs-hero .mw-ui-button { width:100%; min-width:0; margin:0; box-sizing:border-box; }
.techdocs-category-grid { grid-template-columns:1fr; }
.techdocs-section-heading { display:block; }
.techdocs-section-note { display:block; margin-top:.35rem; }
.techdocs-product-card__header { align-items:flex-start; flex-direction:column; }
.techdocs-spec-table { display:block; overflow-x:auto; }
.techdocs-anchor-bar { overflow-x:auto; white-space:nowrap; }
.techdocs-download-card { grid-template-columns:50px 1fr; }
.techdocs-download-card__action { grid-column:1/-1; }
.techdocs-download-card__action a { justify-content:center; width:100%; box-sizing:border-box; }
}