Jump to content

MediaWiki:Common.css

From Megabonk Wiki
Revision as of 22:45, 3 October 2025 by MegaAdmin (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
: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;
}

/* Vector skin cleanups */
.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);
  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);
}

.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);
}

.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;
  border-bottom: 1px solid 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%);
}

.build-layout-container {
  --accent: #f97316;
  --border: rgba(255,255,255,.12);
  --text: #f1f1f1;
  --text-muted: #9ca3af;
  --bg: #121316;
}

.build-layout-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.build-col-center {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title vote"
    "author author";
  align-items: center;
  column-gap: .75rem;
}

/* Başlık ve Yazar */
.build-title {
  grid-area: title;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}
.build-author {
  grid-area: author;
  font-size: .9rem;
  color: var(--text-muted);
}

.build-voting-area {
  grid-area: vote;
  justify-self: end;
  display: flex;
}

.vote-vote-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 8px;
  color: var(--accent) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s ease;
}

.vote-vote-link::before {
  content: "▲";
  font-size: .8rem;
  opacity: .9;
  transform: translateY(-1px);
}

.vote-number {
  font-weight: 700;
  font-size: .9rem;
  color: currentColor;
}

@media (hover:hover) {
  .vote-vote-link:hover {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border-color: var(--accent);
    color: #ff8c3c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }
}

.vote-vote-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.build-voting-area .vote-action,
.build-voting-area .vote-box {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}