Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:AngelQuarantine/styles.css: Difference between revisions

Template page
Content deleted Content added
MMONTAGEe (talk | contribs)
simpler names, other anims, danger stripes fix...?
No edit summary
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#angel_quarantine-title { /* the main title itself */
#title{
font-size: 35px;
font-size: 35px;
font-weight: bold;
font-weight: bold;
justify-content: center;
justify-content: center;
text-align: center;
text-align: center;
color: #ffea00;
animation: flash 2s infinite ease-in-out;
}

#angel_quarantine-subtitle {
display: block;
width: fit-content;
margin: 1em auto;
background: #000;
background: #000;
color: #ffea00;
color: #ffea00;
font-weight: bold;
animation: flash 2s infinite ease-in-out;
text-align: center;
font-size: 1.2rem;
padding: 0.3em 1em;
border-radius: 0.2em;
animation: glow 2s infinite ease-in-out; /* the subtitle pulse */
position: relative;
overflow: visible;
text-transform: uppercase;
text-wrap: wrap;
}
}


#angel_quarantine-subtitle::after { /* subtitle danger stripes */
#subtitle{
content: '';
display: block;
position: absolute;
width: max-content;
left: 50%;
margin: 1em auto;
transform: translateX(-50%);
background: #000;
bottom: -1.3em;
color: #ffea00;
width: calc(100% + 2em);
font-weight: bold;
height: 0.5em;
text-align: center;
background: repeating-linear-gradient(
font-size: 1.2rem;
-45deg,
padding: 0.3em 1em;
#ffea00 0,
border-radius: 0.2em;
#ffea00 25%,
animation: glow 2s infinite ease-in-out;
#000 25%,
position: relative;
#000 50%
overflow: visible;
);
background-size: 0.8em 0.8em;
border-radius: 0 0 0.2em 0.2em;
z-index: -1;
animation: stripe-scroll 1s linear infinite;
}
}


@keyframes stripe-scroll {
#subtitle::after {
from {
content: '';
position: absolute;
background-position: 0 0;
}
left: 50%;
to {
transform: translateX(-50%);
background-position: 0.8em 0; /* move by one stripe width */
bottom: -0.6em;
}
width: calc(100% + 2em);
height: 0.5em;
background: repeating-linear-gradient(
-45deg,
#ffea00 0,
#ffea00 25%,
#000 25%,
#000 50%
);
background-size: 0.8em 0.8em;
border-radius: 0 0 0.2em 0.2em;
z-index: -1;
}
}




@keyframes flash {
@keyframes flash {
0%, 100% { text-shadow: none; }
0%, 100% {
50% { text-shadow: 0 0 15px #ffea00; }
text-shadow: none;
}
50% {
text-shadow: 0 0 15px #ffea00;
}
}
}


@keyframes glow {
@keyframes glow {
0%, 100% { box-shadow: 0 0 0px transparent; }
0%, 100% {
50% { box-shadow: 0 0 15px #ffea00; }
box-shadow: 0 0 0 transparent;
}
50% {
box-shadow: 0 0 15px #ffea00;
}
}
}

Latest revision as of 11:00, June 20, 2025

#angel_quarantine-title { /* the main title itself */
	font-size: 35px;
	font-weight: bold;
	justify-content: center;
	text-align: center;
	color: #ffea00;
	animation: flash 2s infinite ease-in-out;
}

#angel_quarantine-subtitle {
	display: block;              
	width: fit-content;          
	margin: 1em auto;             
	background: #000;
	color: #ffea00;
	font-weight: bold;
	text-align: center;
	font-size: 1.2rem;
	padding: 0.3em 1em;
	border-radius: 0.2em;
	animation: glow 2s infinite ease-in-out; /* the subtitle pulse */
	position: relative;          
	overflow: visible;
	text-transform: uppercase;
	text-wrap: wrap;
}

#angel_quarantine-subtitle::after { /* subtitle danger stripes */
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -1.3em;
	width: calc(100% + 2em);
	height: 0.5em;
	background: repeating-linear-gradient(
		-45deg,
		#ffea00 0,
		#ffea00 25%,
		#000 25%,
		#000 50%
	);
	background-size: 0.8em 0.8em;
	border-radius: 0 0 0.2em 0.2em;
	z-index: -1;
	
	animation: stripe-scroll 1s linear infinite;
}

@keyframes stripe-scroll {
	from {
		background-position: 0 0;
	}
	to {
		background-position: 0.8em 0; /* move by one stripe width */
	}
}


@keyframes flash {
	0%, 100% {
		text-shadow: none;
	}
	50% {
		text-shadow: 0 0 15px #ffea00;
	}
}

@keyframes glow {
	0%, 100% {
		box-shadow: 0 0 0 transparent;
	}
	50% {
		box-shadow: 0 0 15px #ffea00;
	}
}