Skip to content

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

2.2 KB
Raw Blame
.EditGameDialog {
  width: 100%;

  .editGameGrid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);

    .imageIcons {
      display: flex;
      flex-direction: row;
      gap: var(--space-xl);
      justify-content: start;
      margin-top: var(--space-md);

      .previewItem {
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);

        .previewLabel {
          font-size: var(--body-sm);
          color: var(--text-neutral-muted);
          font-weight: var(--semibold);
        }
      }
    }

    .appImageContainer {
      position: relative;
      border-radius: var(--radius-sm);
      overflow: hidden;
      border: 2px solid var(--panel-border);
      transition: 200ms;
      width: 400px;

      &:has(.appImage.square) {
        width: 200px;
      }

      &.hasSgdbKey {
        cursor: pointer;

        &:hover {
          border-color: var(--accent);
          transform: scale(1.02);

          .imageHoverOverlay {
            opacity: 1;
          }

          .appImage {
            filter: blur(2px) brightness(0.7);
          }
        }
      }
    }

    .appImage {
      aspect-ratio: 16 / 9;
      object-fit: cover;
      display: block;
      width: 100%;
      transition: 200ms;

      &.square {
        aspect-ratio: 3/4;
      }
    }

    .imageHoverOverlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      background: rgba(0, 0, 0, 0.5);
      transition: 200ms;
      color: var(--ink-on-overlay);
      pointer-events: none;
      opacity: 0;
    }

    .editGameForm {
      display: flex;
      flex-direction: column;
      gap: var(--space-md);
      padding-top: var(--space-xs);
    }

    .advancedFields {
      summary {
        cursor: pointer;
        font-size: var(--body-sm);
        color: var(--text-neutral-muted);
        font-weight: var(--semibold);
        padding: var(--space-xs) 0;
        user-select: none;
      }

      &[open] {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
      }
    }
  }
}