passion_retro/static/themes/rpg/decorations.css
2025-09-12 11:11:44 +02:00

69 lines
1.4 KiB
CSS

/* RPG Window corners */
.container::before,
.menu::before {
content: '';
position: absolute;
width: 15px;
height: 15px;
background-size: contain;
}
.container::before {
top: -4px;
left: -4px;
background-image: url('../img/corner-tl.png');
}
/* RPG Menu icons */
.menu-item::before {
content: '►';
color: var(--rpg-gold);
margin-right: 8px;
font-size: 0.8em;
}
/* RPG Window borders */
.rpg-border {
border-style: solid;
border-width: 4px;
border-image-slice: 3 3 3 3;
border-image-width: 3px;
border-image-outset: 1px;
border-image-repeat: stretch;
border-image-source: url('../img/border-pattern.png');
}
/* RPG Pixelated background pattern */
.pixel-bg {
background-image: url('../img/bg-pattern.png');
background-repeat: repeat;
image-rendering: pixelated;
}
/* Health/MP bars style */
.stat-bar {
height: 20px;
background: var(--rpg-blue);
border: 2px solid var(--border-light);
position: relative;
overflow: hidden;
}
.stat-bar::before {
content: '';
position: absolute;
top: 0;
left: 0;
height: 100%;
background: linear-gradient(
transparent 0%,
rgba(255, 255, 255, 0.2) 50%,
transparent 100%
);
animation: shine 2s infinite linear;
}
@keyframes shine {
from { transform: translateX(-100%); }
to { transform: translateX(100%); }
}