Template:Pepe/styles.css
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
/* Outer container forces the entire template to shrink-wrap (no extra width) */
.pepe-outer {
display: table;
margin: 0.5em auto;
}
/* Main wrapper container */
.pepe-wrapper {
position: relative;
display: flex;
align-items: stretch;
justify-content: space-between;
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, .pepe-outer p { display: contents; margin: 0; }
.pepe-wrapper br, .pepe-outer br { display: none; }
/*
==========================================
KEK TEXT BACKGROUND (Border Color, Transparent)
==========================================
*/
.pepe-bg-kek {
position: absolute;
top: -50px; left: -50px; right: -50px; bottom: -50px;
z-index: 1;
/* Matches the #417a05 border at 30% opacity */
color: rgba(65, 122, 5, 0.3);
font-family: Arial, sans-serif;
font-size: 28px;
font-weight: 900;
line-height: 0.8;
text-transform: uppercase;
text-align: center;
word-wrap: break-word;
}
/*
==========================================
LEFT SIDE (Pepe)
==========================================
*/
.pepe-left {
position: relative;
width: 110px;
height: 110px;
align-self: flex-end;
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;
}
/*
==========================================
THE ANIMATED HAND
==========================================
*/
.pepe-hand-container {
position: absolute;
bottom: -20px;
left: -20px;
z-index: 15;
cursor: pointer;
outline: none;
}
/* Controls the infinite swaying */
.pepe-hand-swing {
transform-origin: bottom left;
animation: pepe-swing 2.5s ease-in-out infinite alternate;
}
@keyframes pepe-swing {
0% { transform: rotate(-2deg); }
100% { transform: rotate(7deg); }
}
/* Controls the bouncy click scale */
.pepe-hand-scale {
transform-origin: bottom left;
transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* When clicked, scales up and rotates forward instantly */
.pepe-hand-container:active .pepe-hand-scale {
transform: scale(1.3) rotate(15deg) translate(5px, -5px);
transition: transform 0.05s linear;
}
/*
==========================================
CENTER CONTENT
==========================================
*/
.pepe-center {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 10px 15px;
z-index: 5;
line-height: 1.2;
}
.pepe-title {
color: #6666cc;
font-size: 1.3em;
font-weight: bold;
margin-bottom: 5px;
}
.pepe-title a { color: #ffffff !important; }
.pepe-audio { margin-bottom: 5px; }
/*
==========================================
RIGHT SIDE (Spinning CD)
==========================================
*/
.pepe-right {
display: flex;
align-items: center;
justify-content: center;
width: 110px;
padding: 5px;
flex-shrink: 0;
z-index: 5;
}
/* Mobile adjustments */
@media (max-width: 550px) {
.pepe-wrapper { flex-direction: column; align-items: center; }
.pepe-left { align-self: flex-start; }
.pepe-title { font-size: 1.1em; }
}