Small fixes to Character CSS
* Constrain to $grid-width * Fix spacing between breakpoints
This commit is contained in:
parent
44209c82af
commit
562d52a626
2 changed files with 14 additions and 5 deletions
|
|
@ -3,27 +3,36 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 761px;
|
max-width: $grid-width;
|
||||||
|
|
||||||
@include breakpoint(tablet) {
|
@include breakpoint(tablet) {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#grid_characters {
|
#Characters {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||||
gap: $unit;
|
gap: $unit-3x;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
max-width: 761px;
|
max-width: $grid-width;
|
||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
|
|
||||||
@include breakpoint(tablet) {
|
@include breakpoint(tablet) {
|
||||||
|
gap: $unit-2x;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// prettier-ignore
|
||||||
|
@media only screen
|
||||||
|
and (max-width: 500px)
|
||||||
|
and (max-height: 920px)
|
||||||
|
and (-webkit-min-device-pixel-ratio: 2) {
|
||||||
|
gap: $unit;
|
||||||
|
}
|
||||||
|
|
||||||
& > li:last-child {
|
& > li:last-child {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -361,7 +361,7 @@ const CharacterGrid = (props: Props) => {
|
||||||
resolveConflict={resolveConflict}
|
resolveConflict={resolveConflict}
|
||||||
resetConflict={resetConflict}
|
resetConflict={resetConflict}
|
||||||
/>
|
/>
|
||||||
<ul id="grid_characters">
|
<ul id="Characters">
|
||||||
{Array.from(Array(numCharacters)).map((x, i) => {
|
{Array.from(Array(numCharacters)).map((x, i) => {
|
||||||
return (
|
return (
|
||||||
<li key={`grid_unit_${i}`}>
|
<li key={`grid_unit_${i}`}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue