Skip to content

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

1.7 KB
Raw Blame
.Alert {
  --alert-tone: var(--text-neutral-muted);

  display: flex;
  align-items: flex-start;
  gap: var(--space-sm-fixed);
  width: 100%;
  padding: var(--space-md-fixed) var(--space-md-fixed);
  border-radius: var(--radius-none);
  background: color-mix(in oklab, var(--alert-tone) 14%, var(--panel-base));
  font-family: var(--primary-font-family);
  font-size: var(--body-md);
  line-height: var(--leading-normal, 1.5);
  color: var(--text-neutral);
  text-align: start;
}

.Alert__icon {
  flex-shrink: 0;
  margin-block-start: 1px;
  color: color-mix(in oklab, var(--alert-tone) 52%, var(--on-panel));
}

.Alert__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs-fixed);
  min-width: 0;
  flex: 1;
}

.Alert__title {
  font-weight: var(--semibold);
  color: var(--text-neutral);
}

.Alert__message {
  color: var(--text-neutral-muted);
}

.Alert__message a {
  color: var(--text-neutral);
  text-decoration: underline;
}

.Alert__actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs-fixed);
  flex-shrink: 0;
}

.Alert__actions--block {
  margin-block-start: var(--space-sm-fixed);
}

.Alert .Button.Button--link {
  color: color-mix(in oklab, var(--alert-tone) 52%, var(--on-panel));
}

.Alert .Button.Button--link:hover:not(:disabled),
.Alert .Button.Button--link:focus-visible:not(:disabled) {
  color: color-mix(in oklab, var(--alert-tone) 68%, var(--on-panel));
}

.Alert--neutral {
  --alert-tone: var(--text-neutral-muted);
}

.Alert--info {
  --alert-tone: var(--role-info);
}

.Alert--success {
  --alert-tone: var(--role-success);
}

.Alert--warning {
  --alert-tone: var(--role-warning);
}

.Alert--error {
  --alert-tone: var(--role-destructive);
}