MediaWiki:Common.css

From Cafe and Diner
Jump to navigation Jump to search

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/* =========================================================
   GLOBAL PAGE / MEDIAWIKI CHROME
   ========================================================= */

#content {
    background-color: #4a2c2a;
}

body {
    background-color: #4a2c2a;
}

#mw-head-base {
    background-color: #4a2c2a;
}

#mw-panel {
    background-color: white;
    border: 3px solid #556270;
    padding-bottom: 10px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

#footer-places-privacy {
    display: none;
}

#footer-places-about {
    display: none;
}

#footer-places-disclaimer {
    display: none;
}

#ca-talk {
    display: none !important;
}


/* =========================================================
   BASE TEXT / LINK COLORS
   ========================================================= */

.mw-body-content p {
    color: white;
}

.mw-body,
.parsoid-body {
    color: white;
}

.mw-body h1,
.mw-body-content h1 {
    color: white;
}

.mw-body-content h2 {
    color: white;
}

h3 {
    color: #FFFDD0;
}

h4 {
    color: #FFFDD0;
}

p {
    color: white;
}

li {
    color: #FFFDD0;
}

.mw-content-ltr ul,
.mw-content-rtl .mw-content-ltr ul {
    color: white;
}

ul li::before {
    color: #FFFDD0;
}

a,
a:visited {
    color: #FFFDD0;
}

.skin-vector-legacy a.new {
    color: white;
}

.mw-parser-output a.extiw,
.mw-parser-output a.external {
    color: #FFFDD0;
}

.mw-parser-output a.extiw:visited,
.mw-parser-output a.external:visited {
    color: #FFFDD0;
}

.mw-footer li {
    color: white;
}


/* =========================================================
   TABLES / TOC / MISC WIKI ELEMENTS
   ========================================================= */

#filetoc {
    background-color: transparent;
}

.mw_metadata td,
.mw_metadata th {
    background-color: transparent;
}

.wikitable {
    background-color: transparent;
}

.toc,
.toccolours {
    background-color: transparent;
}

.tocnumber {
    color: white;
}

.mw-message-box-warning,
.warningbox {
    background-color: transparent;
}

.catlinks {
    background-color: transparent;
}

.thumbcaption {
    color: black;
}

.mw-search-profile-tabs {
    background-color: #3a2c2a;
}

.search-types .current a {
    color: white;
}


/* =========================================================
   SPOILER / SPECIAL TEXT EFFECTS
   ========================================================= */

.spoiler-text {
    background: black;
    color: black;
    cursor: help;
    transition: background 0.3s ease 0.2s, color 0.2s ease 0.25s;
}

.spoiler-text:hover,
.spoiler-text:focus {
    color: white;
}

.blurry-text {
    filter: blur(1.75px);
}


/* =========================================================
   ANIMATED TEXT
   ========================================================= */

