Jump to content

MediaWiki:Common.css: Difference between revisions

From Megabonk Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 143: Line 143:
}
}


/* =================================================================== */
/* ============== MEGABONK WIKI BUILDS =============================== */
/* =================================================================== */
.build-layout-container {
.build-layout-container {
   --accent: #f97316;
   --accent: #f97316;
   --border: #2a2f35;
   --border: rgba(255,255,255,.12);
   --text: #f1f1f1;
   --text: #f1f1f1;
   --text-muted: #9ca3af;
   --text-muted: #9ca3af;
  --bg: #121316;
}
}


.build-layout-container {
.build-layout-container {
   background: #121316;
   background: var(--bg);
   border: 1px solid var(--border);
   border: 1px solid var(--border);
   border-radius: 12px;
   border-radius: 12px;
Line 162: Line 160:
}
}


/* center col */
.build-col-center {
.build-col-center {
   display: grid;
   display: grid;
Line 173: Line 170:
}
}


/* title, author */
/* Başlık ve Yazar */
.build-title {
.build-title {
   grid-area: title;
   grid-area: title;
Line 186: Line 183:
}
}


/* Vote (right of title) with solid focus/hover */
.build-voting-area {
.build-voting-area {
   grid-area: vote;
   grid-area: vote;
   justify-self: end;
   justify-self: end;
   margin: 0;
   display: flex;
}
}
.build-voting-area a,
 
.build-voting-area button,
.vote-vote-link {
.build-voting-area input[type="button"],
.build-voting-area input[type="submit"] {
   display: inline-flex;
   display: inline-flex;
   align-items: center;
   align-items: center;
   gap: .45rem;
   gap: 6px;
   padding: .48rem .75rem;
   padding: 6px 12px;
   min-height: 36px;
   background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: .92rem;
   border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  line-height: 1;
  border-radius: 8px;
  border-radius: 10px;
  color: var(--accent) !important;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  text-decoration: none !important;
   background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 18%, transparent), color-mix(in oklab, var(--accent) 10%, transparent));
  font-weight: 600;
   color: #ffd9be;
   font-size: .9rem;
   cursor: pointer;
   cursor: pointer;
  text-decoration: none;
   transition: all .2s ease;
   transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s 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) {
@media (hover:hover) {
   .build-voting-area a:hover,
   .vote-vote-link:hover {
  .build-voting-area button:hover,
    background: color-mix(in srgb, var(--accent) 15%, transparent);
  .build-voting-area input[type="button"]:hover,
  .build-voting-area input[type="submit"]:hover {
    transform: translateY(-1px);
     border-color: var(--accent);
     border-color: var(--accent);
     box-shadow: 0 6px 16px color-mix(in oklab, var(--accent) 35%, transparent);
     color: #ff8c3c !important;
     background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 28%, transparent), color-mix(in oklab, var(--accent) 16%, transparent));
    transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(0,0,0,.3);
   }
   }
}
}
.build-voting-area a:focus-visible,
 
.build-voting-area button:focus-visible,
.vote-vote-link:focus-visible {
.build-voting-area input[type="button"]:focus-visible,
.build-voting-area input[type="submit"]:focus-visible {
   outline: 2px solid var(--accent);
   outline: 2px solid var(--accent);
   outline-offset: 2px;
   outline-offset: 2px;
}
.build-voting-area .vote-action,
.build-voting-area .vote-box {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}
}

Revision as of 22:45, 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;
}

/* 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;
}