104 lines
2 KiB
SCSS
104 lines
2 KiB
SCSS
.WeaponUnit {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
|
|
&.mainhand {
|
|
margin-right: $unit * 3;
|
|
max-width: 200px;
|
|
|
|
@media (max-width: $medium-screen) {
|
|
margin-right: $unit * 2;
|
|
}
|
|
|
|
&.editable .WeaponImage:hover {
|
|
transform: $scale-tall;
|
|
}
|
|
|
|
.WeaponImage {
|
|
aspect-ratio: 200 / 418;
|
|
width: 200px;
|
|
height: auto;
|
|
|
|
@media (max-width: $medium-screen) {
|
|
width: 25vw;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.grid {
|
|
max-width: 160px;
|
|
|
|
.WeaponImage {
|
|
aspect-ratio: 160 / 92;
|
|
list-style-type: none;
|
|
width: 160px;
|
|
height: auto;
|
|
|
|
@media (max-width: $medium-screen) {
|
|
width: 20vw;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.filled h3 {
|
|
display: block;
|
|
}
|
|
|
|
&.filled ul {
|
|
display: flex;
|
|
}
|
|
|
|
& h3,
|
|
& ul {
|
|
display: none;
|
|
}
|
|
|
|
.WeaponImage {
|
|
background: white;
|
|
border: 1px solid rgba(0, 0, 0, 0);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 2px;
|
|
overflow: hidden;
|
|
transition: all 0.18s ease-in-out;
|
|
|
|
&:hover .icon {
|
|
color: #555;
|
|
}
|
|
|
|
&.editable .WeaponImage:hover {
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
box-shadow: rgba(0, 0, 0, 0.14) 0px 0px 14px;
|
|
cursor: pointer;
|
|
transform: $scale-wide;
|
|
}
|
|
|
|
h3 {
|
|
color: #333;
|
|
font-size: $font-regular;
|
|
font-weight: 500;
|
|
margin: 0;
|
|
text-align: center;
|
|
}
|
|
|
|
img {
|
|
position: relative;
|
|
width: 100%;
|
|
z-index: 2;
|
|
}
|
|
|
|
.icon {
|
|
position: absolute;
|
|
height: 20px;
|
|
width: 20px;
|
|
z-index: 1;
|
|
|
|
svg {
|
|
fill: #c9c9c9;
|
|
}
|
|
}
|
|
}
|
|
}
|