Template:Pepe/styles.css: Difference between revisions
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
SomebodyRum (talk | contribs) mNo edit summary |
SomebodyRum (talk | contribs) mNo edit summary |
||
| Line 3: | Line 3: | ||
position: relative; | position: relative; | ||
display: flex; | display: flex; | ||
align-items: | align-items: center; /* Centers everything vertically, prevents vertical stretching */ | ||
justify-content: space-between; | justify-content: space-between; | ||
margin: 0.5em auto; | margin: 0.5em auto; | ||
max-width: 800px; | max-width: 800px; | ||
border: 5px solid #417a05; | border: 5px solid #417a05; | ||
background: linear-gradient(#8DB255, #5B8930); | background: linear-gradient(#8DB255, #5B8930); | ||
text-shadow: 0px 0px 40px #00fe20, 0px 0px 2px #00fe20; | text-shadow: 0px 0px 40px #00fe20, 0px 0px 2px #00fe20; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
| Line 20: | Line 19: | ||
/* | /* | ||
========================================== | ========================================== | ||
THE MOSAIC BACKGROUND | THE MOSAIC BACKGROUND (Single Centered Row) | ||
========================================== | ========================================== | ||
*/ | */ | ||
| Line 27: | Line 26: | ||
top: 0; left: 0; right: 0; bottom: 0; | top: 0; left: 0; right: 0; bottom: 0; | ||
display: flex; | display: flex; | ||
flex-wrap: | flex-wrap: nowrap; /* Forces a single line */ | ||
align-items: center; /* Vertically centers the GIFs */ | |||
justify-content: center; /* Horizontally centers the row */ | |||
opacity: 0.15; | |||
z-index: 1; | z-index: 1; | ||
} | } | ||
| Line 46: | Line 46: | ||
.pepe-left { | .pepe-left { | ||
position: relative; | position: relative; | ||
width: | width: 100px; | ||
height: 100px; /* Keeps the container tight */ | |||
flex-shrink: 0; | flex-shrink: 0; | ||
z-index: 5; | z-index: 5; | ||
| Line 59: | Line 60: | ||
} | } | ||
.pepe-body { | .pepe-body { | ||
position: absolute; | position: absolute; | ||
| Line 67: | Line 67: | ||
} | } | ||
/* Hand positioned with your | /* Hand positioned with your offsets */ | ||
.pepe-hand { | .pepe-hand { | ||
position: absolute; | position: absolute; | ||
bottom: - | bottom: -15px; | ||
left: - | left: -15px; | ||
z-index: 15; | z-index: 15; | ||
transform-origin: bottom left; | transform-origin: bottom left; | ||
| Line 79: | Line 79: | ||
/* | /* | ||
========================================== | ========================================== | ||
CENTER CONTENT | CENTER CONTENT (Tightened up) | ||
========================================== | ========================================== | ||
*/ | */ | ||
| Line 90: | Line 90: | ||
align-items: center; | align-items: center; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 5px; /* Extremely tight padding to shrink template height */ | ||
z-index: 5; | z-index: 5; | ||
line-height: 1.1; /* Reduces dead space between lines of text */ | |||
} | } | ||
.pepe-title { | .pepe-title { | ||
color: #6666cc; | color: #6666cc; | ||
font-size: 1. | font-size: 1.3em; | ||
font-weight: bold; | font-weight: bold; | ||
margin-bottom: 2px; | margin-bottom: 2px; | ||
| Line 104: | Line 105: | ||
.pepe-subtitle { | .pepe-subtitle { | ||
color: #ffa500; | color: #ffa500; | ||
font-size: 1. | font-size: 1.15em; | ||
font-weight: bold; | font-weight: bold; | ||
margin-bottom: | margin-bottom: 4px; | ||
} | } | ||
.pepe-audio { margin-bottom: | .pepe-audio { margin-bottom: 4px; } | ||
/* | /* | ||
| Line 121: | Line 122: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: | width: 100px; | ||
padding: | padding: 5px; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
z-index: 5; | z-index: 5; | ||
| Line 129: | Line 130: | ||
/* Mobile adjustments */ | /* Mobile adjustments */ | ||
@media (max-width: 650px) { | @media (max-width: 650px) { | ||
.pepe-left { width: | .pepe-left { width: 80px; height: 80px; } | ||
.pepe-right { width: | .pepe-right { width: 80px; } | ||
.pepe-left img { max-width: | .pepe-left img { max-width: 80px; height: auto; } | ||
.pepe-right img { max-width: 80px; height: auto; } | .pepe-right img { max-width: 80px; height: auto; } | ||
.pepe-title { font-size: 1. | .pepe-title { font-size: 1.1em; } | ||
.pepe-subtitle { font-size: | .pepe-subtitle { font-size: 1em; } | ||
.pepe-bg-mosaic a.image { width: 50px; } | |||
} | } | ||
Revision as of 14:58, 23 April 2026
/* Main wrapper container */
.pepe-wrapper {
position: relative;
display: flex;
align-items: center; /* Centers everything vertically, prevents vertical stretching */
justify-content: space-between;
margin: 0.5em auto;
max-width: 800px;
border: 5px solid #417a05;
background: linear-gradient(#8DB255, #5B8930);
text-shadow: 0px 0px 40px #00fe20, 0px 0px 2px #00fe20;
overflow: hidden;
}
/* Neutralize MediaWiki's automatic paragraph and break tags */
.pepe-wrapper p { display: contents; margin: 0; }
.pepe-wrapper br { display: none; }
/*
==========================================
THE MOSAIC BACKGROUND (Single Centered Row)
==========================================
*/
.pepe-bg-mosaic {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
display: flex;
flex-wrap: nowrap; /* Forces a single line */
align-items: center; /* Vertically centers the GIFs */
justify-content: center; /* Horizontally centers the row */
opacity: 0.15;
z-index: 1;
}
.pepe-bg-mosaic a.image {
margin: 0; padding: 0; border: none; background: transparent;
display: block; line-height: 0;
}
/*
==========================================
LEFT SIDE (Overlapping Characters)
==========================================
*/
.pepe-left {
position: relative;
width: 100px;
height: 100px; /* Keeps the container tight */
flex-shrink: 0;
z-index: 5;
}
.pepe-left a.image,
.pepe-right a.image {
border: none;
background: transparent;
display: block;
line-height: 0;
}
.pepe-body {
position: absolute;
bottom: 0;
left: 0;
z-index: 10;
}
/* Hand positioned with your offsets */
.pepe-hand {
position: absolute;
bottom: -15px;
left: -15px;
z-index: 15;
transform-origin: bottom left;
transition: transform 0.2s ease-in-out;
}
/*
==========================================
CENTER CONTENT (Tightened up)
==========================================
*/
.pepe-center {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 5px; /* Extremely tight padding to shrink template height */
z-index: 5;
line-height: 1.1; /* Reduces dead space between lines of text */
}
.pepe-title {
color: #6666cc;
font-size: 1.3em;
font-weight: bold;
margin-bottom: 2px;
}
.pepe-title a { color: #ffffff !important; }
.pepe-subtitle {
color: #ffa500;
font-size: 1.15em;
font-weight: bold;
margin-bottom: 4px;
}
.pepe-audio { margin-bottom: 4px; }
/*
==========================================
RIGHT SIDE (Spinning CD)
==========================================
*/
.pepe-right {
display: flex;
align-items: center;
justify-content: center;
width: 100px;
padding: 5px;
flex-shrink: 0;
z-index: 5;
}
/* Mobile adjustments */
@media (max-width: 650px) {
.pepe-left { width: 80px; height: 80px; }
.pepe-right { width: 80px; }
.pepe-left img { max-width: 80px; height: auto; }
.pepe-right img { max-width: 80px; height: auto; }
.pepe-title { font-size: 1.1em; }
.pepe-subtitle { font-size: 1em; }
.pepe-bg-mosaic a.image { width: 50px; }
}