Skip to content

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

1.9 KB
Raw Blame
.storeCard {
  display: flex;
  height: 100%;
  background: var(--panel-surface, var(--background-darker));
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition:
    transform 150ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 150ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .storeCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.55);
    transition-duration: 200ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storeCard:hover {
    transform: none;
  }
}

.storeCard .storeCard__card.Panel {
  flex: 1;
  background: transparent;
  border-radius: 0;
  gap: var(--space-lg-fixed);
}

.storeCard .storeCard__badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
}

.storeCard .storeCard__status {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.storeCard__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md-fixed);
  width: 100%;
}

.storeCard__actionRow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--space-sm-fixed);
  width: 100%;
}

.storeCard__actionRow--withAlternative {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.storeCard__actionRow--withAlternative
  > .Button:not(.storeCard__alternativeLogin) {
  flex: 1 1 auto;
}

.storeCard__actions .Button {
  transition:
    transform 120ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.storeCard__actions .Button:active:not(:disabled) {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .storeCard__actions .Button:active:not(:disabled) {
    transform: none;
  }
}

.storeCard.disabled {
  opacity: 0.5;
  pointer-events: none;
}