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 3: | Line 3: | ||
display: flex; | display: flex; | ||
align-items: stretch; | align-items: stretch; | ||
max-width: 650px; | max-width: 650px; | ||
margin: 1em auto; | margin: 1em auto; | ||
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%); | ||
border-radius: 40px 8px 8px 40px; | border-radius: 40px 8px 8px 40px; | ||
border: 1px solid #111; | 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); | box-shadow: 0 8px 15px rgba(0,0,0,0.4), inset 0 3px 6px rgba(255,255,255,0.05); | ||
color: #ffdf00; | color: #ffdf00; | ||
font-family: "Times New Roman", serif; | font-family: "Times New Roman", serif; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
/* Neutralize MediaWiki's automatic paragraph and break tags | /* Neutralize MediaWiki's automatic paragraph and break tags */ | ||
.cobwatch-cigar p { | .cobwatch-cigar p { display: contents; margin: 0; } | ||
.cobwatch-cigar br { display: none; } | |||
} | |||
.cobwatch-cigar br { | |||
} | |||
/* The rounded mouth-piece (Cap) */ | /* The rounded mouth-piece (Cap) */ | ||
.cobwatch-cap { | .cobwatch-cap { | ||
width: 25px; | width: 25px; | ||
background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 100%); | background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 100%); | ||
} | } | ||
| Line 36: | Line 31: | ||
border-left: 2px solid #6b5400; | border-left: 2px solid #6b5400; | ||
border-right: 2px solid #6b5400; | border-right: 2px solid #6b5400; | ||
padding: 6px 12px; | padding: 6px 12px; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 45: | Line 40: | ||
} | } | ||
.cobwatch-band a.image { | .cobwatch-band a.image { | ||
border: 2px solid #000; | border: 2px solid #000; | ||
| Line 57: | Line 51: | ||
.cobwatch-body { | .cobwatch-body { | ||
flex: 1; | flex: 1; | ||
padding: 8px 15px; | padding: 8px 15px; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 65: | Line 59: | ||
.cobwatch-title { | .cobwatch-title { | ||
font-size: 1.5em; | font-size: 1.5em; | ||
font-weight: bold; | font-weight: bold; | ||
text-shadow: 2px 2px 3px rgba(0,0,0,0.8); | text-shadow: 2px 2px 3px rgba(0,0,0,0.8); | ||
margin-bottom: 2px; | 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 { | .cobwatch-foot { | ||
width: 45px; | width: 45px; | ||
position: relative; | |||
background: | background: | ||
radial-gradient(circle at 60% 25%, rgba(200,200,200,0.7) 2px, transparent 6px), | 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 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), | 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) */ | |||
linear-gradient(to | .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%); | |||
box-shadow: | border-right: 2px solid transparent; | ||
animation: cobwatch-ignite-burn 3s ease-in forwards; | |||
inset 4px 0 | 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 */ | /* Mobile adjustments */ | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.cobwatch-cigar { | .cobwatch-cigar { flex-direction: column; border-radius: 20px 20px 10px 10px; } | ||
.cobwatch-cap, .cobwatch-foot { display: none; } | |||
.cobwatch-cap, .cobwatch-foot { | |||
.cobwatch-band { | .cobwatch-band { | ||
border-left: none; border-right: none; | border-left: none; border-right: none; | ||
Revision as of 19:01, 21 April 2026
/* 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%);
}
}