MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(23 intermediate revisions by the same user not shown) | |||
Line 337: | Line 337: | ||
} | } | ||
/* ===== | /* =================================================================== */ | ||
/* ============== MEGABONK WIKI BUILDS =============================== */ | |||
. | /* =================================================================== */ | ||
. | |||
. | /* Card wrapper (this is the element you actually use) */ | ||
. | .build-layout-container { | ||
. | background-color: #121316; /* deep dark */ | ||
. | border: 1px solid #2a2f35; | ||
. | border-radius: 12px; | ||
. | padding: 16px; | ||
. | box-shadow: 0 6px 18px rgba(0,0,0,.35); | ||
. | margin-bottom: 1.2rem; | ||
. | } | ||
. | |||
. | /* (Optional) keep .build-card styles if you also use it elsewhere */ | ||
. | .build-card { | ||
. | display: flex; | ||
@ | align-items: center; | ||
. | background-color: #121316; | ||
border: 1px solid #2a2f35; | |||
border-radius: 10px; | |||
margin-bottom: 1.2rem; | |||
padding: 1.2rem; | |||
transition: all .25s ease-in-out; | |||
box-shadow: 0 6px 18px rgba(0,0,0,.35); | |||
} | |||
.build-card:hover { | |||
border-color: #f97316; | |||
transform: translateY(-3px); | |||
box-shadow: 0 10px 24px rgba(0,0,0,.5); | |||
} | |||
.build-card-vote-count { font-size: 1.5rem; font-weight: bold; color: #f97316; 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: 0.9rem; color: #9ca3af; } | |||
/* 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 #2a2f35; | |||
border-right: 1px solid #2a2f35; | |||
padding: 0 1.5rem; | |||
/* turn center column into a small grid: title + vote on one row, author below */ | |||
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: 0.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 (left of vote), Author below */ | |||
.build-title { | |||
grid-area: title; | |||
font-size: 1.8rem; | |||
font-weight: 800; | |||
color: #f97316; | |||
line-height: 1.2; | |||
margin: .25rem 0 0 0; | |||
} | |||
.build-author { | |||
grid-area: author; | |||
color: #9ca3af; | |||
font-size: .95rem; | |||
margin: .15rem 0 .4rem 0; | |||
} | |||
/* Vote (right of title). Try to style whatever vote widget renders. */ | |||
.build-voting-area { | |||
grid-area: vote; | |||
justify-self: end; | |||
margin: 0; /* we control spacing via grid */ | |||
} | |||
.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; | |||
gap: .4rem; | |||
padding: .4rem .7rem; | |||
font-size: .9rem; | |||
line-height: 1; | |||
border-radius: 8px; | |||
border: 1px solid rgba(249,115,22,.4); | |||
background: linear-gradient(180deg, rgba(249,115,22,.18), rgba(249,115,22,.10)); | |||
color: #ffd2b3; | |||
cursor: pointer; | |||
transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease; | |||
text-decoration: none; | |||
} | |||
.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: #f97316; | |||
box-shadow: 0 6px 16px rgba(249,115,22,.35); | |||
background: linear-gradient(180deg, rgba(249,115,22,.28), rgba(249,115,22,.16)); | |||
} | |||
/* Strategy */ | |||
.build-strategy { | |||
border-top: 1px solid #2a2f35; | |||
padding-top: 1.5rem; | |||
margin-top: 2rem; | |||
} | |||
.build-strategy h2 { | |||
border-bottom: 1px solid #3a3f47; | |||
padding-bottom: .5rem; | |||
color: #f1f1f1; | |||
} | |||
/* 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; | |||
transition: none; | |||
} | |||
.build-slot-row-left { justify-content: flex-end; } | |||
/* Labels toned down */ | |||
.build-slot-label { | |||
font-size: .8rem; | |||
color: #7d8694; | |||
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: 40px; height: 40px; | |||
border-radius: 8px; | |||
background: rgba(255,255,255,0.06); | |||
border: 1px solid rgba(255,255,255,0.12); | |||
box-shadow: 0 2px 6px rgba(0,0,0,.25); | |||
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); } | |||
} | |||
.build-slot-row:hover .build-item-icon, | |||
.build-slot-row-horizontal:hover .build-item-icon { | |||
border-color: #f97316; | |||
box-shadow: 0 4px 10px rgba(0,0,0,.3); | |||
transform: translateY(-1px); | |||
} | } | ||
. | /* MediaWiki image wrapper fix + image size */ | ||
. | .build-item-icon a, | ||
.build-item-icon a.image { | |||
display: flex !important; | |||
align-items: center; justify-content: center; | |||
width: 32px !important; height: 32px !important; | |||
margin: 0; padding: 0; text-decoration: none; | |||
} | |||
.build-item-image, | |||
.build-item-icon img { | |||
display: block !important; | |||
width: 32px !important; height: 32px !important; | |||
object-fit: cover; border-radius: 4px; | |||
margin: 0; padding: 0; border: 0; | |||
transition: none !important; | |||
} | |||
. | .build-item-name { display: none !important; } | ||
. | /* Weapons area divider (keep) */ | ||
. | .build-layout-bottom-row { | ||
margin-top: 1.5rem; | |||
border-top: 1px solid #2a2f35; | |||
padding-top: 1.5rem; | |||
} | |||
.build-weapon-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; } | |||
/* ========================= 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; | |||
grid-template-columns: 1fr auto; | |||
grid-template-areas: | |||
"title vote" | |||
"author author"; | |||
} | |||
.build-col-left, .build-col-right { text-align: left; } | |||
} | |||
@media (max-width: 540px) { | |||
/* stack everything neatly on small phones */ | |||
.build-col-center { | |||
grid-template-columns: 1fr; | |||
grid-template-areas: | |||
"title" | |||
"vote" | |||
"author"; | |||
row-gap: .4rem; | |||
} | |||
.build-voting-area { justify-self: start; } /* vote under title */ | |||
.build-slot-label { width: auto; min-width: 56px; } | |||
.build-weapon-list { justify-content: flex-start; } | |||
} |
Latest revision as of 21:50, 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 =============================== */ /* =================================================================== */ /* Card wrapper (this is the element you actually use) */ .build-layout-container { background-color: #121316; /* deep dark */ border: 1px solid #2a2f35; border-radius: 12px; padding: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.35); margin-bottom: 1.2rem; } /* (Optional) keep .build-card styles if you also use it elsewhere */ .build-card { display: flex; align-items: center; background-color: #121316; border: 1px solid #2a2f35; border-radius: 10px; margin-bottom: 1.2rem; padding: 1.2rem; transition: all .25s ease-in-out; box-shadow: 0 6px 18px rgba(0,0,0,.35); } .build-card:hover { border-color: #f97316; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.5); } .build-card-vote-count { font-size: 1.5rem; font-weight: bold; color: #f97316; 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: 0.9rem; color: #9ca3af; } /* 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 #2a2f35; border-right: 1px solid #2a2f35; padding: 0 1.5rem; /* turn center column into a small grid: title + vote on one row, author below */ 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: 0.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 (left of vote), Author below */ .build-title { grid-area: title; font-size: 1.8rem; font-weight: 800; color: #f97316; line-height: 1.2; margin: .25rem 0 0 0; } .build-author { grid-area: author; color: #9ca3af; font-size: .95rem; margin: .15rem 0 .4rem 0; } /* Vote (right of title). Try to style whatever vote widget renders. */ .build-voting-area { grid-area: vote; justify-self: end; margin: 0; /* we control spacing via grid */ } .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; gap: .4rem; padding: .4rem .7rem; font-size: .9rem; line-height: 1; border-radius: 8px; border: 1px solid rgba(249,115,22,.4); background: linear-gradient(180deg, rgba(249,115,22,.18), rgba(249,115,22,.10)); color: #ffd2b3; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease; text-decoration: none; } .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: #f97316; box-shadow: 0 6px 16px rgba(249,115,22,.35); background: linear-gradient(180deg, rgba(249,115,22,.28), rgba(249,115,22,.16)); } /* Strategy */ .build-strategy { border-top: 1px solid #2a2f35; padding-top: 1.5rem; margin-top: 2rem; } .build-strategy h2 { border-bottom: 1px solid #3a3f47; padding-bottom: .5rem; color: #f1f1f1; } /* 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; transition: none; } .build-slot-row-left { justify-content: flex-end; } /* Labels toned down */ .build-slot-label { font-size: .8rem; color: #7d8694; 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: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 2px 6px rgba(0,0,0,.25); 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); } } .build-slot-row:hover .build-item-icon, .build-slot-row-horizontal:hover .build-item-icon { border-color: #f97316; box-shadow: 0 4px 10px rgba(0,0,0,.3); transform: translateY(-1px); } /* MediaWiki image wrapper fix + image size */ .build-item-icon a, .build-item-icon a.image { display: flex !important; align-items: center; justify-content: center; width: 32px !important; height: 32px !important; margin: 0; padding: 0; text-decoration: none; } .build-item-image, .build-item-icon img { display: block !important; width: 32px !important; height: 32px !important; object-fit: cover; border-radius: 4px; margin: 0; padding: 0; border: 0; transition: none !important; } .build-item-name { display: none !important; } /* Weapons area divider (keep) */ .build-layout-bottom-row { margin-top: 1.5rem; border-top: 1px solid #2a2f35; padding-top: 1.5rem; } .build-weapon-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; } /* ========================= 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; grid-template-columns: 1fr auto; grid-template-areas: "title vote" "author author"; } .build-col-left, .build-col-right { text-align: left; } } @media (max-width: 540px) { /* stack everything neatly on small phones */ .build-col-center { grid-template-columns: 1fr; grid-template-areas: "title" "vote" "author"; row-gap: .4rem; } .build-voting-area { justify-self: start; } /* vote under title */ .build-slot-label { width: auto; min-width: 56px; } .build-weapon-list { justify-content: flex-start; } }