These reps act like the existing PartyRep except for Characters and Summons, as well as a new component just for Weapons. They only render the grid of objects and nothing else. Eventually PartyRep will use WeaponRep
45 lines
1 KiB
SCSS
45 lines
1 KiB
SCSS
.SummonRep {
|
|
aspect-ratio: 2/1.045;
|
|
border-radius: $card-corner;
|
|
display: grid;
|
|
grid-template-columns: 1fr 2.25fr; /* left column takes up 1 fraction, right column takes up 3 fractions */
|
|
grid-gap: $unit-half; /* add a gap of 8px between grid items */
|
|
height: $rep-height;
|
|
|
|
.Summon {
|
|
background: var(--card-bg);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.Main.Summon {
|
|
aspect-ratio: 56/97;
|
|
display: grid;
|
|
grid-column: 1 / 2; /* spans one column */
|
|
}
|
|
|
|
.GridSummons {
|
|
display: grid; /* make the right-images container a grid */
|
|
grid-template-columns: repeat(
|
|
2,
|
|
1fr
|
|
); /* create 3 columns, each taking up 1 fraction */
|
|
grid-template-rows: repeat(
|
|
2,
|
|
1fr
|
|
); /* create 3 rows, each taking up 1 fraction */
|
|
gap: $unit-half;
|
|
// column-gap: $unit;
|
|
// row-gap: $unit-2x;
|
|
}
|
|
|
|
.Grid.Summon {
|
|
aspect-ratio: 184 / 138;
|
|
display: grid;
|
|
}
|
|
|
|
.Main.Summon img[src*='jpg'],
|
|
.Grid.Summon img[src*='jpg'] {
|
|
border-radius: 4px;
|
|
width: 100%;
|
|
}
|
|
}
|