MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(35 intermediate revisions by the same user not shown) | |||
Line 128: | Line 128: | ||
.skin-vector-2022 #mw-panel .vector-menu-portal, | .skin-vector-2022 #mw-panel .vector-menu-portal, | ||
.skin-vector-2022 #mw-panel .vector-menu-content { | .skin-vector-2022 #mw-panel .vector-menu-content { | ||
background: transparent !important; | |||
} | } | ||
Line 338: | Line 338: | ||
/* =================================================================== */ | /* =================================================================== */ | ||
/* ============== MEGABONK WIKI BUILDS | /* ============== MEGABONK WIKI BUILDS – POLISHED ==================== */ | ||
/* =================================================================== */ | /* =================================================================== */ | ||
.build-layout-container { | |||
--bg: #121316; | |||
--border: #2a2f35; | |||
--border-soft: #3a3f47; | |||
--text: #f1f1f1; | |||
--text-muted: #9ca3af; | |||
--label: #7d8694; | |||
--accent: #f97316; | |||
--frost-bg: rgba(255,255,255,0.06); | |||
--frost-brd: rgba(255,255,255,0.12); | |||
--shadow-sm: 0 2px 6px rgba(0,0,0,.25); | |||
--shadow-md: 0 6px 18px rgba(0,0,0,.35); | |||
--shadow-lg: 0 10px 24px rgba(0,0,0,.50); | |||
--radius-sm: 8px; | |||
--radius-md: 10px; | |||
--icon: 32px; | |||
--icon-box: 40px; | |||
} | |||
/* Card wrapper */ | |||
.build-layout-container { | |||
background-color: var(--bg); | |||
border: 1px solid var(--border); | |||
border-radius: 12px; | |||
padding: 16px; | |||
box-shadow: var(--shadow-md); | |||
margin-bottom: 1.2rem; | |||
color: var(--text); | |||
} | |||
/* Optional .build-card (kept if you reuse it elsewhere) */ | |||
.build-card { | .build-card { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
background-color: | background-color: var(--bg); | ||
border: 1px solid | border: 1px solid var(--border); | ||
border-radius: | border-radius: var(--radius-md); | ||
margin-bottom: | margin-bottom: 1.2rem; | ||
padding: | padding: 1.2rem; | ||
transition: | transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; | ||
box-shadow: var(--shadow-md); | |||
} | } | ||
.build-card:hover { | @media (hover:hover) { | ||
.build-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); } | |||
} | |||
} | } | ||
.build-card-vote-count { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-right: 1.5rem; text-align: center; } | |||
.build-card-title a { font-size: 1.2rem; font-weight: 600; color: #f3f4f6 !important; text-decoration: none !important; } | |||
.build-card-author { font-size: .9rem; color: var(--text-muted); } | |||
/* Main tri-column layout */ | |||
.build-layout-top-row { | .build-layout-top-row { | ||
display: flex; | display: flex; | ||
Line 384: | Line 402: | ||
.build-col-center { | .build-col-center { | ||
flex: 0 0 300px; | flex: 0 0 300px; | ||
border-left: 1px solid var(--border); | |||
border-left: 1px solid | border-right: 1px solid var(--border); | ||
border-right: 1px solid | |||
padding: 0 1.5rem; | padding: 0 1.5rem; | ||
display: grid; | |||
grid-template-columns: 1fr auto; | |||
grid-template-areas: | |||
"title vote" | |||
"author author"; | |||
align-items: center; | |||
column-gap: .75rem; | |||
row-gap: .35rem; | |||
text-align: left; | |||
} | } | ||
.build-col-left { text-align: right; } | .build-col-left { text-align: right; } | ||
.build-col-right { text-align: left; } | .build-col-right { text-align: left; } | ||
/* Character | /* Character */ | ||
.build-character-image { | .build-character-image { | ||
border-radius: 50%; | border-radius: 50%; | ||
margin-bottom: | margin-bottom: .8rem; | ||
border: | border: 2px solid rgba(255,255,255,0.08); | ||
background: none; | background: none; | ||
box-shadow: | box-shadow: 0 2px 6px rgba(0,0,0,.3); | ||
padding: 0; | padding: 0; | ||
} | } | ||
/* Title, Author, Vote */ | |||
.build-title { | .build-title { | ||
font-size: 1. | grid-area: title; | ||
font-weight: | font-size: clamp(1.4rem, 2.2vw, 1.9rem); | ||
color: | font-weight: 800; | ||
color: var(--accent); | |||
line-height: 1.2; | line-height: 1.2; | ||
margin- | margin: .25rem 0 0 0; | ||
align-self: center; | |||
overflow-wrap: anywhere; | |||
} | } | ||
.build-author { | .build-author { | ||
grid-area: author; | |||
color: var(--text-muted); | |||
font-size: 0. | font-size: .95rem; | ||
margin: .15rem 0 .4rem 0; | |||
} | } | ||
.build- | /* Vote */ | ||
.build-voting-area { | |||
grid-area: vote; | |||
justify-self: end; | |||
align-self: center; | |||
margin: 0; | |||
display: inline-flex; | |||
gap: .45rem; | |||
white-space: nowrap; | |||
} | } | ||
.build- | .build-voting-area a, | ||
border- | .build-voting-area button, | ||
.build-voting-area input[type="button"], | |||
.build-voting-area input[type="submit"] { | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
gap: .35rem; | |||
padding: .4rem .62rem; | |||
height: 34px; | |||
min-width: 38px; | |||
font-size: .9rem; | |||
line-height: 1; | |||
border-radius: 10px; | |||
border: 1px solid var(--frost-brd); | |||
background: var(--frost-bg); | |||
color: var(--text); | |||
text-decoration: none; | |||
cursor: pointer; | |||
box-shadow: var(--shadow-sm); | |||
transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease, color .12s ease; | |||
} | } | ||
@media (hover:hover) { | |||
.build-voting-area a:hover, | |||
.build-voting-area button:hover, | |||
.build-voting-area input[type="button"]:hover, | |||
.build-voting-area input[type="submit"]:hover { | |||
transform: translateY(-1px); | |||
border-color: var(--accent); | |||
background: rgba(255,255,255,.10); | |||
color: #fff; | |||
} | |||
} | |||
.build-voting-area a:focus-visible, | |||
.build-voting-area button:focus-visible, | |||
.build-voting-area input[type="button"]:focus-visible, | |||
.build-voting-area input[type="submit"]:focus-visible { | |||
outline: 2px solid var(--accent); | |||
outline-offset: 2px; | |||
} | |||
/* Strategy */ | |||
.build-strategy { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 2rem; } | |||
.build-strategy h2 { border-bottom: 1px solid var(--border-soft); padding-bottom: .5rem; color: var(--text); } | |||
/* Lists */ | |||
.build-slot-list { display: flex; flex-direction: column; gap: .75rem; } | |||
.build-slot- | /* Flatten row visuals (so only icons have boxes) */ | ||
.build-slot-row, | |||
.build-slot-row-left, | |||
.build-slot-row-horizontal { | |||
.build-slot-row { | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: .75rem; | ||
padding: | padding: 0 !important; | ||
border-radius: | border-radius: 0 !important; | ||
background: transparent !important; | |||
border: 0 !important; | |||
box-shadow: none !important; | |||
} | } | ||
.build-slot-row-left { justify-content: flex-end; } | .build-slot-row-left { justify-content: flex-end; } | ||
/* Labels toned down */ | |||
.build-slot-label { | .build-slot-label { | ||
font-size: | font-size: .8rem; | ||
color: | color: var(--label); | ||
font-weight: 400; | font-weight: 400; | ||
width: 60px; | width: 60px; | ||
opacity: .9; | |||
} | } | ||
.build-col-left .build-slot-label { text-align: right; } | .build-col-left .build-slot-label { text-align: right; } | ||
.build-col-right .build-slot-label { text-align: left; } | .build-col-right .build-slot-label { text-align: left; } | ||
/* | /* Icon box (single hover) */ | ||
.build-item-icon { | .build-item-icon { | ||
display: grid; | display: grid; | ||
place-items: center; | place-items: center; | ||
width: | width: var(--icon-box); height: var(--icon-box); | ||
border-radius: var(--radius-sm); | |||
border-radius: | background: var(--frost-bg); | ||
background: | border: 1px solid var(--frost-brd); | ||
border: 1px solid | box-shadow: var(--shadow-sm); | ||
box-shadow: | font-size: 0; line-height: 0; | ||
font-size: 0; | overflow: hidden; | ||
transition: border-color .18s, box-shadow .18s, transform .18s; | |||
transition: border-color | |||
} | } | ||
@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { | @supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { | ||
.build-item-icon { | .build-item-icon { backdrop-filter: blur(6px) saturate(1.15); -webkit-backdrop-filter: blur(6px) saturate(1.15); } | ||
} | |||
@media (hover:hover) { | |||
.build-slot-row:hover .build-item-icon, | |||
.build-slot-row-horizontal:hover .build-item-icon { | |||
border-color: var(--accent); | |||
box-shadow: 0 4px 10px rgba(0,0,0,.3); | |||
transform: translateY(-1px); | |||
} | } | ||
} | } | ||
/* | /* MW image wrapper + image size */ | ||
.build-item-icon a, | .build-item-icon a, | ||
.build-item-icon a.image { | .build-item-icon a.image { | ||
display: flex !important; | display: flex !important; | ||
align-items: center; | align-items: center; justify-content: center; | ||
width: var(--icon) !important; height: var(--icon) !important; | |||
width: | margin: 0; padding: 0; text-decoration: none; | ||
margin: 0; | |||
} | } | ||
.build-item-image, | .build-item-image, | ||
.build-item-icon img { | .build-item-icon img { | ||
display: block !important; | display: block !important; | ||
width: | width: var(--icon) !important; height: var(--icon) !important; | ||
object-fit: cover; border-radius: 4px; | |||
object-fit: cover; | margin: 0; padding: 0; border: 0; | ||
transition: none !important; | |||
margin: 0; | |||
transition: | |||
} | } | ||
.build-item- | |||
/* Empty/missing icon state (if your template outputs a placeholder class) */ | |||
.build-item-icon.is-empty { | |||
background: rgba(255,255,255,0.03); | |||
border-style: dashed; | |||
opacity: .7; | |||
} | } | ||
.build-layout-bottom-row { | /* Weapons area */ | ||
.build-layout-bottom-row { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; } | |||
.build-weapon-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; } | |||
} | /* Reduced motion */ | ||
.build-weapon-list { | @media (prefers-reduced-motion: reduce) { | ||
.build-card, | |||
.build-item-icon, | |||
.build-voting-area a, | |||
.build-voting-area button { transition: none !important; } | |||
.build- | |||
} | } | ||
/* Responsive */ | |||
@media (max-width: 900px) { | @media (max-width: 900px) { | ||
.build-layout-top-row { flex-direction: column; gap: 1rem; } | .build-layout-top-row { flex-direction: column; gap: 1rem; } | ||
.build-col-center { border-left: 0; border-right: 0; padding: 0; } | .build-col-center { border-left: 0; border-right: 0; padding: 0; } | ||
.build-col- | } | ||
@media (max-width: 540px) { | |||
.build-col-center { | |||
grid-template-columns: 1fr; | |||
grid-template-areas: | |||
"title" | |||
"vote" | |||
"author"; | |||
row-gap: .45rem; | |||
} | |||
.build-voting-area { justify-self: start; } | |||
.build-slot-label { width: auto; min-width: 56px; } | |||
.build-weapon-list { justify-content: flex-start; } | |||
} | |||
/* Print – keep it readable */ | |||
@media print { | |||
.build-layout-container { background: #fff; color: #000; box-shadow: none; border-color: #ccc; } | |||
.build-title { color: #000; } | |||
.build-item-icon { border-color: #ccc; background: #f8f8f8; box-shadow: none; } | |||
} | } |
Latest revision as of 22:54, 3 October 2025
:root { --mb-card-bg: rgba(12, 16, 28, .92); --mb-card-border: rgba(255, 255, 255, .08); --mb-card-blur: 8px; --mb-card-radius: 12px; --mb-card-shadow: 0 14px 36px rgba(0, 0, 0, .35); --mb-side-bg: var(--mb-card-bg); --mb-side-border: var(--mb-card-border); --mb-side-blur: var(--mb-card-blur); --mb-side-radius: 14px; --mb-side-shadow: 0 12px 28px rgba(0, 0, 0, .35); --mb-side-heading: #ffd47f; --mb-overlay-bg: rgba(14, 18, 30, .92); --mb-overlay-border: rgba(255, 255, 255, .10); --mb-text: #e9edf4; --mb-text-weak: #c8ced8; --mb-pill-hover: rgba(255, 255, 255, .10); } html, body { min-height: 100%; } @supports (background-image: image-set(url("x.avif") type("image/avif"))) { body { background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), image-set( url(/resources/assets/megabonk-bg.avif) type("image/avif"), url(/resources/assets/megabonk-bg.webp) type("image/webp"), url(/resources/assets/megabonk-bg.jpg) type("image/jpeg") ) center/cover fixed no-repeat !important; color: var(--mb-text-weak); } } @supports not (background-image: image-set(url("x.avif") type("image/avif"))) { body { background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url(/resources/assets/megabonk-bg.jpg) center/cover fixed no-repeat !important; color: var(--mb-text-weak); } } a { color: #ffbe32; } a:hover { color: #ffd47f; } a:visited { color: #d7a431; } a:active { color: #ffc555; } .wikitable, .infobox, .mbox-small, .navbox { background: rgba(20, 24, 36, .78); border-color: rgba(255, 255, 255, .08); color: var(--mb-text); } .wikitable th, .wikitable td { border-color: rgba(255, 255, 255, .10); } .mw-file-element { background: transparent !important; box-shadow: none !important; border: 0 !important; } .skin-vector-2022 .mw-content-container, .skin-vector-2022 .vector-main-content, .skin-vector-2022 .vector-header, .skin-vector-2022 .vector-sticky-header, .skin-vector-2022 .vector-sticky-header .vector-header-container, .skin-vector-2022 .vector-page-titlebar, .skin-vector-2022 .mw-workspace-container, .skin-vector-2022 .mw-page-container, .skin-vector-2022 .vector-tabs, .skin-vector-2022 .vector-tabs .vector-tab-link, .skin-vector-2022 .vector-page-titlebar .vector-page-titlebar-toc, .skin-vector-2022 .mw-body .vector-body-before-content { background: transparent !important; border: 0 !important; box-shadow: none !important; } .skin-vector-2022 .mw-body { background: var(--mb-card-bg); border: 1px solid var(--mb-card-border); border-radius: var(--mb-card-radius); box-shadow: var(--mb-card-shadow); padding: 20px; backdrop-filter: blur(var(--mb-card-blur)) saturate(115%); -webkit-backdrop-filter: blur(var(--mb-card-blur)) saturate(115%); color: var(--mb-text); will-change: backdrop-filter; background-clip: padding-box; } .skin-vector-2022 #mw-panel, .skin-vector-2022 #vector-page-tools { background: var(--mb-side-bg) !important; border: 1px solid var(--mb-side-border) !important; border-radius: var(--mb-side-radius) !important; box-shadow: var(--mb-side-shadow) !important; backdrop-filter: blur(var(--mb-side-blur)) saturate(115%) !important; -webkit-backdrop-filter: blur(var(--mb-side-blur)) saturate(115%) !important; color: var(--mb-text); overflow: visible !important; will-change: backdrop-filter; } .skin-vector-2022 .vector-toc { background: var(--mb-side-bg) !important; border: 1px solid var(--mb-side-border) !important; border-radius: var(--mb-side-radius) !important; box-shadow: 0 4px 12px rgba(0,0,0,.25) !important; backdrop-filter: blur(var(--mb-side-blur)) saturate(115%) !important; -webkit-backdrop-filter: blur(var(--mb-side-blur)) saturate(115%) !important; color: var(--mb-text); overflow: visible !important; will-change: backdrop-filter; } .skin-vector-2022 #mw-panel { padding: 12px !important; margin: 8px 10px !important; } .skin-vector-2022 #mw-panel .vector-menu, .skin-vector-2022 #mw-panel .vector-menu-portal, .skin-vector-2022 #mw-panel .vector-menu-content { background: transparent !important; } .skin-vector-2022 #mw-panel .vector-menu-heading, .skin-vector-2022 #vector-page-tools .vector-menu-heading { color: var(--mb-side-heading) !important; font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .02em; margin: 6px 6px 8px !important; padding: 6px 8px !important; border-bottom: 1px solid rgba(255, 255, 255, .08) !important; border-radius: 8px !important; background: rgba(255, 255, 255, .04) !important; } .skin-vector-2022 #mw-panel .vector-menu-content-list .mw-list-item > a, .skin-vector-2022 #vector-page-tools .vector-menu-content-list .mw-list-item > a { display: block; padding: 8px 10px !important; border-radius: 8px !important; color: var(--mb-text) !important; text-decoration: none !important; } .skin-vector-2022 #mw-panel .vector-menu-content-list .mw-list-item > a:hover, .skin-vector-2022 #mw-panel .vector-menu-content-list .mw-list-item > a:focus, .skin-vector-2022 #vector-page-tools .vector-menu-content-list .mw-list-item > a:hover, .skin-vector-2022 #vector-page-tools .vector-menu-content-list .mw-list-item > a:focus { background: var(--mb-pill-hover) !important; color: #fff !important; outline: 0; } .skin-vector-2022 .vector-toc .vector-toc-heading { color: var(--mb-side-heading); border-bottom: 1px solid rgba(255, 255, 255, .08); } .skin-vector-2022 .vector-toc a { color: var(--mb-text-weak); } .skin-vector-2022 .vector-toc a:hover { color: #fff; } .skin-vector-2022 .vector-search-box-input { background: rgba(255, 255, 255, .06); color: var(--mb-text); border-color: rgba(255, 255, 255, .12); } .cdx-menu, .cdx-menu__listbox, .cdx-typeahead-search__menu, .oo-ui-window-frame, .oo-ui-menuSelectWidget, .oo-ui-menuSelectWidget-popup, .oo-ui-popupWidget, .mw-echo-ui-notificationsOverlayWidget { background: var(--mb-overlay-bg) !important; border: 1px solid var(--mb-overlay-border) !important; color: var(--mb-text) !important; backdrop-filter: blur(6px) saturate(115%); -webkit-backdrop-filter: blur(6px) saturate(115%); } .oo-ui-menuSelectWidget .oo-ui-optionWidget.oo-ui-optionWidget-highlighted { background: rgba(255, 255, 255, .08) !important; } .mb-hero-block { text-align: center; margin: 30px auto; padding: 20px 30px; max-width: 900px; border-radius: 16px; background: rgba(12, 16, 28, .45); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(10px) saturate(115%); -webkit-backdrop-filter: blur(10px) saturate(115%); box-shadow: 0 8px 28px rgba(0, 0, 0, .30); } .mb-hero-block h1 { font-size: 2.2em; margin: 20px 0 10px; color: #ffd47f; } .mb-hero-block p { font-size: 1.2em; color: #c8ced8; max-width: 700px; margin: 0 auto; } .mb-glass-btn { display: inline-block; padding: 10px 18px; margin: 6px 4px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #e9edf4 !important; font-weight: 600; text-decoration: none !important; backdrop-filter: blur(8px) saturate(115%); -webkit-backdrop-filter: blur(8px) saturate(115%); box-shadow: 0 4px 12px rgba(0, 0, 0, .30); transition: transform .2s ease, background .2s ease, border-color .2s ease; } .mb-glass-btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .28); color: #fff !important; transform: translateY(-2px); } .mb-glass-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); transform: translateY(-1px); } .mb-cta { text-align: center; margin: 25px 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } @media (prefers-reduced-transparency: reduce) { .skin-vector-2022 .mw-body, .skin-vector-2022 #mw-panel, .skin-vector-2022 .vector-toc, .skin-vector-2022 #vector-page-tools, .mb-hero-block, .mb-glass-btn, .cdx-menu, .cdx-menu__listbox, .cdx-typeahead-search__menu, .oo-ui-window-frame, .oo-ui-menuSelectWidget, .oo-ui-menuSelectWidget-popup, .oo-ui-popupWidget, .mw-echo-ui-notificationsOverlayWidget { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(12, 16, 28, .96) !important; } } @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } } @media (max-width: 850px) { .skin-vector-2022 .mw-page-container-inner, .skin-vector-2022 .mw-content-container { margin: 0 !important; padding: 0 !important; } .skin-vector-2022 .mw-body { border: none !important; border-radius: 0 !important; box-shadow: none !important; padding: 16px !important; } } @media (max-width: 600px) { .infobox { width: auto !important; float: none !important; margin: 20px 0 !important; } } .mb-navbox { background: var(--mb-card-bg) !important; border: 1px solid var(--mb-card-border) !important; border-radius: var(--mb-card-radius) !important; box-shadow: var(--mb-card-shadow) !important; backdrop-filter: blur(var(--mb-card-blur)) saturate(115%) !important; -webkit-backdrop-filter: blur(var(--mb-card-blur)) saturate(115%) !important; } .mb-navbox .navbox-title { color: var(--mb-side-heading) !important; background: rgba(255,255,255,.04) !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; } .mb-nav-inline { text-align:center; padding: 0 .5em; } .mb-pill { display:inline-flex; align-items:center; gap:6px; padding: 4px 6px; border-radius:10px; transition: background .15s ease; } .mb-pill:hover { background: var(--mb-pill-hover); } .mb-sep { margin: 0 .35em; opacity:.7; } @media (max-width: 700px) { .mb-nav-inline { line-height: 2.2; } .mb-pill { padding: 4px 5px; } } .skin-vector-2022 .mw-table-of-contents-container, .skin-vector-2022 #mw-panel-toc .vector-pinned-container{ background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; } .skin-vector-2022 #mw-panel-toc{ background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 8px 10px !important; } .skin-vector-2022 #vector-toc{ width: 100% !important; box-sizing: border-box !important; margin: 0 !important; } /* =================================================================== */ /* ============== MEGABONK WIKI BUILDS – POLISHED ==================== */ /* =================================================================== */ .build-layout-container { --bg: #121316; --border: #2a2f35; --border-soft: #3a3f47; --text: #f1f1f1; --text-muted: #9ca3af; --label: #7d8694; --accent: #f97316; --frost-bg: rgba(255,255,255,0.06); --frost-brd: rgba(255,255,255,0.12); --shadow-sm: 0 2px 6px rgba(0,0,0,.25); --shadow-md: 0 6px 18px rgba(0,0,0,.35); --shadow-lg: 0 10px 24px rgba(0,0,0,.50); --radius-sm: 8px; --radius-md: 10px; --icon: 32px; --icon-box: 40px; } /* Card wrapper */ .build-layout-container { background-color: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-md); margin-bottom: 1.2rem; color: var(--text); } /* Optional .build-card (kept if you reuse it elsewhere) */ .build-card { display: flex; align-items: center; background-color: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 1.2rem; padding: 1.2rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; box-shadow: var(--shadow-md); } @media (hover:hover) { .build-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); } } .build-card-vote-count { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-right: 1.5rem; text-align: center; } .build-card-title a { font-size: 1.2rem; font-weight: 600; color: #f3f4f6 !important; text-decoration: none !important; } .build-card-author { font-size: .9rem; color: var(--text-muted); } /* Main tri-column layout */ .build-layout-top-row { display: flex; justify-content: center; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; } .build-col { flex: 1; } .build-col-center { flex: 0 0 300px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0 1.5rem; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title vote" "author author"; align-items: center; column-gap: .75rem; row-gap: .35rem; text-align: left; } .build-col-left { text-align: right; } .build-col-right { text-align: left; } /* Character */ .build-character-image { border-radius: 50%; margin-bottom: .8rem; border: 2px solid rgba(255,255,255,0.08); background: none; box-shadow: 0 2px 6px rgba(0,0,0,.3); padding: 0; } /* Title, Author, Vote */ .build-title { grid-area: title; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; color: var(--accent); line-height: 1.2; margin: .25rem 0 0 0; align-self: center; overflow-wrap: anywhere; } .build-author { grid-area: author; color: var(--text-muted); font-size: .95rem; margin: .15rem 0 .4rem 0; } /* Vote */ .build-voting-area { grid-area: vote; justify-self: end; align-self: center; margin: 0; display: inline-flex; gap: .45rem; white-space: nowrap; } .build-voting-area a, .build-voting-area button, .build-voting-area input[type="button"], .build-voting-area input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .4rem .62rem; height: 34px; min-width: 38px; font-size: .9rem; line-height: 1; border-radius: 10px; border: 1px solid var(--frost-brd); background: var(--frost-bg); color: var(--text); text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease, color .12s ease; } @media (hover:hover) { .build-voting-area a:hover, .build-voting-area button:hover, .build-voting-area input[type="button"]:hover, .build-voting-area input[type="submit"]:hover { transform: translateY(-1px); border-color: var(--accent); background: rgba(255,255,255,.10); color: #fff; } } .build-voting-area a:focus-visible, .build-voting-area button:focus-visible, .build-voting-area input[type="button"]:focus-visible, .build-voting-area input[type="submit"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* Strategy */ .build-strategy { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 2rem; } .build-strategy h2 { border-bottom: 1px solid var(--border-soft); padding-bottom: .5rem; color: var(--text); } /* Lists */ .build-slot-list { display: flex; flex-direction: column; gap: .75rem; } /* Flatten row visuals (so only icons have boxes) */ .build-slot-row, .build-slot-row-left, .build-slot-row-horizontal { display: flex; align-items: center; gap: .75rem; padding: 0 !important; border-radius: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; } .build-slot-row-left { justify-content: flex-end; } /* Labels toned down */ .build-slot-label { font-size: .8rem; color: var(--label); font-weight: 400; width: 60px; opacity: .9; } .build-col-left .build-slot-label { text-align: right; } .build-col-right .build-slot-label { text-align: left; } /* Icon box (single hover) */ .build-item-icon { display: grid; place-items: center; width: var(--icon-box); height: var(--icon-box); border-radius: var(--radius-sm); background: var(--frost-bg); border: 1px solid var(--frost-brd); box-shadow: var(--shadow-sm); font-size: 0; line-height: 0; overflow: hidden; transition: border-color .18s, box-shadow .18s, transform .18s; } @supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { .build-item-icon { backdrop-filter: blur(6px) saturate(1.15); -webkit-backdrop-filter: blur(6px) saturate(1.15); } } @media (hover:hover) { .build-slot-row:hover .build-item-icon, .build-slot-row-horizontal:hover .build-item-icon { border-color: var(--accent); box-shadow: 0 4px 10px rgba(0,0,0,.3); transform: translateY(-1px); } } /* MW image wrapper + image size */ .build-item-icon a, .build-item-icon a.image { display: flex !important; align-items: center; justify-content: center; width: var(--icon) !important; height: var(--icon) !important; margin: 0; padding: 0; text-decoration: none; } .build-item-image, .build-item-icon img { display: block !important; width: var(--icon) !important; height: var(--icon) !important; object-fit: cover; border-radius: 4px; margin: 0; padding: 0; border: 0; transition: none !important; } /* Empty/missing icon state (if your template outputs a placeholder class) */ .build-item-icon.is-empty { background: rgba(255,255,255,0.03); border-style: dashed; opacity: .7; } /* Weapons area */ .build-layout-bottom-row { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; } .build-weapon-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; } /* Reduced motion */ @media (prefers-reduced-motion: reduce) { .build-card, .build-item-icon, .build-voting-area a, .build-voting-area button { transition: none !important; } } /* Responsive */ @media (max-width: 900px) { .build-layout-top-row { flex-direction: column; gap: 1rem; } .build-col-center { border-left: 0; border-right: 0; padding: 0; } } @media (max-width: 540px) { .build-col-center { grid-template-columns: 1fr; grid-template-areas: "title" "vote" "author"; row-gap: .45rem; } .build-voting-area { justify-self: start; } .build-slot-label { width: auto; min-width: 56px; } .build-weapon-list { justify-content: flex-start; } } /* Print – keep it readable */ @media print { .build-layout-container { background: #fff; color: #000; box-shadow: none; border-color: #ccc; } .build-title { color: #000; } .build-item-icon { border-color: #ccc; background: #f8f8f8; box-shadow: none; } }