Make SummonGrid responsive
This commit is contained in:
parent
bbc97d8e55
commit
6ea13cad82
3 changed files with 42 additions and 24 deletions
|
|
@ -10,6 +10,12 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 9px;
|
left: 9px;
|
||||||
|
|
||||||
|
@media (max-width: $medium-screen) {
|
||||||
|
left: auto;
|
||||||
|
max-width: auto;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
& > span {
|
& > span {
|
||||||
color: #825B39;
|
color: #825B39;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@
|
||||||
|
|
||||||
#grid_summons > li {
|
#grid_summons > li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
min-height: 180px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ExtraSummons #grid_summons > li {
|
#ExtraSummons #grid_summons > li {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,42 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
|
||||||
|
&.main .SummonImage,
|
||||||
|
&.friend .SummonImage {
|
||||||
|
aspect-ratio: 182 / 315;
|
||||||
|
width: 182px;
|
||||||
|
height: auto;
|
||||||
|
|
||||||
|
@media (max-width: $medium-screen) {
|
||||||
|
width: 20.3vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.grid {
|
||||||
|
// max-width: 148px;
|
||||||
|
// min-height: 141px;
|
||||||
|
min-height: 180px;
|
||||||
|
|
||||||
|
@media (max-width: $medium-screen) {
|
||||||
|
min-height: 16.5vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SummonImage {
|
||||||
|
aspect-ratio: 148 / 111;
|
||||||
|
list-style-type: none;
|
||||||
|
width: 148px;
|
||||||
|
height: auto;
|
||||||
|
|
||||||
|
@media (max-width: $medium-screen) {
|
||||||
|
width: 20vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.friend {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.SummonImage {
|
.SummonImage {
|
||||||
background: white;
|
background: white;
|
||||||
border: 1px solid rgba(0, 0, 0, 0);
|
border: 1px solid rgba(0, 0, 0, 0);
|
||||||
|
|
@ -67,26 +103,3 @@
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mainhand */
|
|
||||||
.SummonUnit.friend {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SummonUnit.main .SummonImage,
|
|
||||||
.SummonUnit.friend .SummonImage {
|
|
||||||
height: 315px;
|
|
||||||
width: 182px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Grid */
|
|
||||||
.SummonUnit.grid {
|
|
||||||
max-width: 148px;
|
|
||||||
min-height: 141px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SummonUnit.grid .SummonImage {
|
|
||||||
list-style-type: none;
|
|
||||||
height: 111px;
|
|
||||||
width: 148px;
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue