The Gold Network: Soyworld | SNCApedia | SoyPlace


If your contributions get rejected for no reason, please contact Editor.


I'm not dead, just inactive for the moment. Faggot (talk) 20:16, 9 April 2026 (UTC)

Template:MLG/styles.css: Difference between revisions

From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
Created page with "Table wrapper ensures perfect shrink-wrapping around the content: .mlg-aligner { display: table; margin: 10px auto; } Main Box Structure: .mlg-container { position: relative; background-color: #333333; border: 5px solid #fec837; Fallback border: Authentic static rainbow gradient border: border-image: linear-gradient(to bottom right, #b827fc 0%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%); border-image-slice: 1; padding: 15px 20px;..."
 
mNo edit summary
Line 1: Line 1:
/* Table wrapper ensures perfect shrink-wrapping around the content */
/* Table wrapper forces perfect shrink-wrapping */
.mlg-aligner {
.mlg-aligner {
display: table;
display: table;
margin: 10px auto;
margin: 20px auto; /* Increased margin slightly so particles don't clip into other text on the wiki */
}
}


Line 9: Line 9:
position: relative;
position: relative;
background-color: #333333;
background-color: #333333;
border: 5px solid #fec837; /* Fallback border */
border: 5px solid #fec837;  
/* Authentic static rainbow gradient border */
border-image: linear-gradient(to bottom right, #b827fc 0%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%);
border-image: linear-gradient(to bottom right, #b827fc 0%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%);
border-image-slice: 1;
border-image-slice: 1;
padding: 15px 20px;
padding: 15px 20px;
/* Impact font: The absolute standard for memes */
font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
color: #cccccc;
color: #cccccc;
text-transform: uppercase;
text-transform: uppercase;
transition: filter 0.2s;
transition: filter 0.2s;
/* Intentionally NOT overflow: hidden; so particles can escape the borders */
}
}


/* Flexbox Layout */
/* 1. Hover Background Image Layers */
.mlg-inner {
.mlg-bg-wrapper {
display: flex;
position: absolute;
flex-flow: row nowrap;
top: 0; left: 0; right: 0; bottom: 0;
align-items: center;
overflow: hidden; /* Clips the background image to the border exactly */
justify-content: center;
z-index: 0;
gap: 20px;
}
}


.mlg-content {
.mlg-bg {
text-align: center;
position: absolute;
top: -15%; left: -15%;
width: 130%; height: 130%;
opacity: 0;
transition: opacity 0.2s;
}
}


.mlg-img {
/* Force the MediaWiki image tag to fill the area */
flex: 0 0 auto;
.mlg-bg img {
width: 100%;
height: 100%;
object-fit: cover;
}
}


/* Text Formatting & Heavy Meme Stroke */
/* 2. Particles Container & Base Class */
.mlg-title {
.mlg-particles {
font-size: 2em;
position: absolute;
color: #ffffff;
top: 0; left: 0; width: 100%; height: 100%;
margin-bottom: 5px;
z-index: 1;
letter-spacing: 1px;
}
}


.mlg-subtitle {
.mlg-p {
font-size: 1.1em;
position: absolute;
color: #cccccc;
opacity: 0; /* Invisible by default */
margin-bottom: 10px;
}
}


.mlg-yellow {
/* 3. Main Content Wrapper */
color: #ffe43a;
.mlg-inner {
position: relative;
z-index: 2; /* Keeps text above background and particles */
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
gap: 20px;
}
}


/* Thick black outline mimicking -webkit-text-stroke safely */
.mlg-content { text-align: center; }
.mlg-img { flex: 0 0 auto; }
 
