MediaWiki:Vector.css: Difference between revisions

From aurawatch
Jump to navigation Jump to search
No edit summary
No edit summary
Line 333: Line 333:




/* Modern gradient section headers for MediaWiki */
/* ===== Fancy section headings ===== */
 
:root {
/* Main section headers (h2) */
  --heading-bg-1: rgba(30, 30, 35, 0.75);
.mw-parser-output h2 {
  --heading-bg-2: rgba(15, 15, 20, 0.55);
    position: relative;
  --heading-accent: #5ad;           /* tweak to fit your palette */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --heading-text: #e7e7e7;
    color: white;
  --heading-shadow: rgba(0,0,0,.45);
    padding: 15px 20px;
  --heading-border: rgba(255,255,255,.08);
    margin: 30px 0 20px 0;
    border-radius: 8px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    overflow: hidden;
}
}


/* Subtle animated gradient background */
/* Scope to article content so nav/sidebar isn’t affected */
.mw-parser-output h2::before {
.mw-parser-output h2,
    content: '';
.mw-parser-output h3 {
    position: absolute;
  position: relative;
    top: 0;
  margin: 1.75rem 0 1rem;
    left: -100%;
  padding: .9rem 1.1rem .9rem 1.1rem;
    width: 100%;
  border-radius: 14px;
    height: 100%;
  color: var(--heading-text);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  background: linear-gradient(135deg, var(--heading-bg-1), var(--heading-bg-2));
    transition: left 0.5s;
  border: 1px solid var(--heading-border);
  box-shadow:
    0 6px 18px var(--heading-shadow),
    inset 3px 0 0 var(--heading-accent); /* left accent bar */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari */
}
}


.mw-parser-output h2:hover::before {
/* Slightly smaller subheadings */
     left: 100%;
.mw-parser-output h3 {
  padding: .7rem 1rem .7rem 1rem;
  border-radius: 12px;
  box-shadow:
     0 4px 14px var(--heading-shadow),
    inset 2px 0 0 var(--heading-accent);
  font-weight: 600;
}
}


/* Edit links styling */
/* Keep the actual headline text tidy */
.mw-parser-output h2 .mw-editsection {
.mw-parser-output h2 .mw-headline,
    float: right;
.mw-parser-output h3 .mw-headline {
    margin-left: 10px;
  text-decoration: none;
}
}


.mw-parser-output h2 .mw-editsection a {
/* Show the section edit link on hover only (cleaner look) */
    color: rgba(255,255,255,0.8);
.mw-parser-output h2 .mw-editsection,
    text-decoration: none;
.mw-parser-output h3 .mw-editsection {
    font-size: 0.8em;
  opacity: 0;
    padding: 3px 8px;
  transition: opacity .15s ease-in-out;
    border-radius: 4px;
    transition: all 0.3s ease;
}
}
 
.mw-parser-output h2:hover .mw-editsection,
.mw-parser-output h2 .mw-editsection a:hover {
.mw-parser-output h3:hover .mw-editsection {
    background: rgba(255,255,255,0.2);
  opacity: 1;
    color: white;
}
 
/* Alternative: Gaming-themed dark style */
.mw-parser-output h2.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-left: 4px solid #00d4ff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}
 
/* Alternative: Neon glow effect */
.mw-parser-output h2.neon-glow {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    border: 1px solid #00ff88;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.3),
        inset 0 0 20px rgba(0, 255, 136, 0.1);
}
 
/* Subsection headers (h3) */
.mw-parser-output h3 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 10px 15px;
    margin: 20px 0 15px 0;
    border-radius: 6px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 10px rgba(240, 147, 251, 0.25);
}
 
/* Server-specific theme example */
.mw-parser-output h2.server-rules {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}
}


.mw-parser-output h2.gamemodes {
/* Optional: add a subtle hash before the headline for anchor vibes */
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
.mw-parser-output h2 .mw-headline::before,
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
.mw-parser-output h3 .mw-headline::before {
  content: "#";
  margin-right: .5rem;
  opacity: .35;
  font-weight: 700;
}
}


/* Responsive design */
/* Don’t let the TOC or headings collide with sticky headers */
@media (max-width: 768px) {
:target {
    .mw-parser-output h2 {
  scroll-margin-top: 72px; /* adjust if you use a sticky top bar */
        padding: 12px 15px;
        font-size: 1.3em;
    }
   
    .mw-parser-output h3 {
        padding: 8px 12px;
        font-size: 1.1em;
    }
}
}

Revision as of 16:48, 18 September 2025

