Sha256: 137b89ff9b86c2f0fe15040f532d7a66f5c2fe5b6f1d8b081c55b868cf327319

Contents?: true

Size: 1.54 KB

Versions: 2

Compression:

Stored size: 1.54 KB

Contents

@import "../helpers/index.scss";

.cm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-color: rgba(0, 0, 0, .7);
  &__container {
    position: relative;
    width: 360px;
    height: 100%;
    background: $white;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.16);
    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 24px;
      background: #F8F9FA;
      &__lhs {
        .title {
          font-family: $primary-font;
          font-size: $t1-text;
          font-weight: 600;
          line-height: 28px;
          color: $primary-text-clr;
          margin-bottom: 8px;
        }
        .description {
          font-family: $primary-font;
          font-size: $t4-text;
          line-height: 22px;
          color: $primary-text-clr;
          margin-bottom: 0;
        }
      }
      &__rhs {
        color: $ink-lighter-clr;
      }
    }
    .body {
      padding: 24px;
      .info-text {
        font-family: $primary-font;
        font-size: $t4-text;
        line-height: 22px;
        color: $primary-text-clr;
      }
    }
  }
}

.drawer-slide-in {
  animation: slideInLeft .3s ease-in forwards;
}

.drawer-slide-out {
  animation: slideOutLeft .3s ease-in forwards;
}

@keyframes slideInLeft {
  0% {
     left: -400px;
     opacity: 0;
  }
  100% {
      left: 0;
     opacity: 1;
  }
}

@keyframes slideOutLeft {
  0% {
     left: 0;
     opacity: 1;
  }
  100% {
      left: -400px;
     opacity: 0;
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cm-admin-0.5.6 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.5.5 app/assets/stylesheets/cm_admin/components/_drawer.scss