MediaWiki:Common.css: Difference between revisions

From PsychoactiveWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* Psychedelic Background Base */
/******************************
body {
* Psychedelic Prog Background
  background: radial-gradient(circle at center, #ff00cc, #3333ff);
******************************/
  animation: hueShift 60s infinite linear;
 
  overflow-x: hidden;
/* Base CSS variables for the dynamic background. JS will override these. */
  background-attachment: fixed;
:root {
  background-size: 400% 400%;
    --psy-color-1: #ff7a18; /* warm orange */
  transition: background 1s ease-in-out;
    --psy-color-2: #af002d; /* deep crimson */
    --psy-color-3: #00e6ff; /* electric cyan */
    --psy-color-4: #7cff6b; /* neon green */
    --psy-grid-color: rgba(255, 255, 255, 0.06);
}
}


/* Dynamic swirl overlay via pseudo element */
/* Turn on this class from Common.js */
body::before {
body.psychedelic-wiki {
  content: "";
    background: #040010;
  position: fixed;
    color: #f5f5f5;
  top: 0; left: 0;
    overflow-x: hidden;
  width: 100%; height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><filter id="swirl"><feTurbulence type="turbulence" baseFrequency="0.01 0.02" numOctaves="2" result="turbulence"/><feDisplacementMap in2="turbulence" in="SourceGraphic" scale="30" xChannelSelector="R" yChannelSelector="G"/></filter><rect width="100%" height="100%" filter="url(%23swirl)" fill="transparent"/></svg>') no-repeat center center;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: lighten;
  opacity: 0.15;
}
}


/* Keyframe for shifting hue */
/* Main content card slightly translucent so the background shows through */
@keyframes hueShift {
body.psychedelic-wiki #content,
  0% {
body.psychedelic-wiki .mw-body {
     filter: hue-rotate(0deg);
     background: rgba(3, 3, 16, 0.9);
  }
    border-radius: 12px;
  100% {
     box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
     filter: hue-rotate(360deg);
  }
}
}


/* Optional star-like shimmer dots */
/* Lava-lamp blobs & nebulas */
body::after {
body.psychedelic-wiki::before {
  content: "";
    content: "";
  position: fixed;
    position: fixed;
  width: 100%;
    inset: -20vh;
  height: 100%;
    z-index: -2;
  background: repeating-radial-gradient(circle, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 2px, transparent 100px);
    pointer-events: none;
  animation: shimmer 80s linear infinite;
 
  pointer-events: none;
    background:
  z-index: -1;
        radial-gradient(circle at 10% 0%, var(--psy-color-1) 0, transparent 55%),
        radial-gradient(circle at 85% 15%, var(--psy-color-2) 0, transparent 55%),
        radial-gradient(circle at 20% 85%, var(--psy-color-3) 0, transparent 55%),
        radial-gradient(circle at 80% 90%, var(--psy-color-4) 0, transparent 55%);
 
    opacity: 0.9;
    filter: blur(2px) saturate(1.3);
    mix-blend-mode: screen;
    animation: psy-clouds 60s ease-in-out infinite alternate;
}
}


/* Star shimmer motion */
/* Neon diagonal grid – subtle, like prog album art */
@keyframes shimmer {
body.psychedelic-wiki::after {
  0% {
    content: "";
     background-position: 0 0;
    position: fixed;
  }
    inset: -20vh;
  100% {
    z-index: -1;
     background-position: 1000px 1000px;
    pointer-events: none;
  }
 
     background-image:
        linear-gradient(120deg, var(--psy-grid-color) 1px, transparent 1px),
        linear-gradient(-120deg, var(--psy-grid-color) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.7;
     mix-blend-mode: soft-light;
    animation: psy-grid-drift 80s linear infinite;
}
}
/* When the background is toggled off */
body.psychedelic-wiki.psychedelic-wiki-off::before,
body.psychedelic-wiki.psychedelic-wiki-off::after {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}
/* Keyframes for slow motion “space clouds” */
@keyframes psy-clouds {
    0% {
        transform: translate3d(-2%, -2%, 0) scale(1.05);
        filter: blur(3px) hue-rotate(0deg);
    }
    50% {
        transform: translate3d(2%, 2%, 0) scale(1.1);
        filter: blur(2px) hue-rotate(40deg);
    }
    100% {
        transform: translate3d(-3%, 3%, 0) scale(1.08);
        filter: blur(3px) hue-rotate(80deg);
    }
}
/* Grid drifting sideways forev*

Revision as of 06:16, 26 November 2025

/******************************
 * Psychedelic Prog Background
 ******************************/

/* Base CSS variables for the dynamic background. JS will override these. */
:root {
    --psy-color-1: #ff7a18; /* warm orange */
    --psy-color-2: #af002d; /* deep crimson */
    --psy-color-3: #00e6ff; /* electric cyan */
    --psy-color-4: #7cff6b; /* neon green */
    --psy-grid-color: rgba(255, 255, 255, 0.06);
}

/* Turn on this class from Common.js */
body.psychedelic-wiki {
    background: #040010;
    color: #f5f5f5;
    overflow-x: hidden;
}

/* Main content card slightly translucent so the background shows through */
body.psychedelic-wiki #content,
body.psychedelic-wiki .mw-body {
    background: rgba(3, 3, 16, 0.9);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Lava-lamp blobs & nebulas */
body.psychedelic-wiki::before {
    content: "";
    position: fixed;
    inset: -20vh;
    z-index: -2;
    pointer-events: none;

    background:
        radial-gradient(circle at 10% 0%,  var(--psy-color-1) 0, transparent 55%),
        radial-gradient(circle at 85% 15%, var(--psy-color-2) 0, transparent 55%),
        radial-gradient(circle at 20% 85%, var(--psy-color-3) 0, transparent 55%),
        radial-gradient(circle at 80% 90%, var(--psy-color-4) 0, transparent 55%);

    opacity: 0.9;
    filter: blur(2px) saturate(1.3);
    mix-blend-mode: screen;
    animation: psy-clouds 60s ease-in-out infinite alternate;
}

/* Neon diagonal grid – subtle, like prog album art */
body.psychedelic-wiki::after {
    content: "";
    position: fixed;
    inset: -20vh;
    z-index: -1;
    pointer-events: none;

    background-image:
        linear-gradient(120deg, var(--psy-grid-color) 1px, transparent 1px),
        linear-gradient(-120deg, var(--psy-grid-color) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.7;
    mix-blend-mode: soft-light;
    animation: psy-grid-drift 80s linear infinite;
}

/* When the background is toggled off */
body.psychedelic-wiki.psychedelic-wiki-off::before,
body.psychedelic-wiki.psychedelic-wiki-off::after {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

/* Keyframes for slow motion “space clouds” */
@keyframes psy-clouds {
    0% {
        transform: translate3d(-2%, -2%, 0) scale(1.05);
        filter: blur(3px) hue-rotate(0deg);
    }
    50% {
        transform: translate3d(2%, 2%, 0) scale(1.1);
        filter: blur(2px) hue-rotate(40deg);
    }
    100% {
        transform: translate3d(-3%, 3%, 0) scale(1.08);
        filter: blur(3px) hue-rotate(80deg);
    }
}

/* Grid drifting sideways forev*