Fix CharacterGrid
This commit is contained in:
parent
7bc872644a
commit
7e1c65a862
2 changed files with 11 additions and 16 deletions
|
|
@ -7,7 +7,9 @@
|
|||
}
|
||||
|
||||
#grid_characters {
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: $unit;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
max-width: 761px;
|
||||
|
|
@ -18,14 +20,6 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
& > * {
|
||||
margin-right: $unit * 3;
|
||||
|
||||
@include breakpoint(tablet) {
|
||||
margin-right: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
& > li:last-child {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
.CharacterUnit {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: calc($unit / 2);
|
||||
min-height: 320px;
|
||||
max-width: 200px;
|
||||
// min-height: 320px;
|
||||
// max-width: 200px;
|
||||
margin-bottom: $unit * 4;
|
||||
|
||||
&.editable .CharacterImage:hover {
|
||||
|
|
@ -35,6 +36,10 @@
|
|||
max-width: 131px;
|
||||
text-align: center;
|
||||
word-wrap: normal;
|
||||
|
||||
@include breakpoint(phone) {
|
||||
font-size: $font-small;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
|
|
@ -54,11 +59,7 @@
|
|||
overflow: hidden;
|
||||
transition: all 0.18s ease-in-out;
|
||||
height: auto;
|
||||
width: 131px;
|
||||
|
||||
@include breakpoint(tablet) {
|
||||
width: 17vw;
|
||||
}
|
||||
// width: 131px;
|
||||
|
||||
&:hover .icon svg {
|
||||
fill: var(--icon-secondary-hover);
|
||||
|
|
|
|||
Loading…
Reference in a new issue