Skip to content

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.

2.6 KB
Raw Blame
.gameList {
  color: var(--text-secondary);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  grid-gap: 1.75rem 1.25rem;
  padding: 0 var(--space-md-fixed) var(--space-3xl);
  margin: var(--space-md) 0;
}

.gameList.firstLane {
  padding: 0 var(--space-md-fixed);
  margin-block-end: 0;
}

.gameList.firstLane > div:has(.justPlayed) {
  grid-column: span 2;
}

.gameListLayout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  grid-auto-rows: minmax(76px, auto);
  align-items: stretch;
  gap: 10px;
  min-height: 0;
  padding: 0 var(--space-md-fixed) var(--space-md);
  margin: var(--space-md) 0;
}

/* When the library header is sticky, scroll-into-view must leave room for it,
   otherwise a focused card ends up hidden behind the toolbar. */
body:has(.libraryStickyTop) {
  scroll-padding-top: 220px;
}

.libraryStickyTop {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--gradient-body-background, var(--body-background));
}

.libraryHeader {
  text-align: start;
  padding: var(--space-md) var(--space-md-fixed);
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--semibold);
  letter-spacing: -0.01em;
}

.frameless:not(.fullscreen) .libraryHeader {
  padding-right: calc(
    var(--overlay-controls-width) - env(titlebar-area-x, 0px) + 10px
  );
}

#backToTopArrow {
  font-size: 28px;
}

#backToTopBtn {
  position: fixed;
  right: var(--space-xl-fixed);
  bottom: var(--space-xl-fixed);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-neutral-700) 92%, transparent);
  color: var(--text-default);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  visibility: hidden;
  cursor: pointer;
  transition: background-color 150ms ease;
}

#backToTopBtn:hover {
  background: color-mix(
    in oklab,
    var(--on-panel) 14%,
    color-mix(in srgb, var(--color-neutral-700) 92%, transparent)
  );
}

#backToTopBtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.listing {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-block-end: calc(44px + 2 * var(--space-xl-fixed));
}

.librarySectionHeader {
  padding-inline: var(--space-md-fixed);
  margin-block: var(--space-2xl-fixed) var(--space-md-fixed);
}

.librarySectionHeader:first-of-type {
  margin-block-start: var(--space-md-fixed);
}

.frameless:not(.fullscreen) .librarySectionHeader {
  padding-right: calc(
    var(--overlay-controls-width) - env(titlebar-area-x, 0px) + 10px
  );
}