Skip to content

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

1.8 KB
Raw Blame
.SteamGridDBPicker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 70vh;
  overflow: hidden;

  &__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--panel-divider);
    padding-bottom: var(--space-xs);

    h3 {
      margin: 0;
    }
  }

  &__title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  &__loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
  }

  &__error {
    color: var(--text-destructive);
    padding: var(--space-md);
    background: var(--bg-destructive-subtle);
    border-radius: var(--radius-xs);
  }

  &__games {
    overflow-y: auto;
    max-height: 200px;

    h4 {
      margin-bottom: 0.5rem;
    }

    ul {
      list-style: none;
      padding: 0;
      margin: 0;

      li {
        padding: 0.5rem;
        cursor: pointer;
        border-radius: var(--radius-xs);

        &:hover {
          background: color-mix(in oklab, var(--on-panel) 10%, transparent);
        }
      }
    }
  }

  &__grids {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    overflow-y: scroll;
    max-height: 300px;
    padding-bottom: 1rem;
  }

  &__grid-item {
    cursor: pointer;
    height: 150px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 2/3;
    transition:
      transform 0.2s,
      outline 0.2s;
    background: var(--background-darker);

    &:hover {
      transform: scale(1.05);
      outline: 2px solid var(--accent);
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  &--heroes &__grid-item {
    height: 100px;
    aspect-ratio: 1600 / 650;
  }

  &__no-results {
    text-align: center;
    padding: var(--space-md);
    color: var(--text-neutral-muted);
  }
}