_alert-screen.scss 1.44 KiB
Newer Older
Luke Schoen's avatar
Luke Schoen committed
.alert-wrapper {
  position: relative;
}

Luke Schoen's avatar
Luke Schoen committed
.alert-modal-wrapper {
Luke Schoen's avatar
Luke Schoen committed
  // background: $chrome;
Luke Schoen's avatar
Luke Schoen committed
  background: red;
  top: 3rem;
  left: 0;
  right: 0;
  bottom: -2px;
  height: auto;
  overflow: hidden;
  position: absolute;
  z-index: 2;
}
Luke Schoen's avatar
Luke Schoen committed
.alert-modal {
  margin-top: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
Luke Schoen's avatar
Luke Schoen committed
.alert-modal-content {
  background: green;

  &.image,
  &.description {
    text-align: center;
  }
}

.alert-screen {
  // FULL SCREEN OVERLAY
  position: absolute;
Luke Schoen's avatar
Luke Schoen committed
  top: 3rem;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
Luke Schoen's avatar
Luke Schoen committed
  background: $chrome;
Luke Schoen's avatar
Luke Schoen committed
  z-index: 2;
Luke Schoen's avatar
Luke Schoen committed

  display: flex;
  align-items: center;
  justify-content: center;

  // PARTIAL SCREEN OVERLAY

  // position: absolute;
  // top: 50%;
  // left: 50%;
  // transform: translate(-50%, -50%);
  // height: auto;
  // background: rgba(184, 184, 184, 0.5);
  // z-index: 2;
  // padding: 1rem;

  .alert-screen_image {
    display: flex;
    align-items: center;
    justify-content: center;
    img {
      display: block;
Luke Schoen's avatar
Luke Schoen committed
  // &.-full-screen {
  //   top: 0;
  // }
  .alert-screen_text {
    margin-top: 1rem;
    text-align: center;
    white-space: pre-line;
    h1,
    h2,
    big,
    strong {
      font-size: ms(1);
      line-height: ms(1) * 1.3;
      margin-bottom: 0.25rem;
    }

    p {
      color: $grey;
Thibaut Sardan's avatar
Thibaut Sardan committed
      font-size: 0.8rem;
      line-height: 1.4;