Template:Pepe/styles.css
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
/* Main wrapper container */
.pepe-wrapper {
position: relative;
display: flex;
align-items: stretch;
justify-content: space-between;
margin: 0.5em auto;
max-width: 850px;
min-height: 150px;
border: 5px solid #417a05;
text-shadow: 0px 0px 40px #00fe20, 0px 0px 2px #00fe20;
overflow: hidden; /* Clips the character images cleanly to the border */
}
/* Neutralize MediaWiki's automatic paragraph and break tags */
.pepe-wrapper p { display: contents; margin: 0; }
.pepe-wrapper br { display: none; }
/*
==========================================
LEFT SIDE (Overlapping Characters)
==========================================
*/
.pepe-left {
position: relative;
width: 130px;
flex-shrink: 0;
z-index: 5;
}
/* Strip MediaWiki's default image borders and padding */
.pepe-left a.image,
.pepe-right a.image {
border: none;
background: transparent;
display: block;
line-height: 0;
}
/* Position the body exactly at the cut bottom-left corner */
.pepe-body {
position: absolute;
bottom: 0;
left: 0;
z-index: 10;
}
/* Position the hand on top of the body (ready for future animations!) */
.pepe-hand {
position: absolute;
bottom: 0;
left: 0;
z-index: 15;
transform-origin: bottom left;
/* I've added a transition so when you animate it later, it moves smoothly */
transition: transform 0.2s ease-in-out;
}
/*
==========================================
CENTER CONTENT
==========================================
*/
.pepe-center {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 15px 10px;
z-index: 5;
}
.pepe-title {
color: #6666cc;
font-size: 1.44em;
font-weight: bold;
margin-bottom: 5px;
}
.pepe-title a { color: #ffffff !important; }
.pepe-subtitle {
color: #ffa500;
font-size: 1.2em;
font-weight: bold;
margin-bottom: 8px;
}
.pepe-audio { margin-bottom: 8px; }
.pepe-redtext-container {
margin-top: 5px;
}
/*
==========================================
RIGHT SIDE (Spinning CD)
==========================================
*/
.pepe-right {
display: flex;
align-items: center;
justify-content: center;
width: 130px;
padding: 10px;
flex-shrink: 0;
z-index: 5;
}
/* Mobile adjustments */
@media (max-width: 650px) {
.pepe-wrapper { min-height: 120px; }
.pepe-left { width: 100px; }
.pepe-right { width: 100px; }
.pepe-left img { max-width: 100px; height: auto; }
.pepe-right img { max-width: 90px; height: auto; }
.pepe-title { font-size: 1.2em; }
.pepe-subtitle { font-size: 1.1em; }
}