A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
TypeScript amazon-primeelectronepic-games-launcherepic-games-storeepic-storegaminggoggog-galaxyheroic-games-launcherlinuxplay-gamesprotonsteamwine
.selectFieldWrapper {
display: grid;
grid-template-areas: 'label' 'select';
}
.selectStyle,
.selectFieldWrapper .MuiOutlinedInput-root {
border-radius: var(--field-radius);
grid-area: select;
width: 100%;
height: var(--field-height);
background-color: var(--select-background);
font-family: var(--primary-font-family);
font-weight: var(--regular);
font-size: var(--body-md);
color: var(--field-color);
border: 1px solid var(--select-border);
box-shadow: none;
cursor: pointer;
transition:
background-color 150ms ease,
border-color 150ms ease,
box-shadow 150ms ease;
background-image:
linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%),
linear-gradient(to right, #ccc, #ccc);
background-position:
calc(100% - 20px) calc(50% + 1px),
calc(100% - 15px) calc(50% + 1px),
calc(100% - 40px) 50%;
background-size:
5px 5px,
5px 5px,
1px 70%;
background-repeat: no-repeat;
margin: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;
min-width: 100px;
}
/* Borderless: drop MUI's outlined fieldset border too */
.selectFieldWrapper .MuiOutlinedInput-notchedOutline {
border: none;
}
.selectFieldWrapper .MuiSelect-select.MuiSelect-select.MuiSelect-select {
display: flex;
align-items: center;
padding-inline: var(--space-md-fixed) 44px;
}
.selectFieldWrapper .MuiSelect-icon {
right: 14px;
}
/* Icon inset matches plain text */
.selectFieldWrapper.hasStartIcon .MuiOutlinedInput-root {
padding-inline-start: var(--space-md-fixed);
}
.selectFieldWrapper.hasStartIcon
.MuiInputAdornment-root.MuiInputAdornment-positionStart {
margin: 0;
margin-inline-end: var(--space-xs-fixed);
color: var(--text-secondary);
}
.selectFieldWrapper.hasStartIcon:not(.isRTL)
.MuiSelect-select.MuiSelect-select.MuiSelect-select {
/* Divider sits 40px from edge */
padding-inline: 0 calc(40px + var(--space-md-fixed));
}
.selectFieldWrapper.isRTL .MuiSelect-select.MuiSelect-select.MuiSelect-select {
padding-inline: var(--space-md-fixed) 44px;
}
.selectFieldWrapper.isRTL .MuiSelect-icon {
right: auto;
left: 14px;
}
.MuiPopover-root .MuiPaper-root {
color: var(--text-secondary);
background-color: var(--input-background);
}
.selectStyle {
text-indent: var(--space-sm);
padding-inline-end: 4rem;
white-space: nowrap;
}
.selectFieldWrapper.isRTL .MuiOutlinedInput-root,
.isRTL .selectStyle {
background-position:
15px calc(50% + 1px),
20px calc(50% + 1px),
40px 50%;
}
.selectFieldWrapper label {
text-align: start;
grid-area: label;
align-self: center;
}
.selectFieldWrapper__description {
grid-area: description;
margin-top: var(--space-3xs);
font-family: var(--primary-font-family);
font-size: var(--body-sm);
line-height: var(--leading-normal, 1.5);
color: var(--field-label-color, var(--text-secondary));
}
/* Make room for the description row when one is present */
.selectFieldWrapper:has(.selectFieldWrapper__description) {
grid-template-areas: 'label' 'description' 'select';
}
.selectFieldWrapper select:disabled {
cursor: not-allowed;
}
/* MUI's disabled text is unreadable */
.selectFieldWrapper .MuiOutlinedInput-root.Mui-disabled,
.selectFieldWrapper .MuiSelect-select.Mui-disabled {
color: var(--text-secondary);
-webkit-text-fill-color: var(--text-secondary);
cursor: not-allowed;
}
.selectFieldWrapper.small select {
width: clamp(150px, 10rem, 372px);
}
.selectFieldWrapper.smaller select {
width: 66px;
text-indent: 11px;
}
.selectFieldWrapper.small,
.selectFieldWrapper.smaller {
grid-template-areas: 'select label';
grid-template-columns: min-content 1fr;
}
.selectFieldWrapper.small label,
.selectFieldWrapper.smaller label {
margin: 0px var(--space-md);
}
.selectFieldWrapper select > option {
background: var(--navbar-background);
height: 40px;
color: var(--text-secondary);
text-indent: 22px;
font-size: var(--body-md);
border-radius: var(--radius-sm);
}
.selectFieldWrapper.rightButtons {
grid-template: 'label label' 'select buttons';
grid-template-columns: auto min-content;
grid-column-gap: 0.5rem;
}
.selectFieldWrapper.rightButtons label {
grid-area: label;
}
.selectFieldWrapper.rightButtons .rightButtons {
grid-area: buttons;
align-self: center;
}
.selectFieldWrapper.isRTL option {
direction: rtl;
}
.selectFieldWrapper button {
align-self: center;
justify-self: center;
}
.selectStyle:hover,
.selectFieldWrapper .MuiOutlinedInput-root:hover {
background-color: var(--select-background-hover);
border-color: var(--select-border-hover);
}
.selectStyle:focus,
.selectFieldWrapper .MuiOutlinedInput-root.Mui-focused {
outline: none;
border-color: var(--field-border-focus);
box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}
.selectFieldWrapper label {
margin-bottom: var(--space-xs-fixed);
font-family: var(--primary-font-family);
font-size: var(--body-sm);
font-weight: var(--medium);
color: var(--field-label-color);
}
.MuiPopover-root .MuiPaper-root.MuiMenu-paper {
margin-top: var(--space-xs-fixed);
border-radius: var(--field-radius);
background: var(--modal-background, var(--background));
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.MuiPopover-root .MuiPaper-root.MuiMenu-paper .MuiList-root {
padding: var(--space-2xs);
}
.MuiPopover-root .MuiPaper-root.MuiMenu-paper .MuiMenuItem-root {
gap: var(--space-xs-fixed);
padding: var(--space-xs-fixed) var(--space-sm-fixed);
border-radius: 8px;
font-family: var(--primary-font-family);
font-size: var(--body-md);
color: var(--text-default);
transition: background-color 150ms ease;
}
.MuiPopover-root .MuiPaper-root.MuiMenu-paper .MuiMenuItem-root:hover,
.MuiPopover-root
.MuiPaper-root.MuiMenu-paper
.MuiMenuItem-root.Mui-focusVisible,
.MuiMenuItem-root:hover,
.MuiMenuItem-root.Mui-focusVisible {
background-color: color-mix(
in oklab,
var(--selected, var(--accent)) 12%,
var(--input-background)
) !important;
}
.MuiPopover-root .MuiPaper-root.MuiMenu-paper .MuiMenuItem-root.Mui-selected {
background-color: color-mix(
in oklab,
var(--selected, var(--accent)) 18%,
var(--input-background)
) !important;
color: var(--text-default) !important;
}
.wineVersionOption {
display: inline-flex;
align-items: center;
gap: var(--space-sm-fixed);
min-width: 0;
}
.wineVersionOption__icon {
flex: 0 0 auto;
width: 20px;
height: 20px;
font-size: 20px;
}
.wineVersionOption__name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}