MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
Line 121: | Line 121: | ||
} | } | ||
/* | /* Body FX */ | ||
/* Refined highlighted box for campaign section */ | |||
.icannwiki-colored-box-highlighted { | .icannwiki-colored-box-highlighted { | ||
padding: 1em; | padding: 1em; | ||
font-size: 1.05em; | font-size: 1.05em; | ||
position: relative; | position: relative; | ||
background-color: # | background-color: #1a1a1a; /* Dark but with slight contrast */ | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: inset 0px 0px | box-shadow: inset 0px 0px 8px rgba(255, 255, 255, 0.05), /* Soft inner glow */ | ||
0px 4px | 0px 4px 10px rgba(0, 0, 0, 0.5); /* Outer shadow for depth */ | ||
color: # | color: #f0f0f0; /* Off-white text for readability */ | ||
overflow: hidden; | overflow: hidden; | ||
margin-bottom: 1em; | margin-bottom: 1em; | ||
Line 136: | Line 137: | ||
} | } | ||
/* | /* Slight glossy overlay to add a sheen */ | ||
.icannwiki-colored-box-highlighted::before { | .icannwiki-colored-box-highlighted::before { | ||
content: ""; | content: ""; | ||
position: absolute; | position: absolute; | ||
top: | top: -15%; | ||
left: | left: -15%; | ||
width: | width: 130%; | ||
height: | height: 130%; | ||
background: | background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), rgba(88, 88, 88, 0.03), rgba(0, 0, 0, 0.1)); | ||
animation: highlightedBoxFlowingEffect 16s ease-in-out infinite; | |||
z-index: 0; | z-index: 0; | ||
border-radius: | filter: blur(6px); /* Soft blur for gloss effect */ | ||
opacity: 0.5; | |||
border-radius: 12px; | |||
} | } | ||
/* | /* Sheen animation for a touch of movement */ | ||
.icannwiki-colored-box-highlighted::after { | .icannwiki-colored-box-highlighted::after { | ||
content: ""; | content: ""; | ||
Line 158: | Line 161: | ||
width: 220%; | width: 220%; | ||
height: 100%; | height: 100%; | ||
background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) | background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 80%); | ||
animation: subtleSheen | animation: subtleSheen 10s ease-in-out infinite; | ||
opacity: 0. | opacity: 0.08; | ||
z-index: 1; | z-index: 1; | ||
border-radius: 8px; | border-radius: 8px; | ||
} | } | ||
/* Keyframes for | /* Smooth, flowing animation effect */ | ||
@keyframes highlightedBoxFlowingEffect { | |||
0% { transform: translate(0%, 0%) scale(1); } | |||
25% { transform: translate(5%, -5%) scale(1.05); } | |||
50% { transform: translate(-5%, 5%) scale(1); } | |||
75% { transform: translate(5%, 5%) scale(1.05); } | |||
100% { transform: translate(0%, 0%) scale(1); } | |||
} | |||
/* Keyframes for sheen animation */ | |||
@keyframes subtleSheen { | @keyframes subtleSheen { | ||
0% { transform: translateX(-100%); } | 0% { transform: translateX(-100%); } | ||
Line 172: | Line 184: | ||
} | } | ||
/* Content | /* Content style */ | ||
.icannwiki-colored-box-highlighted .content-text { | .icannwiki-colored-box-highlighted .content-text { | ||
position: relative; | position: relative; |