Skip to content
Snippets Groups Projects
components.scss 57.3 KiB
Newer Older
  .onboarding-modal__page-one__elephant-friend {
    width: 100%;
    height: 30vh;
    max-height: 160px;
    margin-bottom: 5vh;
  }
}

Eugen's avatar
Eugen committed
.onboarding-modal__page-two,
.onboarding-modal__page-three,
.onboarding-modal__page-four,
.onboarding-modal__page-five {
  p {
    text-align: left;
  }

  .figure {
    background: darken($ui-base-color, 8%);
    color: $ui-secondary-color;
Eugen's avatar
Eugen committed
    margin-bottom: 20px;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
Eugen's avatar
Eugen committed

    .onboarding-modal__image {
      border-radius: 4px;
      margin-bottom: 10px;
    }

    &.non-interactive {
      pointer-events: none;
      text-align: left;
    }
  }
}

.onboarding-modal__page-four__columns {
  .row {
    display: flex;
    margin-bottom: 20px;

    & > div {
      flex: 1 1 0;
      margin: 0 10px;

      &:first-child {
        margin-left: 0;
      }

      &:last-child {
        margin-right: 0;
      }

      p {
        text-align: center;
      }
    }

    &:last-child {
      margin-bottom: 0;
    }
  }

  .column-header {
    color: $primary-text-color;
@media screen and (max-width: 320px) and (max-height: 600px) {
  .onboarding-modal__page p {
    font-size: 14px;
    line-height: 20px;
  }

  .onboarding-modal__page-two .figure,
  .onboarding-modal__page-three .figure,
  .onboarding-modal__page-four .figure,
  .onboarding-modal__page-five .figure {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .onboarding-modal__page-four__columns .row {
    margin-bottom: 10px;
  }

  .onboarding-modal__page-four__columns .column-header {
    padding: 5px;
    font-size: 12px;
  }
}

Eugen's avatar
Eugen committed
.onboarding-modal__image {
  border-radius: 8px;
  width: 70vw;
  max-width: 450px;
  max-height: auto;
  display: block;
  margin: auto;
  margin-bottom: 20px;
}

.onboard-sliders {
  display: inline-block;
  max-width: 30px;
  max-height: auto;
  margin-left: 10px;
}

.boost-modal,
.confirmation-modal {
  background: lighten($ui-secondary-color, 8%);
  color: $ui-base-color;
Eugen Rochko's avatar
Eugen Rochko committed
  border-radius: 8px;
  overflow: hidden;
blackle's avatar
blackle committed
  max-width: 90vw;
  width: 480px;
  position: relative;
Eugen Rochko's avatar
Eugen Rochko committed
  flex-direction: column;

  .status__display-name {
    display: block;
    max-width: 100%;
    padding-right: 25px;
  }

  .status__avatar {
    height: 28px;
    left: 10px;
    position: absolute;
    top: 10px;
    width: 48px;
  }
Eugen Rochko's avatar
Eugen Rochko committed
.boost-modal__container {
Eugen Rochko's avatar
Eugen Rochko committed
  padding: 10px;

  .status {
    user-select: text;
    border-bottom: 0;
blackle's avatar
blackle committed
  }
.boost-modal__action-bar,
.confirmation-modal__action-bar {
Eugen Rochko's avatar
Eugen Rochko committed
  display: flex;
  background: $ui-secondary-color;
Eugen Rochko's avatar
Eugen Rochko committed
  padding: 10px;
  line-height: 36px;
Eugen Rochko's avatar
Eugen Rochko committed
  & > div {
    flex: 1 1 auto;
    text-align: right;
    color: lighten($ui-base-color, 33%);
Eugen Rochko's avatar
Eugen Rochko committed
    padding-right: 10px;
  }

  .button {
    flex: 0 0 auto;
.boost-modal__status-header {
  font-size: 15px;
}

.boost-modal__status-time {
  float: right;
  font-size: 14px;
}

.confirmation-modal {
  max-width: 280px;

  @media screen and (min-width: 480px) {
    max-width: 380px;
  }
}

.confirmation-modal__action-bar {
  & > div {
    text-align: left;
    padding: 0 16px;
  }

  a {
    color: darken($ui-secondary-color, 34%);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;

    &:hover,
    &:focus,
    &:active {
      color: darken($ui-secondary-color, 38%);
    }
  }
}

.confirmation-modal__container {
  padding: 30px;
  font-size: 16px;
  text-align: center;

  strong {
    font-weight: 500;
  }
}

  background-color: $ui-highlight-color;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
}

.media-gallery__gifv__label {
  display: block;
  position: absolute;
  color: $primary-text-color;
  background: rgba($base-overlay-background, 0.5);
  bottom: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.1s ease;
}

.media-gallery__gifv {
  &.autoplay {
    .media-gallery__gifv__label {
      display: none;
    }
  }

  &:hover {
    .media-gallery__gifv__label {
      opacity: 1;
    }
  }
}

.attachment-list {
  display: flex;
  font-size: 14px;
  border: 1px solid lighten($ui-base-color, 8%);
  border-radius: 4px;
  margin-top: 14px;
  overflow: hidden;
}

.attachment-list__icon {
  flex: 0 0 auto;
  color: lighten($ui-base-color, 26%);
  padding: 8px 18px;
  cursor: default;
  border-right: 1px solid lighten($ui-base-color, 8%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 26px;

  .fa {
    display: block;
  }
}

.attachment-list__list {
  list-style: none;
  padding: 4px 0;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  li {
    display: block;
    padding: 4px 0;
  }

  a {
    text-decoration: none;
    color: lighten($ui-base-color, 26%);
    font-weight: 500;

    &:hover {
      text-decoration: underline;
    }
  }
}

/* Media Gallery */
.media-gallery {
  box-sizing: border-box;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.media-gallery__item {
  border: none;
  box-sizing: border-box;
  display: block;
  float: left;
  position: relative;
}

.media-gallery__item-thumbnail {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: zoom-in;
  display: block;
  height: 100%;
  text-decoration: none;
  width: 100%;
}

.media-gallery__gifv {
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.media-gallery__item-gifv-thumbnail {
  cursor: zoom-in;
  height: 100%;
  object-fit: cover;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 1;
}

.media-gallery__item-thumbnail-label {
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  position: absolute;
}
/* End Media Gallery */

/* Status Video Player */
.status__video-player {
  background: $base-overlay-background;
  box-sizing: border-box;
  cursor: default; /* May not be needed */
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}

.status__video-player-video {
  height: 100%;
  object-fit: cover;
  position: relative;
  top: 50%;
  transform: translateY(-35%);
  width: 100%;
  z-index: 1;
}

.status__video-player-expand,
.status__video-player-mute {
  color: $primary-text-color;
  opacity: 0.8;
  position: absolute;
  right: 4px;
  text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  color: $primary-text-color;
  left: 4px;
  position: absolute;
  text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  top: 4px;
  z-index: 100;

  &.status__video-player-spoiler--visible {
    display: block;
  }
  z-index: 100;
}

.status__video-player-mute {
  z-index: 5;
}

.media-spoiler-video {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  margin-top: 8px;
  position: relative;
}

.media-spoiler-video-play-icon {
  border-radius: 100px;
  color: rgba($primary-text-color, 0.8);
  padding: 5px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* End Video Player */

.account-gallery__container {
  margin: -2px;
  padding: 4px;
}

.account-gallery__item {
  float: left;
  width: 96px;
  height: 96px;
  margin: 2px;

  a {
    display: block;
    width: 100%;
    height: 100%;
    background-color: $base-overlay-background;
    background-size: cover;
    background-position: center;
    position: relative;
  }
}

.account-section-headline {
  color: lighten($ui-base-color, 26%);
  background: lighten($ui-base-color, 2%);
  border-bottom: 1px solid lighten($ui-base-color, 4%);
  padding: 15px 10px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  cursor: default;

  &::before,
  &::after {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 18px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px;
    border-color: transparent transparent lighten($ui-base-color, 4%);
  }

  &::after {
    bottom: -1px;
    border-color: transparent transparent $ui-base-color;
  }
}