MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 337: | Line 337: | ||
} | } | ||
/* ============== BUILDS =============================== */ | /* =================================================================== */ | ||
/* ============== MEGABONK WIKI BUILDS =============================== */ | |||
/* =================================================================== */ | |||
.build-card { | .build-card { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
background-color: # | background-color: #121316; /* daha koyu, şık dark */ | ||
border: 1px solid # | border: 1px solid #2a2f35; | ||
border-radius: | border-radius: 10px; | ||
margin-bottom: | margin-bottom: 1.2rem; | ||
padding: | padding: 1.2rem; | ||
transition: all 0. | transition: all 0.25s ease-in-out; | ||
box-shadow: 0 6px 18px rgba(0,0,0,0.35); | |||
} | } | ||
.build-card:hover { | .build-card:hover { | ||
border-color: #f97316; | border-color: #f97316; | ||
transform: translateY(-3px); | transform: translateY(-3px); | ||
box-shadow: 0 | box-shadow: 0 10px 24px rgba(0,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-vote-count { font-size: 1.5rem; font-weight: bold; color: #f97316; margin-right: 1.5rem; text-align: center; } | ||
Line 358: | Line 361: | ||
.build-card-author { font-size: 0.9rem; color: #9ca3af; } | .build-card-author { font-size: 0.9rem; color: #9ca3af; } | ||
/* Layout */ | |||
.build-layout-top-row { display: flex; justify-content: center; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; } | .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 { flex: 1; } | ||
.build-col-center { flex: 0 0 300px; text-align: center; border-left: 1px solid # | .build-col-center { | ||
flex: 0 0 300px; | |||
text-align: center; | |||
border-left: 1px solid #2a2f35; | |||
border-right: 1px solid #2a2f35; | |||
padding: 0 1.5rem; | |||
} | |||
.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 image */ | |||
.build-character-image { | .build-character-image { | ||
border-radius: 50%; | border-radius: 50%; | ||
margin-bottom: 0. | margin-bottom: 0.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,0.3); | ||
padding: 0; | padding: 0; | ||
} | } | ||
.build-title { font-size: 1. | /* Title + Author + Vote stacked nicely */ | ||
.build-author { color: #9ca3af; margin-bottom: | .build-title { font-size: 1.8rem; font-weight: bold; color: #f97316; line-height: 1.2; margin-top: 0.5rem; margin-bottom: 0.3rem; } | ||
.build-voting-area { margin-top: | .build-author { color: #9ca3af; margin-bottom: 0.6rem; font-size: 0.95rem; } | ||
.build-voting-area { margin-top: 0.6rem; } | |||
.build-strategy { border-top: 1px solid # | /* Strategy */ | ||
.build-strategy h2 { border-bottom: 1px solid # | .build-strategy { border-top: 1px solid #2a2f35; padding-top: 1.5rem; margin-top: 2rem; } | ||
.build-strategy h2 { border-bottom: 1px solid #3a3f47; padding-bottom: 0.5rem; color: #f1f1f1; } | |||
/* Slot lists */ | |||
.build-slot-list { display: flex; flex-direction: column; gap: 0.75rem; } | .build-slot-list { display: flex; flex-direction: column; gap: 0.75rem; } | ||
/* Row visuals killed */ | |||
.build-slot-row, | .build-slot-row, | ||
.build-slot-row-left, | .build-slot-row-left, | ||
Line 397: | Line 412: | ||
.build-slot-row-left { justify-content: flex-end; } | .build-slot-row-left { justify-content: flex-end; } | ||
/* labels */ | |||
.build-slot-label { font-size: 0.8rem; color: #7d8694; font-weight: 400; width: 60px; opacity: 0.9; } | |||
.build-slot-label { font-size: 0. | |||
.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 */ | |||
.build-item-icon { | .build-item-icon { | ||
display: grid; | display: grid; | ||
place-items: center; | place-items: center; | ||
width: 40px; | width: 40px; height: 40px; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: rgba(255,255,255,0.06); | background: rgba(255,255,255,0.06); | ||
Line 429: | Line 437: | ||
} | } | ||
} | } | ||
.build-slot-row:hover .build-item-icon, | .build-slot-row:hover .build-item-icon, | ||
.build-slot-row-horizontal:hover .build-item-icon { | .build-slot-row-horizontal:hover .build-item-icon { | ||
Line 437: | Line 444: | ||
} | } | ||
/* MW wrapper */ | |||
.build-item-icon a, | .build-item-icon a, | ||
.build-item-icon a.image { | .build-item-icon a.image { | ||
Line 449: | Line 457: | ||
} | } | ||
/* Icon img */ | |||
.build-item-image, | .build-item-image, | ||
.build-item-icon img { | .build-item-icon img { | ||
Line 462: | Line 471: | ||
} | } | ||
/* hide optional name */ | |||
.build-item-name { display: none !important; } | .build-item-name { display: none !important; } | ||
.build-layout-bottom-row { margin-top: 1.5rem; border-top: 1px solid # | /* Weapons row bottom */ | ||
.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; } | .build-weapon-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; } | ||
/* 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; } |
Revision as of 21:43, 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 =============================== */ /* =================================================================== */ .build-card { display: flex; align-items: center; background-color: #121316; /* daha koyu, şık dark */ border: 1px solid #2a2f35; border-radius: 10px; margin-bottom: 1.2rem; padding: 1.2rem; transition: all 0.25s ease-in-out; box-shadow: 0 6px 18px rgba(0,0,0,0.35); } .build-card:hover { border-color: #f97316; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,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; } /* 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; text-align: center; border-left: 1px solid #2a2f35; border-right: 1px solid #2a2f35; padding: 0 1.5rem; } .build-col-left { text-align: right; } .build-col-right { text-align: left; } /* Character image */ .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,0.3); padding: 0; } /* Title + Author + Vote stacked nicely */ .build-title { font-size: 1.8rem; font-weight: bold; color: #f97316; line-height: 1.2; margin-top: 0.5rem; margin-bottom: 0.3rem; } .build-author { color: #9ca3af; margin-bottom: 0.6rem; font-size: 0.95rem; } .build-voting-area { margin-top: 0.6rem; } /* 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: 0.5rem; color: #f1f1f1; } /* Slot lists */ .build-slot-list { display: flex; flex-direction: column; gap: 0.75rem; } /* Row visuals killed */ .build-slot-row, .build-slot-row-left, .build-slot-row-horizontal { display: flex; align-items: center; gap: 0.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 */ .build-slot-label { font-size: 0.8rem; color: #7d8694; font-weight: 400; width: 60px; opacity: 0.9; } .build-col-left .build-slot-label { text-align: right; } .build-col-right .build-slot-label { text-align: left; } /* ICON BOX */ .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,0.25); font-size: 0; line-height: 0; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; } @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,0.3); transform: translateY(-1px); } /* MW wrapper */ .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; } /* Icon img */ .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; } /* hide optional name */ .build-item-name { display: none !important; } /* Weapons row bottom */ .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; } .build-col-left, .build-col-right { text-align: left; } }