RC-37 | Abilities | Move & Run Display
This commit is contained in:
parent
7095d0d3f8
commit
a9cc3244df
4 changed files with 60 additions and 6 deletions
|
|
@ -60,13 +60,13 @@
|
|||
/* grid-template-rows: minmax(0, 3fr) minmax(0, 1fr); */
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
|
||||
.ability {
|
||||
display: grid;
|
||||
grid-template-rows: minmax(0, 3fr) minmax(0, 1fr);
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.ability {
|
||||
display: grid;
|
||||
grid-template-rows: minmax(0, 3fr) minmax(0, 1fr);
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
label, .label {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
|
|
@ -90,5 +90,36 @@
|
|||
width: 70%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&.dual {
|
||||
position: relative;
|
||||
font-size: 1rem;
|
||||
--distance-from-edge: 3px;
|
||||
|
||||
&::after {
|
||||
display: block;
|
||||
content: "";
|
||||
width: 69%;
|
||||
height: 2px;
|
||||
background: black;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
> .value,
|
||||
> .max {
|
||||
width: 50%;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
> .value {
|
||||
top: var(--distance-from-edge);
|
||||
left: var(--distance-from-edge);
|
||||
}
|
||||
> .max {
|
||||
bottom: var(--distance-from-edge);
|
||||
right: var(--distance-from-edge);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue