ui/spawnmenuicon.razor.scss
@import "/UI/Theme.scss";
SpawnMenuIcon
{
flex-direction: column;
justify-content: center;
align-items: center;
flex-grow: 1;
width: 100%;
height: 100%;
position: relative;
overflow: visible;
padding: 6px;
background-color: $ui-tile-bg;
cursor: pointer;
transition: transform 0.03s ease-in-out, background-color 0.03s ease-in-out;
.thumb
{
@include ui-tile-thumb;
}
.developer-badge
{
position: absolute;
top: 8px;
right: 8px;
font-size: 1.2rem;
pointer-events: none;
}
// white 1px outline all the way round, the name sits just inside it
&::before
{
content: "";
position: absolute;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
border: 1px solid $ui-tile-outline;
opacity: 0;
pointer-events: none;
}
.title
{
@include ui-tile-title;
opacity: 0;
pointer-events: none;
}
&:hover
{
sound-in: ui.hover;
&::before
{
opacity: 1;
}
.title
{
opacity: 1;
}
}
&:active
{
sound-in: ui.select;
transform: scale( 0.9 );
background-color: rgba( 255, 255, 255, 0.75 );
}
}
.size-small SpawnMenuIcon
{
padding: 4px;
.developer-badge
{
top: 5px;
right: 5px;
}
}
.size-large SpawnMenuIcon
{
padding: 8px;
.title
{
height: 32px;
font-size: 12px;
}
}