@import 'variables';
@import 'mixins';

body {
  @include themeable(background, theme-background, $lightest-gray);
  @include themeable(color, theme-color, $black);
  font-family: $helvetica;
  font-size: 18px;
  padding: 0 !important;
  margin: 0 !important;
  margin-top: -20px !important;
  overflow-y: scroll;
}

*:focus {
  &:active {
    outline: 0;
  }
}

*:focus:not(.focus-visible) {
  outline: none;
}

.ptr--ptr {
  margin-top: 70px;
  margin-bottom: -70px;
}

.modal-open {
  margin: 0;
  overflow: hidden;
  overflow-y: hidden;
  height: 90vh;
}

.zen-mode {
  .top-bar,
  .primary-sticky-nav,
  .article-actions {
    display: none !important;
  }
}

.config_minimize_newest_listings {
  #sidebar-listings-widget {
    .widget-body {
      display: none !important;
    }
  }
}

.universal-page-content-wrapper {
  overflow: hidden;
  min-height: 88vh;
  visibility: visible;
  &.stories-index,
  &.notifications-index,
  &.stories-search,
  &.podcast_episodes-index,
  &.reading_list_items-index,
  &.history-index,
  .tags-index,
  &.twitch_live_streams-show {
    margin-top: 68px;
  }
}

pre {
  background-color: #2b2b32;
  padding: 10px;
  font-size: 15px;
}

a {
  @include themeable(color, theme-anchor-color, $sky-blue);
  text-decoration: none;
  &:hover {
    opacity: 0.9;
  }
}

div {
  &.field,
  &.actions {
    margin-bottom: 5px;
  }
}

#instantclick {
  display: none;
}

pre {
  background: #29292e;
  border-radius: 2px;
  overflow-x: scroll;
  font-size: 11px;
  color: #eff0f9;
  line-height: 1.42em;
  font-size: 13px;
  width: calc(100% - 25px);
  @media screen and (min-width: 380px) {
    font-size: 15px;
  }
  code {
    background: #29292e;
    color: #eff0f9;
    white-space: pre;
  }
}

.cta {
  color: $black;
  background: $green;
  font-family: $helvetica-condensed;
  -webkit-appearance: none;
  font-stretch: condensed;
  font-weight: bold;
}

button {
  cursor: pointer;
}

input[type='submit'] {
  cursor: pointer;
}

input[type='text'],
textarea,
input[type='url'],
input[type='email'] {
  outline: 0;
}

.snackbar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  @include themeable(
    background,
    theme-container-accent-background,
    $light-purple
  );
  @include themeable(border, container-border, 2px solid $purple);
  padding: 12px 30px;
  z-index: 20;
  border-radius: 3px;
  font-weight: bold;
  @media screen and (min-width: 430px) {
    right: auto;
    display: inline-block;
    -webkit-animation: ease-out;
    -webkit-animation-name: slide-in-from-left;
    -webkit-animation-duration: 0.25s;
  }
}

@-webkit-keyframes slide-in-from-left {
  0% {
    left: -300px;
  }
  50% {
    left: 0px;
  }
  90% {
    left: 24px;
  }
  100% {
    left: 20px;
  }
}