div.vectorTabs ul li#ca-history {
    display: none;
}
.vector-menu-tabs-legacy li {
    background-color: transparent !important;
    color: #72777d;
    cursor: pointer;
}
.new.mw-list-item {
    background-color: transparent !important;
}
.new.mw-list-item a {
    background-color: transparent !important;
    color: #72777d;
    cursor: pointer;
    font-size: 0.8em;
}
.ca-talk {
    background-color: transparent !important;
    color: #72777d;
    cursor: pointer;
    font-size: 0.8em;
}
.vector-menu-portal .vector-menu-content li a,
.vector-menu-portal .vector-menu-content li a:visited {
    color: #72777d;
}
/* Additional rules to ensure transparency */
.vector-menu-tabs,
.vector-menu-tabs ul,
.vector-menu-tabs li,
.vector-menu-tabs a,
.vector-menu-tabs-legacy,
.vector-menu-tabs-legacy ul,
.vector-menu-tabs-legacy li,
.vector-menu-tabs-legacy a,
#p-namespaces,
#p-namespaces li,
#p-namespaces a,
#ca-nstab-main,
#ca-talk,
.vector-tab-noicon,
.mw-list-item-js {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
}


.vector-menu-portal,
#mw-panel,
.vector-menu-portal .vector-menu-content {
    background-color: #202020 !important;
}

.vector-menu-portal .vector-menu-heading {
    color: #cccccc;  /* Light gray for headers */
}

/* For the links */
.vector-menu-portal .vector-menu-content a {
    color: #3366bb;  /* Blue color for links */
}

/* Remove any borders that might be present */
.vector-menu-portal {
    border: none !important;
}


body {
    background-image: url('https://i.imgur.com/9GQ16Re.png') !important;
    background-color: rgba(0, 0, 0, 0.6) !important; /* Semi-transparent black */
    background-blend-mode: overlay !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-size: cover !important;
}


#ca-view a, #ca-edit a, #ca-history a {
  color: inherit !important;
  background-color: transparent !important;
}










/* =========================================================

/* =========================================================
   HL2 dark thumbnails — Complete solution for all MediaWiki thumbnail types
   - Handles both figure and div.thumb containers
   - Outer frame wraps image + caption 
   - Thin inner line on the image
   - Dark caption styling
   Colors: outer bg #2f2f2f, outer border #444, inner #6a6a6a, caption #c0c0c0
========================================================= */

/* ---------- PARSOID / VE (figure markup) ---------- */
/* (A) Outer frame on figure containers - FORCE proper wrapping */
.mw-parser-output figure[typeof*="mw:File/Thumb"],
.mw-parser-output figure[typeof*="mw:Image/Thumb"],
.mw-parser-output figure[typeof*="mw:File/Frame"],
.mw-parser-output figure[typeof*="mw:Image/Frame"] {
    background-color: #2f2f2f !important;
    border: 1px solid #444 !important;
    padding: 3px !important;
    box-shadow: none !important;
    display: block !important;
    overflow: hidden !important; /* Force container to wrap content */
    width: auto !important; /* Let it size to content */
    box-sizing: border-box !important;
}