@keyframes blinkAnimation {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.animatedText {
    color: green;
    animation: blinkAnimation 2s linear infinite;
}


/* =========================================================
   DIVINE TEXT
   ========================================================= */

.divine-text {
    font-family: 'Cinzel', serif;
    background: linear-gradient(45deg, #00b3ff, #ff0099, #f6ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.divine-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.7;
    background: linear-gradient(45deg, #00b3ff, #ff0099, #f6ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divine-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    filter: blur(16px);
    opacity: 0.4;
    background: linear-gradient(45deg, #00b3ff, #ff0099, #f6ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divine-text {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow:
            0 0 5px #00b3ff,
            0 0 10px #ff0099,
            0 0 15px #f6ff00,
            0 0 20px #00b3ff,
            0 0 25px #ff0099,
            0 0 30px #f6ff00;
    }

    to {
        text-shadow:
            0 0 10px #00b3ff,
            0 0 20px #ff0099,
            0 0 30px #f6ff00,
            0 0 40px #00b3ff,
            0 0 50px #ff0099,
            0 0 60px #f6ff00;
    }
}


/* =========================================================
   FLICKER TEXT
   ========================================================= */

.flicker-text-hidden {
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.flicker-text-hidden:hover {
    animation: flicker 1s infinite;
}

.flicker-text {
    opacity: 100;
}

.flicker-text:hover {
    animation: flicker 1s infinite;
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 1;
        color: yellow;
    }

    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0;
    }
}


/* =========================================================
   LIGHT TEXT
   ========================================================= */

.light-text {
    font-family: 'Cinzel', serif;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: glow 2s ease-in-out infinite alternate;
    user-select: none;
}

.light-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    filter: blur(12px);
    opacity: 0.8;
    background: linear-gradient(45deg, #00b3ff, #ff0099, #f6ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    filter: blur(24px);
    opacity: 0.6;
    background: linear-gradient(45deg, #00b3ff, #ff0099, #f6ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes glow {
    from {
        text-shadow:
            0 0 10px #feffd9,
            0 0 20px #5e4b75,
            0 0 30px #fffff7,
            0 0 40px #feffd9,
            0 0 50px #5e4b75,
            0 0 60px #fffff7,
            0 0 70px #feffd9,
            0 0 80px #5e4b75,
            0 0 90px #fffff7;
    }

    to {
        text-shadow:
            0 0 30px #feffd9,
            0 0 60px #5e4b75,
            0 0 90px #fffff7,
            0 0 120px #feffd9,
            0 0 150px #5e4b75,
            0 0 180px #fffff7,
            0 0 210px #feffd9,
            0 0 240px #5e4b75,
            0 0 270px #fffff7;
    }
}


/* =========================================================
   SINISTER TEXT
   ========================================================= */

.sinister-text {
    font-family: 'Cinzel', serif;
    color: #3f4f41;
    text-shadow:
        0 0 2px #1a1a1a,
        0 0 10px #000000,
        0 0 2px #4c7550,
        0 0 7px #4c7550,
        0 0 8px #4c7550;
    transition: color 0.5s ease-in-out;
}


/* =========================================================
   CASE / REPORT TYPOGRAPHY
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');

.case,
.case p,
.case li,
.case span,
.case div {
    color: black;
    font-family: 'Courier Prime', monospace;
}

.mw-parser-output .case,
.mw-parser-output .case p,
.mw-parser-output .case b,
.mw-parser-output .case strong {
    color: black;
    font-family: 'Courier Prime', monospace;
}


/* =========================================================
   STAMP IMAGE OVERLAY
   ========================================================= */

/* Stamp wrapper */
figure.stamp-image,
.stamp-image {
    position: absolute;
    top: 120px;          /* adjust */
    right: 80px;         /* adjust */
    width: 350px;
    transform: rotate(-5deg);
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

/* Actual image */
figure.stamp-image img,
.stamp-image img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

/* Ensure text does NOT reflow */
.mw-parser-output {
    position: relative;
}


/* =========================================================
   REPORT BLOCKS
   ========================================================= */

.report-block {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 24px;
}

.mw-parser-output .report-block,
.mw-parser-output .report-block p,
.mw-parser-output .report-block b,
.mw-parser-output .report-block strong {
    color: #0f0e05;
}

.mw-parser-output .report-block {
    font-family: 'Courier Prime', monospace;
}


/* =========================================================
   ADDITIONS: CASE INDEX / DOSSIER / FILE LIST STYLING
   Added only; nothing above was removed.
   These are for the "Back in Business" / case list style.
   ========================================================= */

/* Optional palette variables for easier future editing */
:root {
    --cdn-bg-main: #1f1612;
    --cdn-bg-panel: #2a1d17;
    --cdn-bg-row: #1b120e;
    --cdn-bg-row-soft: #241813;
    --cdn-brass: #8d6b4f;
    --cdn-brass-soft: #a78867;
    --cdn-cream: #f3e3cf;
    --cdn-cream-muted: #d9c7b1;
    --cdn-shadow: rgba(0, 0, 0, 0.35);
}

/* Main wrapper for a themed case list page */
.cdn-case-board {
    background:
        radial-gradient(circle at top, rgba(167, 136, 103, 0.08), transparent 45%),
        repeating-linear-gradient(
            -45deg,
            #201612 0px,
            #201612 4px,
            #241914 4px,
            #241914 8px
        );
    border: 2px solid var(--cdn-brass);
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 10px 30px var(--cdn-shadow);
    color: var(--cdn-cream);
    position: relative;
    margin: 1.5rem auto;
}

/* Section title like [SECTION 1] BACK IN BUSINESS */
.cdn-case-board .cdn-section-title {
    color: var(--cdn-cream);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid rgba(167, 136, 103, 0.7);
    padding-bottom: 0.5rem;
}

/* Top-right badge like "BREWED" */
.cdn-case-board .cdn-section-badge {
    float: right;
    display: inline-block;
    margin-left: 12px;
    padding: 0.25rem 1rem;
    border: 1px solid var(--cdn-brass);
    border-radius: 999px;
    background: rgba(141, 107, 79, 0.12);
    color: var(--cdn-cream);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Decorative divider */
.cdn-divider {
    border-top: 2px dashed rgba(167, 136, 103, 0.55);
    margin: 1.25rem 0 1.5rem;
    position: relative;
}

.cdn-divider::after {
    content: "∞";
    position: absolute;
    left: 50%;
    top: -0.8em;
    transform: translateX(-50%);
    color: var(--cdn-brass-soft);
    background: transparent;
    padding: 0 0.5rem;
    font-size: 1rem;
}

/* Table wrapper for case rows */
.cdn-case-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    margin: 0 auto;
}

/* Make wikitable variants not fight the card styling */
.mw-parser-output table.cdn-case-table,
.mw-parser-output .cdn-case-table td,
.mw-parser-output .cdn-case-table th {
    background: transparent;
    border: 0;
    color: var(--cdn-cream);
}

/* Single row / card */
.cdn-case-row {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.10)),
        repeating-linear-gradient(
            -45deg,
            var(--cdn-bg-row) 0px,
            var(--cdn-bg-row) 6px,
            var(--cdn-bg-row-soft) 6px,
            var(--cdn-bg-row-soft) 12px
        );
    border: 1px solid rgba(141, 107, 79, 0.8);
    border-left: 4px solid var(--cdn-brass);
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

/* Inner spacing for row contents */
.cdn-case-row-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

/* Label pill: "Case No. X" */
.cdn-case-number {
    flex: 0 0 auto;
    display: inline-block;
    min-width: 110px;
    text-align: center;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--cdn-brass);
    border-radius: 999px;
    background: rgba(141, 107, 79, 0.08);
    color: #d7b38c;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Title/link area */
.cdn-case-title,
.mw-parser-output .cdn-case-title,
.mw-parser-output .cdn-case-title a,
.mw-parser-output .cdn-case-title a:visited {
    color: var(--cdn-cream);
    font-size: 1.85rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}

/* Optional subtitle / description under title */
.cdn-case-desc,
.mw-parser-output .cdn-case-desc,
.mw-parser-output .cdn-case-desc p {
    color: var(--cdn-cream-muted);
    font-size: 0.98rem;
    margin-top: 0.4rem;
    line-height: 1.45;
}

/* Footer badge like "10 FULLY BREWED CASES" */
.cdn-case-count {
    display: inline-block;
    margin: 1rem auto 0;
    padding: 0.35rem 1rem;
    border: 1px solid var(--cdn-brass);
    border-radius: 999px;
    background: rgba(141, 107, 79, 0.1);
    color: #d7b38c;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
}

/* Small signature / flavor text */
.cdn-signoff {
    text-align: right;
    color: var(--cdn-cream-muted);
    font-style: italic;
    margin-top: 1rem;
    letter-spacing: 0.06em;
}

/* Simple two-column case card layout for overview pages */
.cdn-case-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 14px 14px;
}

.mw-parser-output table.cdn-case-grid,
.mw-parser-output .cdn-case-grid td {
    background: transparent;
    border: 0;
    vertical-align: top;
}

/* Card block for your existing case overview style */
.cdn-case-card {
    background:
        linear-gradient(180deg, #332922 0%, #211914 100%);
    border: 2px solid var(--cdn-brass);
    border-radius: 10px;
    padding: 14px 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    min-height: 150px;
}

.cdn-case-card-title,
.mw-parser-output .cdn-case-card-title,
.mw-parser-output .cdn-case-card-title a,
.mw-parser-output .cdn-case-card-title a:visited {
    color: var(--cdn-cream);
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}

.cdn-case-card-number,
.mw-parser-output .cdn-case-card-number,
.mw-parser-output .cdn-case-card-number a,
.mw-parser-output .cdn-case-card-number a:visited {
    color: #ead7be;
    font-size: 1rem;
    margin: 0.25rem 0 0.75rem;
    text-decoration: none;
    display: block;
}

.cdn-case-card-desc,
.mw-parser-output .cdn-case-card-desc,
.mw-parser-output .cdn-case-card-desc p {
    color: var(--cdn-cream-muted);
    line-height: 1.45;
    font-size: 0.98rem;
}

/* Wide feature card for section headers / file reference blocks */
.cdn-feature-card {
    margin: 0 auto 20px auto;
    max-width: 1100px;
    background: var(--cdn-bg-panel);
    border: 2px solid var(--cdn-brass);
    border-radius: 10px;
    padding: 12px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    text-align: center;
    color: var(--cdn-cream);
}

.cdn-feature-card-title,
.mw-parser-output .cdn-feature-card-title,
.mw-parser-output .cdn-feature-card-title a,
.mw-parser-output .cdn-feature-card-title a:visited {
    color: var(--cdn-cream);
    font-size: 1.7rem;
    font-weight: 700;
    text-decoration: none;
}

.cdn-feature-card-link,
.mw-parser-output .cdn-feature-card-link,
.mw-parser-output .cdn-feature-card-link a,
.mw-parser-output .cdn-feature-card-link a:visited {
    color: #ead7be;
    font-size: 1rem;
    text-decoration: none;
}

/* Case titles that need a slightly more display-like look */
.cdn-display-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.03em;
}

/* Optional subtle hover, if your wiki allows it */
.cdn-case-row:hover,
.cdn-case-card:hover,
.cdn-feature-card:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 8px 22px rgba(0, 0, 0, 0.30);
}

/* Optional compact version for tighter rows */
.cdn-case-row.compact .cdn-case-row-inner {
    padding: 10px 14px;
}

.cdn-case-row.compact .cdn-case-title,
.mw-parser-output .cdn-case-row.compact .cdn-case-title,
.mw-parser-output .cdn-case-row.compact .cdn-case-title a,
.mw-parser-output .cdn-case-row.compact .cdn-case-title a:visited {
    font-size: 1.5rem;
}

/* Mobile-ish fallback for narrower layouts */
@media screen and (max-width: 900px) {
    .cdn-case-row-inner {
        display: block;
    }

    .cdn-case-number {
        margin-bottom: 10px;
    }

    .cdn-case-title,
    .mw-parser-output .cdn-case-title,
    .mw-parser-output .cdn-case-title a,
    .mw-parser-output .cdn-case-title a:visited {
        font-size: 1.4rem;
    }

    .cdn-case-grid {
        border-spacing: 0 12px;
    }

    .mw-parser-output .cdn-case-grid td {
        display: block;
        width: 100% !important;
        padding: 0 0 12px 0;
    }
}

/* MediaWiki-safe clickable card */
.cdn-case-card {
    position: relative;
    background: linear-gradient(180deg, #332922 0%, #211914 100%);
    border: 2px solid var(--cdn-brass);
    border-radius: 10px;
    padding: 14px 18px;
    text-align: center;
    min-height: 110px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
    overflow: hidden;
}

.cdn-case-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 10px 22px rgba(0, 0, 0, 0.34);
    border-color: var(--cdn-brass-soft);
}

.cdn-case-card-title {
    display: block;
    color: var(--cdn-cream);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.cdn-case-card-number {
    display: block;
    color: #ead7be;
    font-size: 1rem;
    margin: 0.35rem 0 0.75rem;
    position: relative;
    z-index: 2;
}

.cdn-case-arc {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.28rem 0.85rem;
    border: 1px solid var(--cdn-brass);
    border-radius: 999px;
    background: rgba(141, 107, 79, 0.12);
    color: #d8b790;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.cdn-case-arc.arc-royal {
    border-color: #b88a63;
    color: #f0c9a3;
    background: rgba(184, 138, 99, 0.12);
}

.cdn-case-arc.arc-fate {
    border-color: #8ea7c9;
    color: #d8e5ff;
    background: rgba(142, 167, 201, 0.12);
}

.cdn-case-arc.arc-testament {
    border-color: #7aa388;
    color: #d7f0dc;
    background: rgba(122, 163, 136, 0.12);
}

.cdn-case-arc.arc-encore {
    border-color: #c5a35a;
    color: #ffe9b0;
    background: rgba(197, 163, 90, 0.12);
}

.cdn-case-arc.arc-side {
    border-color: #9f8db8;
    color: #e6dcff;
    background: rgba(159, 141, 184, 0.12);
}

.cdn-case-arc.arc-main {
    border-color: #b76f6f;
    color: #ffd9d9;
    background: rgba(183, 111, 111, 0.12);
}

.cdn-card-stretchlink {
    position: absolute;
    inset: 0;
    z-index: 1; /* LOWER than content */
}

.cdn-case-card > *:not(.cdn-card-stretchlink) {
    position: relative;
    z-index: 2;
}

.cdn-card-stretchlink a,
.cdn-card-stretchlink a:visited {
    display: block;
    width: 100%;
    height: 100%;

    /* FULL RESET */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
    color: transparent !important;
}

.cdn-case-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05) inset,
        0 14px 30px rgba(0, 0, 0, 0.45);
    border-color: var(--cdn-brass-soft);
}

/* kill parser-added white blocks inside cards */
.cdn-case-card p,
.mw-parser-output .cdn-case-card p {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* keep every child inside the card transparent unless explicitly styled */
.cdn-case-card div,
.cdn-case-card span,
.cdn-case-card a,
.mw-parser-output .cdn-case-card div,
.mw-parser-output .cdn-case-card span,
.mw-parser-output .cdn-case-card a {
    background: transparent !important;
}

/* stretch link must stay invisible */
.cdn-card-stretchlink,
.cdn-card-stretchlink a,
.cdn-card-stretchlink a:visited,
.mw-parser-output .cdn-card-stretchlink,
.mw-parser-output .cdn-card-stretchlink a,
.mw-parser-output .cdn-card-stretchlink a:visited {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: transparent !important;
}

/* badge should sit cleanly on its own */
.cdn-case-arc,
.mw-parser-output .cdn-case-arc {
    position: relative;
    z-index: 2;
    background-clip: padding-box;
}