ui/controls/resourceselectpopup.razor.scss
@import "/UI/Popup.scss";
@import "/UI/Theme.scss";
ResourceSelectPopup.popup .inner
{
@include ui-block;
width: 1000px;
height: 820px;
max-width: 90vw;
max-height: 90vh;
gap: 8px;
font-family: $body-font;
font-size: $ui-settings-font;
color: $ui-text;
// the title bar and the grid, one white section like the windows of UIModal
.list
{
@include ui-section;
flex-direction: column;
flex-grow: 1;
min-height: 0px;
padding: 1px;
}
.popup-header
{
@include ui-title-bar;
margin: 0;
height: auto;
min-height: 44px;
padding: 0 10px;
gap: 8px;
h2
{
flex-grow: 1;
font-family: $body-font;
font-size: $ui-settings-font;
font-weight: 800;
height: auto;
color: white;
}
.search
{
@include ui-text-entry;
flex-grow: 0;
width: 205px;
min-width: 205px;
text-transform: none;
}
.sort-dropdown
{
flex-grow: 0;
width: 170px;
text-transform: none;
}
}
}
ResourceSelectPopup.popup .inner .grid
{
@include ui-scroll;
width: 100%;
flex-grow: 1;
min-height: 0px;
padding: 10px;
gap: 10px;
}
ResourceSelectPopup.popup .inner .grid .item
{
width: 100%;
height: 100%;
padding: 10px;
gap: 0px;
position: relative;
flex-direction: column;
color: $ui-text-strong;
font-size: $ui-settings-font;
background-color: $ui-row-alt;
border: 1px solid $ui-separator;
border-radius: 2px;
cursor: pointer;
pointer-events: all;
.icon
{
width: 100%;
flex-grow: 1;
min-height: 0px;
margin-bottom: 10px;
background-color: $ui-tile-bg;
background-position: center;
background-size: contain;
background-repeat: no-repeat;
}
.title
{
font-weight: 700;
line-height: 15px;
font-size: $ui-settings-font;
flex-shrink: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.desc
{
font-size: 11px;
flex-shrink: 0;
line-height: 15px;
color: $ui-text-muted;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&:hover
{
background-color: $ui-popup-hover;
border-color: $ui-control-border;
sound-in: ui.hover;
}
&:active
{
sound-in: ui.select;
}
&.active
{
background-color: $ui-hover-fill;
border-color: $ui-blue;
}
}
// icon only, the title is in the tooltip
ResourceSelectPopup.popup .inner .grid.size-small .item
{
padding: 6px;
.icon
{
margin-bottom: 0px;
}
.title, .desc
{
display: none;
}
}
ResourceSelectPopup.popup .inner .popup-footer
{
flex-direction: row;
justify-content: flex-end;
flex-shrink: 0;
gap: 8px;
UIButton
{
width: 146px;
pointer-events: all;
}
}
// the loader is made for the gray menu, here it sits on the white list
ResourceSelectPopup.popup .inner .list UILoadingState
{
flex-grow: 1;
color: $ui-text-muted;
.spinner
{
color: $ui-text-disabled-hover;
}
}