/* (B) Remove border from link wrapper in figures */
.mw-parser-output figure[typeof*="mw:"] > a.mw-file-description,
.mw-parser-output figure[typeof*="mw:"] > span:first-child > a.mw-file-description {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* (C) Thin inner line on images in figures */
.mw-parser-output figure[typeof*="mw:"] img.mw-file-element {
    border: 1px solid #6a6a6a !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ---------- LEGACY / CLASSIC (div.thumb markup) ---------- */
/* (D) Outer frame on div.thumb containers - FORCE proper wrapping */
.mw-parser-output div.thumb,
.mw-parser-output .thumb {
    background-color: #2f2f2f !important;
    border: 1px solid #444 !important;
    padding: 3px !important;
    box-shadow: none !important;
    display: block !important;
    overflow: hidden !important; /* Force container to wrap content */
    width: auto !important; /* Let it size to content */
    box-sizing: border-box !important;
}

/* (E) Remove border from thumbinner */
.mw-parser-output .thumbinner {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* (F) Thin inner line on images in div.thumb */
.mw-parser-output .thumbimage {
    border: 1px solid #6a6a6a !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ---------- CAPTION STYLING (both types) ---------- */
.mw-parser-output figure figcaption {
    background-color: #2f2f2f !important;
    color: #c0c0c0 !important;
    border: 0 !important;
    padding: 4px 2px 2px 2px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* (H) Dark caption styling for div.thumb - prevent overflow */
.mw-parser-output .thumbcaption {
    background-color: #2f2f2f !important;
    color: #c0c0c0 !important;
    border: 0 !important;
    padding: 4px 2px 2px 2px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* ---------- HIDE CAPTION ICONS ---------- */
.mw-parser-output .magnify,
.mw-parser-output .metadata,
.mw-parser-output .magnify a,
.mw-parser-output .magnify img,
.mw-parser-output .thumbcaption .magnify,
.mw-parser-output figcaption .magnify,
.mw-parser-output .mw-file-description + .magnify,
.mw-parser-output .thumbinner .magnify,
.mw-parser-output [class*="magnify"],
.mw-parser-output .thumb .internal,
.mw-parser-output .thumbcaption .internal,
.mw-parser-output .enlarge,
.mw-parser-output .mw-file-info {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* (J) Hide pseudo-element icons on file description links */
.mw-parser-output a.mw-file-description::after,
.mw-parser-output a.mw-file-description::before,
.mw-parser-output .mw-file-description::after,
.mw-parser-output .mw-file-description::before {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}
/* ============================================================ */




















/* Sidebar (left) navigation link colors — Vector (new) + Vector legacy */

/* normal state */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a,
.skin-vector-legacy #mw-panel .portal .body li a {
  color: #8BB9E0 !important;       /* light blue */
  background: transparent !important;
  text-decoration: none !important;
}

/* visited */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:visited,
.skin-vector-legacy #mw-panel .portal .body li a:visited {
  color: #74A8D4 !important;       /* keep blue, not purple */
}

/* hover & focus */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:hover,
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:focus,
.skin-vector-legacy #mw-panel .portal .body li a:hover,
.skin-vector-legacy #mw-panel .portal .body li a:focus {
  color: #BFD9F2 !important;       /* brighter on hover */
  text-decoration: underline !important;
}

/* active (mouse down) */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:active,
.skin-vector-legacy #mw-panel .portal .body li a:active {
  color: #E6F2FF !important;
}

.mw-body, .mw-body-content, .mw-parser-output {
  font-size: 16px !important;      /* was ~14–15px */
  line-height: 1.6 !important;
}

/* Sidebar / left nav */
#mw-panel,
#mw-panel .vector-menu-portal .vector-menu-content {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* TOC, captions, small UI text */
.toc, .thumbcaption, .catlinks,
.mw-ui-message, .mw-message-box {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* Code blocks / preformatted */
pre, code, kbd, samp, .mw-code {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* Tabs (Read / View source / History) & top menus */
#mw-head .vectorTabs li a,
.vector-menu-tabs a,
.vector-menu-tabs-legacy a {
  font-size: 15px !important;
}

/* Make sure headings scale nicely (relative to new base) */
.mw-body h1 { font-size: 2.0em !important; }
.mw-body h2 { font-size: 1.6em !important; }
.mw-body h3 { font-size: 1.35em !important; }
.mw-body h4 { font-size: 1.15em !important; }

/* Optional: slightly smaller on narrow screens */
@media (max-width: 768px) {
  .mw-body, .mw-body-content, .mw-parser-output { font-size: 16px !important; }
}

















/* ===== Fancy section headings ===== */
:root {
  --heading-bg-1: rgba(30, 30, 35, 0.75);
  --heading-bg-2: rgba(15, 15, 20, 0.55);
  --heading-accent: #5ad;            /* tweak to fit your palette */
  --heading-text: #e7e7e7;
  --heading-shadow: rgba(0,0,0,.45);
  --heading-border: rgba(255,255,255,.08);
}

/* Scope to article content so nav/sidebar isn’t affected */
.mw-parser-output h2,
.mw-parser-output h3 {
  position: relative;
  margin: 1.75rem 0 1rem;
  padding: .9rem 1.1rem .9rem 1.1rem;
  border-radius: 14px;
  color: var(--heading-text);
  background: linear-gradient(135deg, var(--heading-bg-1), var(--heading-bg-2));
  border: 1px solid var(--heading-border);
  box-shadow:
    0 6px 18px var(--heading-shadow),
    inset 3px 0 0 var(--heading-accent); /* left accent bar */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari */
}

/* Slightly smaller subheadings */
.mw-parser-output h3 {
  padding: .7rem 1rem .7rem 1rem;
  border-radius: 12px;
  box-shadow:
    0 4px 14px var(--heading-shadow),
    inset 2px 0 0 var(--heading-accent);
  font-weight: 600;
}

/* Keep the actual headline text tidy */
.mw-parser-output h2 .mw-headline,
.mw-parser-output h3 .mw-headline {
  text-decoration: none;
}

/* Show the section edit link on hover only (cleaner look) */
.mw-parser-output h2 .mw-editsection,
.mw-parser-output h3 .mw-editsection {
  opacity: 0;
  transition: opacity .15s ease-in-out;
}
.mw-parser-output h2:hover .mw-editsection,
.mw-parser-output h3:hover .mw-editsection {
  opacity: 1;
}

/* Optional: add a subtle hash before the headline for anchor vibes */
.mw-parser-output h2 .mw-headline::before,
.mw-parser-output h3 .mw-headline::before {
  content: "#";
  margin-right: .5rem;
  opacity: .35;
  font-weight: 700;
}

/* Don’t let the TOC or headings collide with sticky headers */
:target {
  scroll-margin-top: 72px; /* adjust if you use a sticky top bar */
}