rule change
This commit is contained in:
parent
62b2b9feca
commit
5d771eed1b
9 changed files with 199 additions and 75 deletions
|
|
@ -189,7 +189,7 @@
|
|||
position: absolute;
|
||||
z-index: 5;
|
||||
right: 22px;
|
||||
top: 214px;
|
||||
top: 322px;
|
||||
writing-mode: vertical-rl;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
|
|
@ -332,3 +332,60 @@
|
|||
margin-top: 2px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* ----- Health badge (damage to destroy) — same chassis as PORTS, with a pulse line ----- */
|
||||
.health {
|
||||
position: absolute;
|
||||
z-index: 5;
|
||||
top: 204px;
|
||||
right: 30px;
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
|
||||
background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dk) 100%);
|
||||
box-shadow: 0 0 16px var(--accent);
|
||||
}
|
||||
.health::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 3px;
|
||||
clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
|
||||
background: linear-gradient(160deg, #12181f 0%, #0a0e13 100%);
|
||||
}
|
||||
/* heartbeat trace above the number */
|
||||
.health .pulse {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 56px;
|
||||
height: 16px;
|
||||
margin-bottom: 2px;
|
||||
background: var(--accent);
|
||||
filter: drop-shadow(0 0 6px var(--accent));
|
||||
clip-path: polygon(
|
||||
0 46%, 24% 46%, 32% 12%, 44% 88%, 54% 0, 62% 62%, 68% 46%, 100% 46%,
|
||||
100% 62%, 66% 62%, 58% 90%, 52% 30%, 44% 100%, 32% 40%, 26% 62%, 0 62%
|
||||
);
|
||||
}
|
||||
.health b {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
font-size: 40px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
color: #fff;
|
||||
text-shadow: 0 0 10px var(--accent), 0 2px 3px #000;
|
||||
}
|
||||
.health i {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
font-style: normal;
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 3px;
|
||||
margin-top: 2px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue