Default Checklist Scss File

$cl-border-radius: 16px;

.cl-container {
  position: relative;
  height: 100vh;
  background-color: white;
  border-radius: $border-radius;
}

.cl-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cl-top {
  padding: 0.75rem 1rem 0.5rem 1rem;
  border-bottom: 1px solid $lightGray;
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 2147483600;
  border-top-left-radius: $border-radius;
  border-top-right-radius: $border-radius;
}

.cl-message {
  border-bottom: 1px solid $lightGray;
}

.cl-body {
  flex-grow: 1 !important;
  overflow-y: scroll;
}

.cl-btm {
  position: sticky;
  bottom: 0;
  background-color: white;
  text-align: center;
  width: 100%;
  padding: 0.25rem 1rem;
  border-top: 1px solid $lightGray;
  z-index: 2147483600;
  border-bottom-left-radius: $border-radius;
  border-bottom-right-radius: $border-radius;
}

.cl-item {
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-direction: row;
  font-size: 0.95rem;
  &.cl-item--active {
    background-color: lighten($primary, 45%);
    .cl-item__icon {
      g {
        fill: $primary;
      }
    }
    .cl-item__title {
      font-weight: 500;
    }
  }
  &.cl-item--completed {
    background-color:lighten($success, 45%);
    .cl-item__icon {
      g {
        fill: $success;
      }
    }
    .cl-item__title {
      font-weight: 400;
      color: $gray;
      text-decoration: line-through;
    }
  }
  button {
    min-width: 80px;
  }
}

.cl-item__icon {
  cursor: pointer;
}

.cl-item__title {
  cursor: pointer;
  margin-bottom: 0.25rem;
}

.cl-item__detail {
  font-size: 0.9rem;
  font-weight: 300;
  color: $text-muted;
  margin-bottom: 0.25rem;
}

.cl-item__video {
  padding: 0.25rem 0rem;
  margin-bottom: 0.25rem;
  opacity: 0.5;
  &:hover {
    opacity: 0.7;
    cursor: pointer;
  }
  iframe {
    pointer-events: none;
    border-radius: $border-radius;
  }
}

.cl-item__image {
  padding: 0.25rem 0rem;
  margin-bottom: 0.25rem;
  &:hover {
    cursor: pointer;
  }
}

.video-player {
  iframe {
    border-radius: $border-radius;
    max-width: 100%;
  }
}

.video-image {
  width: 300px; 
  height: 160px; 
  background-size: cover;
  background-position: center;
  border-radius: 0.45rem;
  text-align: center;
  padding-top: 50px;
  svg {
    box-shadow: $box-shadow;
    border-radius: 50rem;
  }
}

.loop-video-image {
  width: 300px; 
  height: 160px; 
  position: relative;
  video {
    width: 300px; 
    height: 160px; 
  }
  svg {
    position: absolute;
    box-shadow: $box-shadow;
    border-radius: 50rem;
    left: 120px;
    top: 45px;
  }
}

.cl-container--new-intercom-style {
  border-radius: $cl-border-radius;
  .cl-top {
    border-top-left-radius: $cl-border-radius;
    border-top-right-radius: $cl-border-radius;
  }
  .cl-btm {
    border-bottom-left-radius: $cl-border-radius;
    border-bottom-right-radius: $cl-border-radius;
  }
}

.cl-container--fit-size {
  height: auto;
  .cl-inner {
    height: auto;
  }
  .cl-btm {
    position: inherit;
    bottom: auto;
  }
}

Last updated

Was this helpful?