Template:Cobwatch/styles.css: Difference between revisions
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
SomebodyRum (talk | contribs) Created page with "→Container shapes the cigar and provides cylindrical shading and leaf texture: .cobwatch-cigar { display: flex; align-items: stretch; max-width: 750px; margin: 1em auto; background: repeating-linear-gradient(25deg, transparent, transparent 40px, rgba(0,0,0,0.2) 42px, transparent 43px), linear-gradient(to bottom, #2b160a 0%, #4a2613 25%, #593019 50%, #30170a 80%, #1a0c05 100%); border-radius: 60px 8px 8px 60px; border: 1px solid #111; box-shadow: 0 10px 2..." |
SomebodyRum (talk | contribs) mNo edit summary |
||
| Line 3: | Line 3: | ||
display: flex; | display: flex; | ||
align-items: stretch; | align-items: stretch; | ||
max-width: | max-width: 650px; /* Reduced max-width to maintain a thinner aspect ratio */ | ||
margin: 1em auto; | margin: 1em auto; | ||
background: | background: | ||
repeating-linear-gradient(25deg, transparent, transparent | 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: | border-radius: 40px 8px 8px 40px; /* Adjusted radius for a thinner height */ | ||
border: 1px solid #111; | border: 1px solid #111; | ||
box-shadow: 0 | box-shadow: 0 8px 15px rgba(0,0,0,0.4), inset 0 3px 6px rgba(255,255,255,0.05); | ||
color: #ffdf00; /* Gold text */ | color: #ffdf00; /* Gold text */ | ||
font-family: "Times New Roman", serif; | font-family: "Times New Roman", serif; | ||
| Line 27: | Line 27: | ||
/* The rounded mouth-piece (Cap) */ | /* The rounded mouth-piece (Cap) */ | ||
.cobwatch-cap { | .cobwatch-cap { | ||
width: | width: 25px; /* Thinner cap */ | ||
background: linear-gradient(to right, rgba(0,0,0,0. | background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 100%); | ||
} | } | ||
| Line 36: | Line 36: | ||
border-left: 2px solid #6b5400; | border-left: 2px solid #6b5400; | ||
border-right: 2px solid #6b5400; | border-right: 2px solid #6b5400; | ||
padding: | padding: 6px 12px; /* Reduced padding to squeeze height */ | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
box-shadow: 5px 0 | box-shadow: 5px 0 12px rgba(0,0,0,0.5), -5px 0 12px rgba(0,0,0,0.5); | ||
z-index: 2; | z-index: 2; | ||
} | } | ||
| Line 47: | Line 47: | ||
/* Strip native borders off the image wrapper */ | /* Strip native borders off the image wrapper */ | ||
.cobwatch-band a.image { | .cobwatch-band a.image { | ||
border: 2px solid # | border: 2px solid #000; | ||
border-radius: | border-radius: 3px; | ||
box-shadow: 0 2px 5px rgba(0,0,0,0. | box-shadow: 0 2px 5px rgba(0,0,0,0.6); | ||
display: block; | display: block; | ||
line-height: 0; | line-height: 0; | ||
| Line 57: | Line 57: | ||
.cobwatch-body { | .cobwatch-body { | ||
flex: 1; | flex: 1; | ||
padding: 15px | padding: 8px 15px; /* Reduced padding to squeeze height */ | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 65: | Line 65: | ||
.cobwatch-title { | .cobwatch-title { | ||
font-size: 1. | font-size: 1.5em; /* Slightly smaller text */ | ||
font-weight: bold; | font-weight: bold; | ||
text-shadow: 2px 2px | text-shadow: 2px 2px 3px rgba(0,0,0,0.8); | ||
margin-bottom: | margin-bottom: 2px; | ||
} | } | ||
.cobwatch-audio { | .cobwatch-audio { | ||
margin: | margin: 2px 0; | ||
} | } | ||
.cobwatch-subtitle { | .cobwatch-subtitle { | ||
font-size: | font-size: 1em; /* Slightly smaller text */ | ||
font-style: italic; | font-style: italic; | ||
color: #ffca28; | color: #ffca28; | ||
} | } | ||
/* | /* Realistic lit end / ash */ | ||
.cobwatch-foot { | .cobwatch-foot { | ||
width: | width: 45px; /* Wider to show off the ash detail */ | ||
background: linear-gradient(to right, # | background: | ||
box-shadow: - | /* Gray ash spots / texture overlay */ | ||
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), | |||
/* Ember cracks (bright orange/red dots layered underneath the ash) */ | |||
radial-gradient(circle at 35% 45%, #ffaa00 1px, transparent 3px), | |||
radial-gradient(circle at 38% 65%, #ff3300 2px, transparent 4px), | |||
radial-gradient(circle at 25% 30%, #ff5500 1.5px, transparent 3px), | |||
/* Base burn gradient: Dark wrapper edge -> glowing cherry -> gray ash -> dark tip */ | |||
linear-gradient(to right, | |||
#111 0%, | |||
#ff2a00 12%, | |||
#ffcc00 16%, | |||
#666 35%, | |||
#aaa 60%, | |||
#444 100% | |||
); | |||
box-shadow: | |||
-5px 0 15px rgba(255, 50, 0, 0.8), /* Outer orange glow */ | |||
inset 4px 0 8px rgba(0,0,0,0.9); /* Inner shadow where leaf meets burn */ | |||
border-left: 1px solid #111; | |||
} | } | ||
Revision as of 18:58, 21 April 2026
/* Container shapes the cigar and provides cylindrical shading and leaf texture */
.cobwatch-cigar {
display: flex;
align-items: stretch;
max-width: 650px; /* Reduced max-width to maintain a thinner aspect ratio */
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; /* Adjusted radius for a thinner height */
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; /* Gold text */
font-family: "Times New Roman", serif;
overflow: hidden; /* Clips the band and inner elements to the rounded border */
}
/* Neutralize MediaWiki's automatic paragraph and break tags inside flexbox */
.cobwatch-cigar p {
display: contents;
margin: 0;
}
.cobwatch-cigar br {
display: none;
}
/* The rounded mouth-piece (Cap) */
.cobwatch-cap {
width: 25px; /* Thinner cap */
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; /* Reduced padding to squeeze height */
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;
}
/* Strip native borders off the image wrapper */
.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; /* Reduced padding to squeeze height */
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
.cobwatch-title {
font-size: 1.5em; /* Slightly smaller text */
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; /* Slightly smaller text */
font-style: italic;
color: #ffca28;
}
/* Realistic lit end / ash */
.cobwatch-foot {
width: 45px; /* Wider to show off the ash detail */
background:
/* Gray ash spots / texture overlay */
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),
/* Ember cracks (bright orange/red dots layered underneath the ash) */
radial-gradient(circle at 35% 45%, #ffaa00 1px, transparent 3px),
radial-gradient(circle at 38% 65%, #ff3300 2px, transparent 4px),
radial-gradient(circle at 25% 30%, #ff5500 1.5px, transparent 3px),
/* Base burn gradient: Dark wrapper edge -> glowing cherry -> gray ash -> dark tip */
linear-gradient(to right,
#111 0%,
#ff2a00 12%,
#ffcc00 16%,
#666 35%,
#aaa 60%,
#444 100%
);
box-shadow:
-5px 0 15px rgba(255, 50, 0, 0.8), /* Outer orange glow */
inset 4px 0 8px rgba(0,0,0,0.9); /* Inner shadow where leaf meets burn */
border-left: 1px solid #111;
}
/* 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%);
}
}