Template:Cobwatch/styles.css
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
/* Container shapes the cigar and provides cylindrical shading and leaf texture */
.cobwatch-cigar {
display: flex;
align-items: stretch;
max-width: 650px;
margin: 1em auto;
background:
repeating-linear-gradient(25deg, transparent, transparent 35px, rgba(0,0,0,0.15) 37px, transparent 38px),
linear-gradient(to bottom, #2b160a 0%, #4a2613 25%, #593019 50%, #30170a 80%, #1a0c05 100%);
border-radius: 40px 8px 8px 40px;
border: 1px solid #111;
box-shadow: 0 8px 15px rgba(0,0,0,0.4), inset 0 3px 6px rgba(255,255,255,0.05);
color: #ffdf00;
font-family: "Times New Roman", serif;
overflow: hidden;
}
/* Neutralize MediaWiki's automatic paragraph and break tags */
.cobwatch-cigar p { display: contents; margin: 0; }
.cobwatch-cigar br { display: none; }
/* The rounded mouth-piece (Cap) */
.cobwatch-cap {
width: 25px;
background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 100%);
}
/* The Cigar Band (Holds the Image) */
.cobwatch-band {
background: linear-gradient(to bottom, #111 0%, #222 15%, #000 20%, #d4af37 20%, #fff080 50%, #aa8000 80%, #000 80%, #222 85%, #111 100%);
border-left: 2px solid #6b5400;
border-right: 2px solid #6b5400;
padding: 6px 12px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-shadow: 5px 0 12px rgba(0,0,0,0.5), -5px 0 12px rgba(0,0,0,0.5);
z-index: 2;
}
.cobwatch-band a.image {
border: 2px solid #000;
border-radius: 3px;
box-shadow: 0 2px 5px rgba(0,0,0,0.6);
display: block;
line-height: 0;
}
/* Main content area */
.cobwatch-body {
flex: 1;
padding: 8px 15px;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
.cobwatch-title {
font-size: 1.5em;
font-weight: bold;
text-shadow: 2px 2px 3px rgba(0,0,0,0.8);
margin-bottom: 2px;
}
.cobwatch-audio { margin: 2px 0; }
.cobwatch-subtitle { font-size: 1em; font-style: italic; color: #ffca28; }
/*
==========================================
3D CRACKED ASH & BURN ANIMATION
==========================================
*/
.cobwatch-foot {
width: 50px; /* Slightly wider to show off the cracks */
position: relative;
background:
/* Magma cracks (bright orange/red dots layered underneath) */
radial-gradient(circle at 20% 30%, #ff2a00 1.5px, transparent 3px),
radial-gradient(circle at 75% 45%, #ff4500 2px, transparent 4px),
radial-gradient(circle at 45% 75%, #ffaa00 1px, transparent 2px),
radial-gradient(circle at 60% 25%, #ff3300 2px, transparent 4px),
radial-gradient(circle at 80% 80%, #ff2a00 1.5px, transparent 3px),
radial-gradient(circle at 35% 60%, #ff5500 1px, transparent 2.5px),
/* Dark charred ash texture */
linear-gradient(to right, #111 0%, #2a2a2a 40%, #1a1a1a 80%, #050505 100%);
box-shadow: inset 5px 0 12px rgba(0,0,0,0.9);
border-left: 1px solid #000;
}
/* The Burn Layer: Fixes the 100%+2px overspill bug with box-sizing */
.cobwatch-burn-layer {
position: absolute;
top: 0; left: 0; bottom: 0;
width: 100%;
box-sizing: border-box;
background:
repeating-linear-gradient(25deg, transparent, transparent 35px, rgba(0,0,0,0.15) 37px, transparent 38px),
linear-gradient(to bottom, #2b160a 0%, #4a2613 25%, #593019 50%, #30170a 80%, #1a0c05 100%);
border-right: 0px solid transparent;
animation: cobwatch-ignite-burn 3s ease-in forwards;
animation-delay: 0.8s;
z-index: 2;
}
@keyframes cobwatch-ignite-burn {
0% {
width: 100%;
border-right: 2px solid transparent;
box-shadow: none;
}
10% {
width: 100%;
border-right: 2px solid #ffcc00;
box-shadow: inset -6px 0 8px #ff2a00, 4px 0 12px rgba(255, 42, 0, 0.9);
}
100% {
width: 0%;
border-right: 2px solid #ffcc00;
box-shadow: inset -6px 0 8px #ff2a00, 4px 0 12px rgba(255, 42, 0, 0.9);
}
}
/*
==========================================
SMOKE PARTICLES
==========================================
*/
.cobwatch-smoke {
position: absolute;
top: 40%;
right: 10px;
width: 6px;
height: 6px;
background: rgba(220, 220, 230, 0.4);
border-radius: 50%;
box-shadow: 0 0 12px 10px rgba(220, 220, 230, 0.3);
opacity: 0;
z-index: 5;
}
.cobwatch-smoke-1 {
animation: cobwatch-rise 3.5s infinite ease-in;
animation-delay: 3.5s; /* Starts right after burn finishes */
}
.cobwatch-smoke-2 {
animation: cobwatch-rise 4.2s infinite ease-in;
animation-delay: 4.8s;
}
.cobwatch-smoke-3 {
animation: cobwatch-rise 3.8s infinite ease-in;
animation-delay: 5.5s;
}
@keyframes cobwatch-rise {
0% { transform: translate(0, 0) scale(1); opacity: 0; }
20% { opacity: 0.6; }
100% { transform: translate(-30px, -70px) scale(4); opacity: 0; }
}
/* Mobile adjustments */
@media (max-width: 600px) {
.cobwatch-cigar { flex-direction: column; border-radius: 20px 20px 10px 10px; }
.cobwatch-cap, .cobwatch-foot { display: none; }
.cobwatch-band {
border-left: none; border-right: none;
border-top: 2px solid #6b5400; border-bottom: 2px solid #6b5400;
background: linear-gradient(to right, #111 0%, #000 20%, #d4af37 20%, #fff080 50%, #aa8000 80%, #000 80%, #111 100%);
}
}