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; }
/*
==========================================
BURN ANIMATION & ASH
==========================================
*/
/* 1. The Base: Pure Ash (Revealed as the wrapper burns) */
.cobwatch-foot {
width: 45px;
position: relative;
background:
radial-gradient(circle at 60% 25%, rgba(200,200,200,0.7) 2px, transparent 6px),
radial-gradient(circle at 75% 65%, rgba(180,180,180,0.8) 3px, transparent 8px),
radial-gradient(circle at 55% 80%, rgba(150,150,150,0.9) 2px, transparent 5px),
linear-gradient(to right, #222 0%, #777 30%, #aaa 70%, #555 100%);
box-shadow: inset 4px 0 8px rgba(0,0,0,0.9);
}
/* 2. The Unburnt Wrapper (Shrinks to 0% width to simulate burning leftward) */
.cobwatch-foot::before {
content: "";
position: absolute;
top: 0; left: 0; bottom: 0;
width: 100%;
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: 2px solid transparent;
animation: cobwatch-ignite-burn 3s ease-in forwards;
animation-delay: 0.8s; /* Pauses for a moment so you see the unlit cigar first */
z-index: 2;
}
/* 3. The Keyframes: Light the tip, move left, leave ember */
@keyframes cobwatch-ignite-burn {
0% {
width: 100%;
box-shadow: none;
border-right-color: transparent;
}
10% {
/* Catches fire at the tip */
width: 100%;
box-shadow: inset -6px 0 8px #ff2a00, 4px 0 12px rgba(255, 42, 0, 0.9);
border-right-color: #ffcc00;
}
100% {
/* Wrapper burns away, cherry stops at the ash line */
width: 0%;
box-shadow: inset -6px 0 8px #ff2a00, 4px 0 12px rgba(255, 42, 0, 0.9);
border-right-color: #ffcc00;
}
}
/* 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%);
}
}