Add a component that handles displaying the person silhouette with some content inside of it
This commit is contained in:
parent
26a2e0f3ff
commit
2b88bcc2ef
4 changed files with 146 additions and 0 deletions
34
templates/css/components/armour-summary.css
Normal file
34
templates/css/components/armour-summary.css
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
:host {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.person {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
row-gap: var(--row-gap);
|
||||
|
||||
> div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
> rc-svg {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 58%;
|
||||
}
|
||||
|
||||
.head, .body, .legs { grid-column: 1; }
|
||||
.arms { grid-column: 2; }
|
||||
.head { grid-row: 1; }
|
||||
.body, .arms { grid-row: 2; }
|
||||
.legs { grid-row: 3; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue