ui/spawnmenu/spawnmenu.razor.scss
@import "/UI/Theme.scss";
SpawnMenu
{
width: 100%;
height: 100%;
color: $menu-color;
justify-content: center;
font-family: $body-font;
font-size: 14px;
font-weight: 600;
z-index: 1000;
}
SpawnMenu .container
{
width: 100%;
height: 100%;
max-width: 1900px;
}
SpawnMenu .container .spawnmenuleft
{
transform: translateX( -100px );
transition: all 0.2s ease-in;
}
SpawnMenu .container .spawnmenuright
{
transform: translateX( 100px );
transition: all 0.2s ease-in;
}
SpawnMenuHost.open SpawnMenu
{
.container .spawnmenuleft
{
transform: translateX( 0px );
transition: all 0.1s ease-out;
}
.container .spawnmenuright
{
transform: translateX( 0px );
transition: all 0.1s ease-out;
}
}
.container .spawnmenuleft
{
flex-grow: 1;
padding: 128px 64px;
padding-right: 16px;
PanelSwitcher
{
padding-bottom: 128px;
}
}
.container .spawnmenuright
{
width: 700px;
flex-shrink: 0;
flex-grow: 0;
padding: 128px 64px;
padding-left: 16px;
}
.container > .spawnmenuleft,
.container > .spawnmenuright
{
flex-direction: column;
}
.container > .spawnmenuleft > .body,
.container > .spawnmenuright > .body
{
border-radius: 8px;
flex-grow: 1;
}
.tabs
{
font-size: 14px;
color: white;
font-weight: 650;
font-family: $subtitle-font;
margin-left: 8px;
z-index: 10;
flex-shrink: 0;
}
.tabs > *
{
padding: 0.5rem 1rem;
cursor: pointer;
color: #D1D7E3AA;
border-radius: 8px 8px 0 0;
background-color: #0c202faa;
opacity: 1;
border-right: 1px solid $menu-surface-soft;
gap: 0.4rem;
align-items: center;
}
.tabs > *:hover
{
color: $menu-color;
sound-in: ui.hover;
}
.tabs > *:active
{
color: $menu-text-strong;
sound-in: ui.select;
}
.tabs > *.active
{
opacity: 1;
color: $menu-text-strong;
cursor: pointer;
background-color: $menu-panel-bg;
pointer-events: none;
}
.container > .spawnmenuleft > .body,
.container > .spawnmenuright > .body
{
position: relative;
}
.container > .spawnmenuleft > .body > *,
.container > .spawnmenuright > .body > *
{
position: absolute;
height: 100%;
width: 100%;
}
.container > .spawnmenuleft > .body > .hidden,
.container > .spawnmenuright > .body > .hidden
{
opacity: 0;
pointer-events: none;
transition: all 0.1s linear;
transform: translateY( 20px );
}
.container > .spawnmenuleft > .body > .active,
.container > .spawnmenuright > .body > .active
{
opacity: 1;
transition: all 0.1s linear;
transform: translateY( 0px );
}
.container > .spawnmenuleft,
.container > .spawnmenuright
{
> .body
{
background-color: $menu-panel-bg;
}
}
.menuinner
{
background-color: #13161a88;
border-radius: 8px;
h1, h2
{
text-transform: uppercase;
font-size: 11px;
letter-spacing: 0.1em;
opacity: 0.5;
font-weight: 800;
padding: 8px 4px 2px 4px;
}
}
.spawnmenuright .body
{
.tab
{
flex-grow: 1;
flex-direction: row;
> .left
{
flex-grow: 0;
flex-shrink: 0;
flex-direction: column;
width: 180px;
padding: 8px;
.list
{
flex-direction: column;
background-color: #2225;
padding: 0.5rem;
border-radius: 6px;
height: 100%;
}
}
> .body
{
flex-direction: column;
flex-grow: 1;
padding: 8px;
margin: 8px;
overflow-x: hidden;
overflow-y: scroll;
}
ControlSheet .body
{
padding: 0;
margin: 0;
}
ControlSheet .controlgroup
{
padding: 0;
> .body
{
padding: 0;
}
}
ControlSheetGroup
{
> .body
{
padding: 0;
margin: 0;
gap: 2px;
}
}
.page
{
gap: 2px;
}
controlsheetrow, .control-row
{
width: 100%;
background-color: #53698111;
padding: 8px;
border-radius: 4px;
max-height: auto;
gap: 4px;
&:hover
{
background-color: #53698122;
> .left
{
color: #fff;
}
}
> .left
{
width: 150px;
overflow: hidden;
flex-shrink: 0;
gap: 4px;
}
> .right, > .left
{
flex-shrink: 0;
}
}
}
}
VirtualGrid
{
width: 100%;
height: 100%;
gap: 5px;
.cell
{
background-color: #7771;
border-radius: $hud-radius-sm;
border: 1px solid transparent;
cursor: pointer;
&:hover
{
background-color: $menu-accent-soft;
border-color: rgba($color-accent, 0.4);
}
&:active
{
background-color: $menu-accent;
padding: 2px;
}
}
}