Template:Cobwatch/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 1: | Line 1: | ||
/* Wrapper to hold the cigar and allow particles to fly outside of it */ | |||
.cobwatch-wrapper { | |||
position: relative; | |||
max-width: 650px; | |||
margin: 1em auto; | |||
} | |||
/* Container shapes the cigar and provides cylindrical shading and leaf texture */ | /* Container shapes the cigar and provides cylindrical shading and leaf texture */ | ||
.cobwatch-cigar { | .cobwatch-cigar { | ||
display: flex; | display: flex; | ||
align-items: stretch; | align-items: stretch; | ||
background: | background: | ||
repeating-linear-gradient(25deg, transparent, transparent 35px, rgba(0,0,0,0.15) 37px, transparent 38px), | repeating-linear-gradient(25deg, transparent, transparent 35px, rgba(0,0,0,0.15) 37px, transparent 38px), | ||
| Line 13: | Line 18: | ||
color: #ffdf00; | color: #ffdf00; | ||
font-family: "Times New Roman", serif; | font-family: "Times New Roman", serif; | ||
overflow: hidden; | overflow: hidden; /* Keeps the band and cap clipped to the rounded corners */ | ||
} | } | ||
/* Neutralize MediaWiki's automatic paragraph and break tags */ | /* Neutralize MediaWiki's automatic paragraph and break tags */ | ||
.cobwatch-cigar p { display: contents; margin: 0; } | .cobwatch-cigar p, .cobwatch-wrapper p { display: contents; margin: 0; } | ||
.cobwatch-cigar br { display: none; } | .cobwatch-cigar br, .cobwatch-wrapper br { display: none; } | ||
/* The rounded mouth-piece (Cap) */ | /* The rounded mouth-piece (Cap) */ | ||
| Line 74: | Line 79: | ||
.cobwatch-foot { | .cobwatch-foot { | ||
width: 50px; | width: 50px; | ||
position: relative; | position: relative; | ||
background: | background: | ||
/* | /* Deep magma cracks */ | ||
radial-gradient(circle at | radial-gradient(circle at 30% 35%, rgba(255, 50, 0, 0.9) 1.5px, transparent 3px), | ||
radial-gradient(circle at | radial-gradient(circle at 65% 55%, rgba(255, 80, 0, 0.8) 2px, transparent 5px), | ||
radial-gradient(circle at 45% 75%, | radial-gradient(circle at 45% 75%, rgba(255, 40, 0, 0.9) 1.5px, transparent 4px), | ||
radial-gradient(circle at 75% 25%, rgba(255, 100, 0, 0.7) 1px, transparent 3px), | |||
/* Dark charred ash base */ | |||
radial-gradient(circle at | |||
/* Dark charred ash | |||
linear-gradient(to right, #111 0%, #2a2a2a 40%, #1a1a1a 80%, #050505 100%); | linear-gradient(to right, #111 0%, #2a2a2a 40%, #1a1a1a 80%, #050505 100%); | ||
box-shadow: inset 5px 0 12px rgba(0,0,0,0.9); | box-shadow: inset 5px 0 12px rgba(0,0,0,0.9); | ||
| Line 90: | Line 93: | ||
} | } | ||
/* The Burn Layer: | /* The Burn Layer: Replaced the ugly solid line with an inset glowing shadow */ | ||
.cobwatch-burn-layer { | .cobwatch-burn-layer { | ||
position: absolute; | position: absolute; | ||
top: 0; left: 0; bottom: 0; | top: 0; left: 0; bottom: 0; | ||
width: 100%; | width: 100%; | ||
background: | background: | ||
repeating-linear-gradient(25deg, transparent, transparent 35px, rgba(0,0,0,0.15) 37px, transparent 38px), | 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%); | linear-gradient(to bottom, #2b160a 0%, #4a2613 25%, #593019 50%, #30170a 80%, #1a0c05 100%); | ||
animation: cobwatch-ignite-burn 3s ease-in forwards; | animation: cobwatch-ignite-burn 3s ease-in forwards; | ||
animation-delay: 0.8s; | animation-delay: 0.8s; | ||
| Line 106: | Line 107: | ||
@keyframes cobwatch-ignite-burn { | @keyframes cobwatch-ignite-burn { | ||
0% { | 0% { width: 100%; box-shadow: none; } | ||
10% { width: 100%; box-shadow: inset -4px 0 6px rgba(255, 200, 0, 0.8), inset -10px 0 15px rgba(255, 42, 0, 0.9); } | |||
100% { width: 0%; box-shadow: inset -4px 0 6px rgba(255, 200, 0, 0.8), inset -10px 0 15px rgba(255, 42, 0, 0.9); } | |||
10% { | |||
100% { | |||
} | } | ||
/* | /* | ||
========================================== | ========================================== | ||
PARTICLE SYSTEM (Outside the frame!) | |||
========================================== | ========================================== | ||
*/ | */ | ||
.cobwatch-particle-system { | |||
position: absolute; | |||
right: 0; | |||
top: 0; | |||
width: 50px; /* Covers the lit end exactly */ | |||
height: 100%; | |||
z-index: 10; | |||
} | |||
/* --- Tiny Spawning Fire Particles (Embers) --- */ | |||
.cobwatch-spark { | |||
position: absolute; | |||
top: 50%; | |||
right: 10px; | |||
width: 3px; | |||
height: 3px; | |||
background: #fff; /* White hot core */ | |||
border-radius: 50%; | |||
box-shadow: 0 0 6px 3px #ff4500, 0 0 2px 1px #ffcc00; | |||
opacity: 0; | |||
} | |||
/* Distinct randomized paths & delays for the sparks */ | |||
.cobwatch-spark-1 { animation: cobwatch-spark-fly-1 1.8s infinite ease-out; animation-delay: 1.5s; } | |||
.cobwatch-spark-2 { animation: cobwatch-spark-fly-2 2.2s infinite ease-out; animation-delay: 2.1s; } | |||
.cobwatch-spark-3 { animation: cobwatch-spark-fly-3 1.5s infinite ease-out; animation-delay: 2.8s; } | |||
.cobwatch-spark-4 { animation: cobwatch-spark-fly-4 2.5s infinite ease-out; animation-delay: 3.4s; } | |||
.cobwatch-spark-5 { animation: cobwatch-spark-fly-5 2.0s infinite ease-out; animation-delay: 4.2s; } | |||
@keyframes cobwatch-spark-fly-1 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(25px, -35px) scale(0); opacity: 0; } } | |||
@keyframes cobwatch-spark-fly-2 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(40px, 15px) scale(0); opacity: 0; } } | |||
@keyframes cobwatch-spark-fly-3 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(20px, -15px) scale(0); opacity: 0; } } | |||
@keyframes cobwatch-spark-fly-4 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(35px, -50px) scale(0); opacity: 0; } } | |||
@keyframes cobwatch-spark-fly-5 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(15px, 25px) scale(0); opacity: 0; } } | |||
/* --- Smoke Plumes --- */ | |||
.cobwatch-smoke { | .cobwatch-smoke { | ||
position: absolute; | position: absolute; | ||
top: 40%; | top: 40%; | ||
right: | right: -5px; /* Starts slightly off the ash */ | ||
width: | width: 10px; | ||
height: | height: 10px; | ||
background: rgba( | background: rgba(200, 200, 210, 0.4); | ||
border-radius: 50%; | border-radius: 50%; | ||
box-shadow: 0 0 12px | box-shadow: 0 0 15px 12px rgba(200, 200, 210, 0.3); | ||
opacity: 0; | opacity: 0; | ||
} | } | ||
.cobwatch-smoke-1 { | .cobwatch-smoke-1 { animation: cobwatch-smoke-rise-1 3.5s infinite ease-in; animation-delay: 3.5s; } | ||
.cobwatch-smoke-2 { animation: cobwatch-smoke-rise-2 4.2s infinite ease-in; animation-delay: 4.8s; } | |||
.cobwatch-smoke-3 { animation: cobwatch-smoke-rise-3 3.8s infinite ease-in; animation-delay: 5.5s; } | |||
@keyframes cobwatch-smoke-rise-1 { | |||
0% { transform: translate(0, 0) scale(1); opacity: 0; } | |||
20% { opacity: 0.6; } | |||
100% { transform: translate(30px, -60px) scale(4); opacity: 0; } | |||
} | } | ||
@keyframes cobwatch-smoke-rise-2 { | |||
0% { transform: translate(0, 0) scale(1); opacity: 0; } | |||
20% { opacity: 0.5; } | |||
} | 100% { transform: translate(15px, -80px) scale(5); opacity: 0; } | ||
} | } | ||
@keyframes cobwatch-smoke-rise-3 { | |||
@keyframes cobwatch-rise { | |||
0% { transform: translate(0, 0) scale(1); opacity: 0; } | 0% { transform: translate(0, 0) scale(1); opacity: 0; } | ||
20% { opacity: 0. | 20% { opacity: 0.7; } | ||
100% { transform: translate( | 100% { transform: translate(40px, -50px) scale(3.5); opacity: 0; } | ||
} | } | ||
| Line 164: | Line 189: | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.cobwatch-cigar { flex-direction: column; border-radius: 20px 20px 10px 10px; } | .cobwatch-cigar { flex-direction: column; border-radius: 20px 20px 10px 10px; } | ||
.cobwatch-cap, .cobwatch-foot { display: none; } | .cobwatch-cap, .cobwatch-foot, .cobwatch-particle-system { display: none; } | ||
.cobwatch-band { | .cobwatch-band { | ||
border-left: none; border-right: none; | border-left: none; border-right: none; | ||
Revision as of 19:10, 21 April 2026
/* Wrapper to hold the cigar and allow particles to fly outside of it */
.cobwatch-wrapper {
position: relative;
max-width: 650px;
margin: 1em auto;
}
/* Container shapes the cigar and provides cylindrical shading and leaf texture */
.cobwatch-cigar {
display: flex;
align-items: stretch;
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; /* Keeps the band and cap clipped to the rounded corners */
}
/* Neutralize MediaWiki's automatic paragraph and break tags */
.cobwatch-cigar p, .cobwatch-wrapper p { display: contents; margin: 0; }
.cobwatch-cigar br, .cobwatch-wrapper 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;
position: relative;
background:
/* Deep magma cracks */
radial-gradient(circle at 30% 35%, rgba(255, 50, 0, 0.9) 1.5px, transparent 3px),
radial-gradient(circle at 65% 55%, rgba(255, 80, 0, 0.8) 2px, transparent 5px),
radial-gradient(circle at 45% 75%, rgba(255, 40, 0, 0.9) 1.5px, transparent 4px),
radial-gradient(circle at 75% 25%, rgba(255, 100, 0, 0.7) 1px, transparent 3px),
/* Dark charred ash base */
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: Replaced the ugly solid line with an inset glowing shadow */
.cobwatch-burn-layer {
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%);
animation: cobwatch-ignite-burn 3s ease-in forwards;
animation-delay: 0.8s;
z-index: 2;
}
@keyframes cobwatch-ignite-burn {
0% { width: 100%; box-shadow: none; }
10% { width: 100%; box-shadow: inset -4px 0 6px rgba(255, 200, 0, 0.8), inset -10px 0 15px rgba(255, 42, 0, 0.9); }
100% { width: 0%; box-shadow: inset -4px 0 6px rgba(255, 200, 0, 0.8), inset -10px 0 15px rgba(255, 42, 0, 0.9); }
}
/*
==========================================
PARTICLE SYSTEM (Outside the frame!)
==========================================
*/
.cobwatch-particle-system {
position: absolute;
right: 0;
top: 0;
width: 50px; /* Covers the lit end exactly */
height: 100%;
z-index: 10;
}
/* --- Tiny Spawning Fire Particles (Embers) --- */
.cobwatch-spark {
position: absolute;
top: 50%;
right: 10px;
width: 3px;
height: 3px;
background: #fff; /* White hot core */
border-radius: 50%;
box-shadow: 0 0 6px 3px #ff4500, 0 0 2px 1px #ffcc00;
opacity: 0;
}
/* Distinct randomized paths & delays for the sparks */
.cobwatch-spark-1 { animation: cobwatch-spark-fly-1 1.8s infinite ease-out; animation-delay: 1.5s; }
.cobwatch-spark-2 { animation: cobwatch-spark-fly-2 2.2s infinite ease-out; animation-delay: 2.1s; }
.cobwatch-spark-3 { animation: cobwatch-spark-fly-3 1.5s infinite ease-out; animation-delay: 2.8s; }
.cobwatch-spark-4 { animation: cobwatch-spark-fly-4 2.5s infinite ease-out; animation-delay: 3.4s; }
.cobwatch-spark-5 { animation: cobwatch-spark-fly-5 2.0s infinite ease-out; animation-delay: 4.2s; }
@keyframes cobwatch-spark-fly-1 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(25px, -35px) scale(0); opacity: 0; } }
@keyframes cobwatch-spark-fly-2 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(40px, 15px) scale(0); opacity: 0; } }
@keyframes cobwatch-spark-fly-3 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(20px, -15px) scale(0); opacity: 0; } }
@keyframes cobwatch-spark-fly-4 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(35px, -50px) scale(0); opacity: 0; } }
@keyframes cobwatch-spark-fly-5 { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(15px, 25px) scale(0); opacity: 0; } }
/* --- Smoke Plumes --- */
.cobwatch-smoke {
position: absolute;
top: 40%;
right: -5px; /* Starts slightly off the ash */
width: 10px;
height: 10px;
background: rgba(200, 200, 210, 0.4);
border-radius: 50%;
box-shadow: 0 0 15px 12px rgba(200, 200, 210, 0.3);
opacity: 0;
}
.cobwatch-smoke-1 { animation: cobwatch-smoke-rise-1 3.5s infinite ease-in; animation-delay: 3.5s; }
.cobwatch-smoke-2 { animation: cobwatch-smoke-rise-2 4.2s infinite ease-in; animation-delay: 4.8s; }
.cobwatch-smoke-3 { animation: cobwatch-smoke-rise-3 3.8s infinite ease-in; animation-delay: 5.5s; }
@keyframes cobwatch-smoke-rise-1 {
0% { transform: translate(0, 0) scale(1); opacity: 0; }
20% { opacity: 0.6; }
100% { transform: translate(30px, -60px) scale(4); opacity: 0; }
}
@keyframes cobwatch-smoke-rise-2 {
0% { transform: translate(0, 0) scale(1); opacity: 0; }
20% { opacity: 0.5; }
100% { transform: translate(15px, -80px) scale(5); opacity: 0; }
}
@keyframes cobwatch-smoke-rise-3 {
0% { transform: translate(0, 0) scale(1); opacity: 0; }
20% { opacity: 0.7; }
100% { transform: translate(40px, -50px) scale(3.5); opacity: 0; }
}
/* Mobile adjustments */
@media (max-width: 600px) {
.cobwatch-cigar { flex-direction: column; border-radius: 20px 20px 10px 10px; }
.cobwatch-cap, .cobwatch-foot, .cobwatch-particle-system { 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%);
}
}