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
.dropdownContainer {
position: relative;
.button {
padding-inline: 2rem;
}
.dropdownButton.pill {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--input-background);
color: var(--text-default, var(--text-secondary));
border: 1px solid transparent;
border-radius: var(--radius-sm);
padding: 0 18px;
height: 44px;
font-family: var(--primary-font-family);
font-size: var(--text-md);
font-weight: var(--medium);
cursor: pointer;
transition:
border-color 150ms ease,
background-color 150ms ease,
color 150ms ease;
&:hover {
border-color: var(--divider);
color: var(--text-default);
}
&:focus-visible {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}
svg {
flex-shrink: 0;
}
}
.dropdown.expanded {
pointer-events: all;
opacity: 1;
visibility: visible;
transition:
opacity 200ms,
max-height 200ms,
box-shadow 200ms,
visibility 0s linear 0s;
max-height: 80vh;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
overflow-y: auto;
}
.dropdown {
position: absolute;
top: calc(100% + 8px);
right: 0px;
min-width: 320px;
display: flex;
border-radius: var(--radius-sm);
flex-direction: column;
background: var(--modal-background, var(--background));
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
opacity: 0;
visibility: hidden;
transition:
opacity 200ms,
max-height 200ms,
box-shadow 200ms,
visibility 0s linear 200ms;
pointer-events: none;
max-height: 0;
overflow: hidden;
gap: var(--space-sm);
padding: var(--space-md);
}
}
body.isRTL .dropdownContainer .dropdown {
right: auto;
left: 0px;
}