MediaWiki:Common.css: Difference between revisions
Appearance
Product-grade HF theme upgrade |
Product-grade HF theme upgrade |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 126: | Line 126: | ||
max-width: 1180px; | max-width: 1180px; | ||
margin: 0 auto !important; | margin: 0 auto !important; | ||
} | |||
.page-Main_Page .mw-page-container, | |||
.page-Main_Page .mw-content-container, | |||
.page-Main_Page .mw-body, | |||
.page-Main_Page .mw-body-content, | |||
.page-Main_Page .mw-parser-output, | |||
.page-Main_Page .hf-app-shell { | |||
min-width: 0 !important; | |||
width: auto !important; | |||
} | } | ||
| Line 256: | Line 266: | ||
.hf-product-hero h1 { | .hf-product-hero h1 { | ||
margin: 24px 0 14px; | margin: 24px 0 14px; | ||
font-size: clamp(54px, 8vw, 104px); | font-size: clamp(54px, 8vw, 104px) !important; | ||
line-height: .88; | line-height: .88 !important; | ||
font-weight: 950; | font-weight: 950 !important; | ||
text-shadow: 0 0 34px rgba(79,140,255,.16); | text-shadow: 0 0 34px rgba(79,140,255,.16); | ||
} | } | ||
| Line 565: | Line 575: | ||
.hf-is-hidden { | .hf-is-hidden { | ||
display: none !important; | display: none !important; | ||
} | |||
.hf-inline-file { | |||
display: inline-block; | |||
max-width: 100%; | |||
height: auto; | |||
vertical-align: middle; | |||
margin-right: 4px; | |||
} | } | ||
| Line 581: | Line 599: | ||
.hf-command { | .hf-command { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | |||
} | |||
@media (max-width: 700px) { | |||
html, | |||
body { | |||
overflow-x: hidden; | |||
} | |||
.vector-header-container { | |||
min-height: 56px; | |||
width: 100% !important; | |||
max-width: 100vw !important; | |||
box-sizing: border-box; | |||
overflow: hidden; | |||
} | |||
.page-Main_Page .vector-header-container { | |||
padding-inline: 12px !important; | |||
} | |||
.page-Main_Page .vector-header-container .vector-search-box, | |||
.page-Main_Page .vector-header-container .vector-user-links, | |||
.page-Main_Page #p-dock-bottom { | |||
display: none !important; | |||
} | |||
.page-Main_Page .mw-page-container { | |||
padding: 0 !important; | |||
} | |||
.page-Main_Page .mw-content-container { | |||
max-width: 100vw !important; | |||
padding: 0 !important; | |||
} | |||
.page-Main_Page .mw-body { | |||
max-width: none !important; | |||
margin: 0 !important; | |||
padding: 12px !important; | |||
border-left: 0 !important; | |||
border-right: 0 !important; | |||
border-radius: 0; | |||
} | |||
.hf-app-shell { | |||
gap: 14px; | |||
} | |||
.hf-product-hero { | |||
min-height: auto; | |||
padding: 14px; | |||
gap: 12px; | |||
border-radius: 12px; | |||
} | |||
.hf-overline { | |||
min-height: 24px; | |||
padding: 0 8px; | |||
font-size: 10px; | |||
} | |||
.hf-product-hero h1 { | |||
margin: 14px 0 10px; | |||
font-size: 34px !important; | |||
line-height: .94 !important; | |||
} | |||
.hf-product-hero p { | |||
font-size: 14px; | |||
line-height: 1.45; | |||
} | |||
.hf-command { | |||
margin-top: 16px; | |||
padding: 10px; | |||
border-radius: 10px; | |||
} | |||
.hf-action-row, | |||
.hf-review-meta { | |||
grid-template-columns: 1fr; | |||
} | |||
.hf-action-primary a, | |||
.hf-action-secondary a { | |||
width: 100%; | |||
justify-content: center; | |||
min-height: 38px; | |||
} | |||
.hf-ops-panel, | |||
.hf-review-card, | |||
.hf-hub-card, | |||
.hf-template-card { | |||
border-radius: 10px; | |||
} | |||
.hf-ops-panel { | |||
padding: 12px; | |||
} | |||
.hf-panel-head { | |||
margin-bottom: 12px; | |||
} | |||
.hf-ops-grid { | |||
grid-template-columns: 1fr 1fr; | |||
gap: 8px; | |||
} | |||
.hf-ops-grid div { | |||
padding: 10px; | |||
} | |||
.hf-signal { | |||
display: none; | |||
} | |||
.hf-stat-strip { | |||
grid-template-columns: 1fr 1fr; | |||
gap: 10px; | |||
margin: 12px 0 22px; | |||
} | |||
.hf-stat-strip div { | |||
padding: 12px; | |||
} | |||
.hf-stat-strip strong { | |||
font-size: 22px; | |||
} | |||
.hf-hub-grid { | |||
gap: 12px; | |||
} | |||
.hf-hub-card { | |||
min-height: 0; | |||
padding: 16px; | |||
} | |||
.hf-section-head { | |||
display: block; | |||
} | |||
.hf-section-head h2 { | |||
font-size: 26px; | |||
} | } | ||
} | } | ||
Latest revision as of 04:14, 8 May 2026
:root {
--hf-bg: #080b12;
--hf-bg-2: #0d1320;
--hf-panel: rgba(17, 24, 39, .84);
--hf-panel-solid: #111827;
--hf-line: rgba(148, 163, 184, .22);
--hf-line-bright: rgba(96, 165, 250, .42);
--hf-blue: #4f8cff;
--hf-cyan: #34d4ff;
--hf-gold: #f4c542;
--hf-red: #f05252;
--hf-text: #e7edf7;
--hf-muted: #9caec7;
--hf-ink: #050816;
}
html,
body {
background:
linear-gradient(180deg, rgba(8, 11, 18, .96), rgba(11, 17, 28, .98)),
radial-gradient(circle at 20% 0%, rgba(79, 140, 255, .18), transparent 32%),
#080b12 !important;
color: var(--hf-text);
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
z-index: -1;
background-image:
linear-gradient(rgba(79, 140, 255, .08) 1px, transparent 1px),
linear-gradient(90deg, rgba(79, 140, 255, .08) 1px, transparent 1px);
background-size: 54px 54px;
mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 78%);
}
body::after {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
z-index: -1;
background: linear-gradient(100deg, transparent 0%, rgba(52, 212, 255, .08) 45%, transparent 55%);
transform: translateX(-120%);
animation: hfScan 8s ease-in-out infinite;
}
@keyframes hfScan {
0%, 55% { transform: translateX(-120%); }
100% { transform: translateX(120%); }
}
.vector-header-container,
.vector-page-toolbar,
.vector-sticky-header,
.mw-header,
.mw-page-container,
.mw-body,
.vector-feature-page-tools-pinned-enabled .vector-page-tools,
.vector-feature-appearance-pinned-enabled .vector-appearance {
background: transparent !important;
}
.mw-page-container {
max-width: 1540px;
}
.mw-body {
border: 1px solid var(--hf-line) !important;
border-radius: 14px;
background: rgba(9, 13, 22, .66) !important;
box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
backdrop-filter: blur(18px);
padding: 28px !important;
}
.mw-logo-icon,
.mw-logo-wordmark img,
.mw-logo-tagline {
display: none !important;
}
.mw-logo-container::after {
content: "HF Tools Wiki";
color: var(--hf-text);
font-weight: 900;
letter-spacing: .02em;
}
.mw-logo-container::before {
content: "HF";
display: inline-grid;
place-items: center;
width: 38px;
height: 38px;
margin-right: 10px;
border-radius: 10px;
background: linear-gradient(135deg, #111827, #050816);
color: var(--hf-gold);
font-weight: 950;
border: 1px solid rgba(244, 197, 66, .42);
box-shadow: 0 0 28px rgba(244, 197, 66, .14);
}
.vector-main-menu-landmark,
.vector-page-tools-landmark,
.vector-column-start,
.vector-appearance-landmark {
color: var(--hf-muted);
}
.page-Main_Page .mw-first-heading,
.page-Main_Page .vector-page-toolbar,
.page-Main_Page .vector-body-before-content,
.page-Main_Page .vector-column-start,
.page-Main_Page .vector-column-end,
.page-Main_Page .vector-appearance-landmark,
.page-Main_Page .vector-page-titlebar {
display: none !important;
}
.page-Main_Page .mw-body {
max-width: 1180px;
margin: 0 auto !important;
}
.page-Main_Page .mw-page-container,
.page-Main_Page .mw-content-container,
.page-Main_Page .mw-body,
.page-Main_Page .mw-body-content,
.page-Main_Page .mw-parser-output,
.page-Main_Page .hf-app-shell {
min-width: 0 !important;
width: auto !important;
}
.page-Main_Page .mw-content-container {
margin-left: 0 !important;
margin-right: 0 !important;
}
.page-Main_Page .mw-body-content {
margin-top: 0 !important;
}
.page-Main_Page .mw-parser-output > p:empty {
display: none;
}
.vector-toc,
.vector-page-tools,
.vector-appearance {
background: rgba(8, 12, 20, .55) !important;
border-color: var(--hf-line) !important;
border-radius: 12px;
}
.vector-toc a,
.vector-menu-content a,
.mw-parser-output a,
a {
color: #79aaff;
}
.vector-page-titlebar,
.vector-page-toolbar-container,
.vector-body-before-content,
.mw-body h1.firstHeading {
border-color: var(--hf-line) !important;
}
.mw-page-title-main,
h1, h2, h3, h4,
.mw-heading h2 {
color: var(--hf-text) !important;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
letter-spacing: 0;
}
.mw-page-title-main {
font-weight: 850;
}
.vector-search-box-input,
.cdx-text-input__input {
background: rgba(255,255,255,.08) !important;
border-color: var(--hf-line) !important;
color: var(--hf-text) !important;
}
.cdx-button,
.searchButton,
.mw-ui-button {
border-radius: 9px !important;
}
.mw-footer {
color: var(--hf-muted);
}
.catlinks,
.toc,
.mw-parser-output .wikitable,
.hf-trustbox {
background: rgba(255,255,255,.05) !important;
border: 1px solid var(--hf-line) !important;
color: var(--hf-text);
border-radius: 12px;
}
.hf-app-shell {
color: var(--hf-text);
}
.hf-product-hero {
position: relative;
overflow: hidden;
display: grid;
grid-template-columns: minmax(0, 1fr) 390px;
gap: 28px;
align-items: stretch;
min-height: 430px;
padding: 38px;
border: 1px solid var(--hf-line-bright);
border-radius: 18px;
background:
linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(10, 15, 25, .92)),
linear-gradient(90deg, rgba(79, 140, 255, .18), transparent);
box-shadow: 0 28px 90px rgba(0,0,0,.35);
}
.hf-product-hero::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
background:
linear-gradient(90deg, rgba(255,255,255,.07), transparent 18%),
repeating-linear-gradient(90deg, transparent 0 72px, rgba(79,140,255,.09) 73px 74px);
opacity: .65;
}
.hf-hero-copy,
.hf-ops-panel {
position: relative;
z-index: 1;
}
.hf-overline {
display: inline-flex;
align-items: center;
min-height: 30px;
padding: 0 11px;
border: 1px solid rgba(244,197,66,.38);
border-radius: 999px;
color: var(--hf-gold);
background: rgba(244,197,66,.08);
font-weight: 800;
text-transform: uppercase;
font-size: 12px;
}
.hf-product-hero h1 {
margin: 24px 0 14px;
font-size: clamp(54px, 8vw, 104px) !important;
line-height: .88 !important;
font-weight: 950 !important;
text-shadow: 0 0 34px rgba(79,140,255,.16);
}
.hf-product-hero p {
max-width: 780px;
color: var(--hf-muted);
font-size: 20px;
line-height: 1.55;
}
.hf-command {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: 14px;
align-items: center;
max-width: 760px;
margin-top: 30px;
padding: 9px 12px;
border: 1px solid var(--hf-line);
border-radius: 14px;
background: rgba(255,255,255,.07);
}
.hf-command span {
color: var(--hf-cyan);
font-weight: 800;
}
.hf-command input {
min-height: 44px;
min-width: 0;
border: 0;
outline: 0;
background: transparent;
color: var(--hf-text);
font: inherit;
}
.hf-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 22px;
}
.hf-action-primary a,
.hf-action-secondary a,
.hf-review-link a,
.hf-section-link a {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0 16px;
border-radius: 10px;
font-weight: 850;
text-decoration: none !important;
}
.hf-action-primary a,
.hf-review-link a {
color: #fff !important;
background: linear-gradient(135deg, var(--hf-blue), #2563eb);
box-shadow: 0 14px 30px rgba(37,99,235,.28);
}
.hf-action-secondary a,
.hf-section-link a {
color: var(--hf-text) !important;
border: 1px solid var(--hf-line);
background: rgba(255,255,255,.06);
}
.hf-ops-panel,
.hf-review-card,
.hf-hub-card,
.hf-stat-strip div,
.hf-timeline div {
border: 1px solid var(--hf-line);
border-radius: 16px;
background: rgba(255,255,255,.06);
box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.hf-ops-panel {
padding: 22px;
align-self: stretch;
backdrop-filter: blur(16px);
}
.hf-panel-head {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 18px;
}
.hf-status-dot {
width: 11px;
height: 11px;
border-radius: 50%;
background: #22c55e;
box-shadow: 0 0 20px rgba(34,197,94,.8);
}
.hf-ops-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.hf-ops-grid div {
padding: 13px;
border-radius: 12px;
background: rgba(0,0,0,.24);
}
.hf-ops-grid span,
.hf-stat-strip span {
display: block;
color: var(--hf-muted);
font-size: 12px;
text-transform: uppercase;
font-weight: 800;
}
.hf-ops-grid strong {
display: block;
margin-top: 5px;
}
.hf-signal {
margin-top: 16px;
padding: 14px;
border-left: 3px solid var(--hf-gold);
background: rgba(244,197,66,.08);
color: #dbe7ff;
}
.hf-stat-strip {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 14px;
margin: 18px 0 34px;
}
.hf-stat-strip div {
padding: 18px;
}
.hf-stat-strip strong {
display: block;
color: var(--hf-text);
font-size: 30px;
font-weight: 950;
}
.hf-section,
.hf-two-col {
margin-top: 34px;
}
.hf-section-head {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
}
.hf-section-head span {
color: var(--hf-cyan);
font-size: 12px;
font-weight: 900;
text-transform: uppercase;
}
.hf-section-head h2 {
margin: 4px 0 0;
font-size: 30px;
font-weight: 950;
}
.hf-hub-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 15px;
}
.hf-hub-card {
position: relative;
overflow: hidden;
min-height: 185px;
padding: 20px;
color: var(--hf-text) !important;
text-decoration: none !important;
transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.hf-hub-card::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(79,140,255,.18), transparent 44%);
opacity: 0;
transition: opacity .22s ease;
}
.hf-hub-card:hover {
transform: translateY(-4px);
border-color: var(--hf-line-bright);
background: rgba(79,140,255,.1);
}
.hf-hub-card:hover::before {
opacity: 1;
}
.hf-hub-card span,
.hf-hub-card strong,
.hf-hub-card p {
position: relative;
}
.hf-hub-card span {
display: inline-flex;
padding: 4px 9px;
border-radius: 999px;
background: rgba(244,197,66,.1);
color: var(--hf-gold);
font-size: 12px;
font-weight: 850;
}
.hf-hub-card strong {
display: block;
margin: 16px 0 10px;
color: #dbe8ff;
font-size: 21px;
}
.hf-hub-card p {
color: var(--hf-muted);
line-height: 1.48;
}
.hf-two-col {
display: grid;
grid-template-columns: minmax(0, 1fr) 360px;
gap: 18px;
}
.hf-timeline {
display: grid;
gap: 12px;
}
.hf-timeline div {
display: grid;
gap: 5px;
padding: 17px;
color: var(--hf-text) !important;
}
.hf-timeline span,
.hf-review-card p {
color: var(--hf-muted);
}
.hf-review-card {
padding: 22px;
}
.hf-chip {
display: inline-flex;
padding: 5px 10px;
border-radius: 999px;
background: rgba(52,212,255,.1);
color: var(--hf-cyan);
font-size: 12px;
font-weight: 900;
text-transform: uppercase;
}
.hf-review-card h2 {
margin: 18px 0 10px;
}
.hf-trustbox {
padding: 14px;
border-left: 3px solid var(--hf-blue) !important;
}
.hf-reveal {
opacity: 1;
transform: translateY(0);
transition: opacity .55s ease, transform .55s ease;
}
.hf-reveal.is-visible {
opacity: 1;
transform: translateY(0);
}
.hf-is-hidden {
display: none !important;
}
.hf-inline-file {
display: inline-block;
max-width: 100%;
height: auto;
vertical-align: middle;
margin-right: 4px;
}
@media (max-width: 1000px) {
.hf-product-hero,
.hf-two-col,
.hf-stat-strip,
.hf-hub-grid {
grid-template-columns: 1fr;
}
.hf-product-hero {
padding: 24px;
}
.hf-command {
grid-template-columns: 1fr;
}
}
@media (max-width: 700px) {
html,
body {
overflow-x: hidden;
}
.vector-header-container {
min-height: 56px;
width: 100% !important;
max-width: 100vw !important;
box-sizing: border-box;
overflow: hidden;
}
.page-Main_Page .vector-header-container {
padding-inline: 12px !important;
}
.page-Main_Page .vector-header-container .vector-search-box,
.page-Main_Page .vector-header-container .vector-user-links,
.page-Main_Page #p-dock-bottom {
display: none !important;
}
.page-Main_Page .mw-page-container {
padding: 0 !important;
}
.page-Main_Page .mw-content-container {
max-width: 100vw !important;
padding: 0 !important;
}
.page-Main_Page .mw-body {
max-width: none !important;
margin: 0 !important;
padding: 12px !important;
border-left: 0 !important;
border-right: 0 !important;
border-radius: 0;
}
.hf-app-shell {
gap: 14px;
}
.hf-product-hero {
min-height: auto;
padding: 14px;
gap: 12px;
border-radius: 12px;
}
.hf-overline {
min-height: 24px;
padding: 0 8px;
font-size: 10px;
}
.hf-product-hero h1 {
margin: 14px 0 10px;
font-size: 34px !important;
line-height: .94 !important;
}
.hf-product-hero p {
font-size: 14px;
line-height: 1.45;
}
.hf-command {
margin-top: 16px;
padding: 10px;
border-radius: 10px;
}
.hf-action-row,
.hf-review-meta {
grid-template-columns: 1fr;
}
.hf-action-primary a,
.hf-action-secondary a {
width: 100%;
justify-content: center;
min-height: 38px;
}
.hf-ops-panel,
.hf-review-card,
.hf-hub-card,
.hf-template-card {
border-radius: 10px;
}
.hf-ops-panel {
padding: 12px;
}
.hf-panel-head {
margin-bottom: 12px;
}
.hf-ops-grid {
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.hf-ops-grid div {
padding: 10px;
}
.hf-signal {
display: none;
}
.hf-stat-strip {
grid-template-columns: 1fr 1fr;
gap: 10px;
margin: 12px 0 22px;
}
.hf-stat-strip div {
padding: 12px;
}
.hf-stat-strip strong {
font-size: 22px;
}
.hf-hub-grid {
gap: 12px;
}
.hf-hub-card {
min-height: 0;
padding: 16px;
}
.hf-section-head {
display: block;
}
.hf-section-head h2 {
font-size: 26px;
}
}