/* Text Formatting & Heavy Meme Stroke */
.mlg-title { font-size: 2em; color: #ffffff; margin-bottom: 5px; letter-spacing: 1px; }
.mlg-subtitle { font-size: 1.1em; color: #cccccc; margin-bottom: 10px; }
.mlg-yellow { color: #ffe43a; }
 
.mlg-stroke {
.mlg-stroke {
text-shadow:  
text-shadow:  
-2px -2px 0 #000,   
-2px -2px 0 #000,  2px -2px 0 #000,
2px -2px 0 #000,
-2px  2px 0 #000,  2px  2px 0 #000,
-2px  2px 0 #000,   
-3px  0  0 #000, 3px  0  0 #000,
2px  2px 0 #000,
0  -3px 0 #000, 0    3px 0 #000,
-3px  0  0 #000,
4px  4px 5px rgba(0,0,0,1);
3px  0  0 #000,
0  -3px 0 #000,
0    3px 0 #000,
4px  4px 5px rgba(0,0,0,0.8);
}
}


.mlg-audio {
.mlg-audio { display: flex; justify-content: center; }
display: flex;
 
justify-content: center;
}


/* =========================================
/* =========================================
   HOVER EFFECTS (THE FLASHY/CRAZY PART)
   HOVER TRIGGERS & ANIMATIONS
========================================= */
========================================= */


/* Triggers a violent shake and rapid color cycling on hover */
.mlg-container:hover {
.mlg-container:hover {
animation: mlg-shake 0.15s infinite, mlg-rainbow 0.6s infinite linear;
animation: mlg-shake 0.15s infinite, mlg-rainbow 0.6s infinite linear;
}
}
.mlg-container:hover .mlg-img { animation: mlg-bounce-img 0.2s infinite alternate; }


/* Makes images aggressively bounce/zoom on hover */
/* Trigger Background */
.mlg-container:hover .mlg-img {
.mlg-container:hover .mlg-bg {
animation: mlg-bounce 0.2s infinite alternate;
opacity: 1;
/* Distinct, more violent shake specifically for the background to create parallax */
animation: mlg-bg-shake 0.12s infinite alternate;
}
}


/* Rapidly rotates the hue, making the rainbow border and text colors flash */
/* Trigger Particles */
.mlg-container:hover .mlg-hit { animation: mlg-anim-hit linear infinite; }
.mlg-container:hover .mlg-weed { animation: mlg-anim-weed linear infinite; }
.mlg-container:hover .mlg-spin { animation: mlg-anim-spin linear infinite alternate; }
.mlg-container:hover .mlg-pulse { animation: mlg-anim-pulse linear infinite; }
.mlg-container:hover .mlg-bounce { animation: mlg-anim-bounce linear infinite alternate; }
 
/* Particle Positions (Staggered around the edges) */
.h1 { top: -5%; left: 10%; animation-duration: 1.2s; animation-delay: 0.1s; }
.h2 { top: 80%; left: 85%; animation-duration: 0.9s; animation-delay: 0.4s; }
.h3 { top: 40%; left: -8%; animation-duration: 1.4s; animation-delay: 0.2s; }
.h4 { top: 15%; left: 95%; animation-duration: 1.1s; animation-delay: 0.7s; }
.h5 { top: -10%; left: 70%; animation-duration: 1.5s; animation-delay: 0.5s; }
.h6 { top: 75%; left: 15%; animation-duration: 0.8s; animation-delay: 0.8s; }
.h7 { top: 50%; left: 50%; animation-duration: 1.3s; animation-delay: 0.3s; }
.h8 { top: -12%; left: -2%; animation-duration: 1.0s; animation-delay: 0.9s; }
 
.w1 { top: 80%; left: 5%; animation-duration: 3s; animation-delay: 0s; }
.w2 { top: 90%; left: 80%; animation-duration: 4s; animation-delay: 1.5s; }
.w3 { top: 85%; left: 45%; animation-duration: 3.5s; animation-delay: 0.7s; }
 
.s1 { top: -15%; left: 35%; animation-duration: 2.5s; animation-delay: 0s; }
.p1 { top: -8%; left: 85%; animation-duration: 1.5s; animation-delay: 0s; }
.s2 { top: 45%; left: -10%; animation-duration: 2s; animation-delay: 0.5s; }
.b1 { top: 85%; left: 90%; animation-duration: 0.5s; animation-delay: 0s; }
 
 
/* =========================================
  KEYFRAMES
========================================= */
 
@keyframes mlg-rainbow {
@keyframes mlg-rainbow {
0% { filter: hue-rotate(0deg) saturate(200%); }
0% { filter: hue-rotate(0deg) saturate(200%); }
Line 95: Line 138:
}
}


/* Pure MLG screen shake */
@keyframes mlg-shake {
@keyframes mlg-shake {
0% { transform: translate(2px, 1px) rotate(0deg); }
0% { transform: translate(2px, 1px) rotate(0deg); }
10% { transform: translate(-1px, -2px) rotate(-1deg); }
20% { transform: translate(-3px, 0px) rotate(1deg); }
20% { transform: translate(-3px, 0px) rotate(1deg); }
30% { transform: translate(0px, 2px) rotate(0deg); }
40% { transform: translate(1px, -1px) rotate(1deg); }
40% { transform: translate(1px, -1px) rotate(1deg); }
50% { transform: translate(-1px, 2px) rotate(-1deg); }
60% { transform: translate(-3px, 1px) rotate(0deg); }
60% { transform: translate(-3px, 1px) rotate(0deg); }
70% { transform: translate(2px, 1px) rotate(-1deg); }
80% { transform: translate(-1px, -1px) rotate(1deg); }
80% { transform: translate(-1px, -1px) rotate(1deg); }
90% { transform: translate(2px, 2px) rotate(0deg); }
100% { transform: translate(1px, -2px) rotate(-1deg); }
100% { transform: translate(1px, -2px) rotate(-1deg); }
}
}


/* Jittery image bouncing */
@keyframes mlg-bg-shake {
@keyframes mlg-bounce {
0% { transform: translate(-10px, -5px) scale(1.1); }
50% { transform: translate(10px, 15px) scale(1.15); }
100% { transform: translate(-5px, 10px) scale(1.1); }
}
 
@keyframes mlg-bounce-img {
0% { transform: scale(1) rotate(-5deg); }
0% { transform: scale(1) rotate(-5deg); }
100% { transform: scale(1.1) rotate(5deg); }
100% { transform: scale(1.1) rotate(5deg); }
}
/* Hitmarker: Pop fast, hold briefly, fade out slow */
@keyframes mlg-anim-hit {
0% { transform: scale(0); opacity: 1; }
10% { transform: scale(1.5); opacity: 1; }
20% { transform: scale(1); opacity: 1; }
50% { transform: scale(1); opacity: 0; }
100% { transform: scale(1); opacity: 0; }
}
/* Weed: Float up and sway */
@keyframes mlg-anim-weed {
0% { transform: translate(0, 0) rotate(-15deg); opacity: 0; }
20% { opacity: 1; }
80% { opacity: 1; }
100% { transform: translate(20px, -120px) rotate(15deg); opacity: 0; }
}
/* General Meme Debris Animations */
@keyframes mlg-anim-spin {
0% { transform: rotate(0deg) scale(0.8); opacity: 1; }
100% { transform: rotate(360deg) scale(1.2); opacity: 1; }
}
@keyframes mlg-anim-pulse {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.3); opacity: 1; }
100% { transform: scale(1); opacity: 1; }
}
@keyframes mlg-anim-bounce {
0% { transform: translateY(0); opacity: 1; }
100% { transform: translateY(-30px); opacity: 1; }
}
}

Revision as of 08:23, 23 April 2026

/* Table wrapper forces perfect shrink-wrapping */
.mlg-aligner {
	display: table;
	margin: 20px auto; /* Increased margin slightly so particles don't clip into other text on the wiki */
}

/* Main Box Structure */
.mlg-container {
	position: relative;
	background-color: #333333;
	border: 5px solid #fec837; 
	border-image: linear-gradient(to bottom right, #b827fc 0%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%);
	border-image-slice: 1;
	padding: 15px 20px;
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	color: #cccccc;
	text-transform: uppercase;
	transition: filter 0.2s;
	/* Intentionally NOT overflow: hidden; so particles can escape the borders */
}

/* 1. Hover Background Image Layers */
.mlg-bg-wrapper {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	overflow: hidden; /* Clips the background image to the border exactly */
	z-index: 0;
}

.mlg-bg {
	position: absolute;
	top: -15%; left: -15%; 
	width: 130%; height: 130%;
	opacity: 0;
	transition: opacity 0.2s;
}

/* Force the MediaWiki image tag to fill the area */
.mlg-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 2. Particles Container & Base Class */
.mlg-particles {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	z-index: 1;
}

.mlg-p {
	position: absolute;
	opacity: 0; /* Invisible by default */
}

/* 3. Main Content Wrapper */
.mlg-inner {
	position: relative;
	z-index: 2; /* Keeps text above background and particles */
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.mlg-content { text-align: center; }
.mlg-img { flex: 0 0 auto; }

/* Text Formatting & Heavy Meme Stroke */
.mlg-title { font-size: 2em; color: #ffffff; margin-bottom: 5px; letter-spacing: 1px; }
.mlg-subtitle { font-size: 1.1em; color: #cccccc; margin-bottom: 10px; }
.mlg-yellow { color: #ffe43a; }

.mlg-stroke {
	text-shadow: 
		-2px -2px 0 #000,  2px -2px 0 #000,
		-2px  2px 0 #000,  2px  2px 0 #000,
		-3px  0   0 #000,  3px  0   0 #000,
		 0   -3px 0 #000,  0    3px 0 #000,
		 4px  4px 5px rgba(0,0,0,1);
}

.mlg-audio { display: flex; justify-content: center; }


/* =========================================
   HOVER TRIGGERS & ANIMATIONS
========================================= */

.mlg-container:hover {
	animation: mlg-shake 0.15s infinite, mlg-rainbow 0.6s infinite linear;
}
.mlg-container:hover .mlg-img { animation: mlg-bounce-img 0.2s infinite alternate; }

/* Trigger Background */
.mlg-container:hover .mlg-bg {
	opacity: 1;
	/* Distinct, more violent shake specifically for the background to create parallax */
	animation: mlg-bg-shake 0.12s infinite alternate;
}

/* Trigger Particles */
.mlg-container:hover .mlg-hit { animation: mlg-anim-hit linear infinite; }
.mlg-container:hover .mlg-weed { animation: mlg-anim-weed linear infinite; }
.mlg-container:hover .mlg-spin { animation: mlg-anim-spin linear infinite alternate; }
.mlg-container:hover .mlg-pulse { animation: mlg-anim-pulse linear infinite; }
.mlg-container:hover .mlg-bounce { animation: mlg-anim-bounce linear infinite alternate; }

/* Particle Positions (Staggered around the edges) */
.h1 { top: -5%; left: 10%; animation-duration: 1.2s; animation-delay: 0.1s; }
.h2 { top: 80%; left: 85%; animation-duration: 0.9s; animation-delay: 0.4s; }
.h3 { top: 40%; left: -8%; animation-duration: 1.4s; animation-delay: 0.2s; }
.h4 { top: 15%; left: 95%; animation-duration: 1.1s; animation-delay: 0.7s; }
.h5 { top: -10%; left: 70%; animation-duration: 1.5s; animation-delay: 0.5s; }
.h6 { top: 75%; left: 15%; animation-duration: 0.8s; animation-delay: 0.8s; }
.h7 { top: 50%; left: 50%; animation-duration: 1.3s; animation-delay: 0.3s; }
.h8 { top: -12%; left: -2%; animation-duration: 1.0s; animation-delay: 0.9s; }

.w1 { top: 80%; left: 5%; animation-duration: 3s; animation-delay: 0s; }
.w2 { top: 90%; left: 80%; animation-duration: 4s; animation-delay: 1.5s; }
.w3 { top: 85%; left: 45%; animation-duration: 3.5s; animation-delay: 0.7s; }

.s1 { top: -15%; left: 35%; animation-duration: 2.5s; animation-delay: 0s; }
.p1 { top: -8%; left: 85%; animation-duration: 1.5s; animation-delay: 0s; }
.s2 { top: 45%; left: -10%; animation-duration: 2s; animation-delay: 0.5s; }
.b1 { top: 85%; left: 90%; animation-duration: 0.5s; animation-delay: 0s; }


/* =========================================
   KEYFRAMES
========================================= */

@keyframes mlg-rainbow {
	0% { filter: hue-rotate(0deg) saturate(200%); }
	100% { filter: hue-rotate(360deg) saturate(200%); }
}

@keyframes mlg-shake {
	0% { transform: translate(2px, 1px) rotate(0deg); }
	20% { transform: translate(-3px, 0px) rotate(1deg); }
	40% { transform: translate(1px, -1px) rotate(1deg); }
	60% { transform: translate(-3px, 1px) rotate(0deg); }
	80% { transform: translate(-1px, -1px) rotate(1deg); }
	100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes mlg-bg-shake {
	0% { transform: translate(-10px, -5px) scale(1.1); }
	50% { transform: translate(10px, 15px) scale(1.15); }
	100% { transform: translate(-5px, 10px) scale(1.1); }
}

@keyframes mlg-bounce-img {
	0% { transform: scale(1) rotate(-5deg); }
	100% { transform: scale(1.1) rotate(5deg); }
}

/* Hitmarker: Pop fast, hold briefly, fade out slow */
@keyframes mlg-anim-hit {
	0% { transform: scale(0); opacity: 1; }
	10% { transform: scale(1.5); opacity: 1; }
	20% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1); opacity: 0; }
	100% { transform: scale(1); opacity: 0; }
}

/* Weed: Float up and sway */
@keyframes mlg-anim-weed {
	0% { transform: translate(0, 0) rotate(-15deg); opacity: 0; }
	20% { opacity: 1; }
	80% { opacity: 1; }
	100% { transform: translate(20px, -120px) rotate(15deg); opacity: 0; }
}

/* General Meme Debris Animations */
@keyframes mlg-anim-spin {
	0% { transform: rotate(0deg) scale(0.8); opacity: 1; }
	100% { transform: rotate(360deg) scale(1.2); opacity: 1; }
}

@keyframes mlg-anim-pulse {
	0% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.3); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}

@keyframes mlg-anim-bounce {
	0% { transform: translateY(0); opacity: 1; }
	100% { transform: translateY(-30px); opacity: 1; }
}