Sha256: e78880aa837ef616bcf94e243ec0060a77cd891308e75c094a585d8a2ce09087

Contents?: true

Size: 1.65 KB

Versions: 31

Compression:

Stored size: 1.65 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;
  }
}

.drawer-btn {
  cursor: pointer;
  margin-left: 8px;
  @include font($size: $t4-text, $color: $brand-color);
}

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
cm-admin-0.8.9 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.8.8 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.8.7 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.8.6 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.8.5 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.8.4 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.8.3 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.8.2 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.8.1 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.8.0 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.7.8 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.7.7 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.7.6 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.7.5 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.7.4 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.7.3 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.7.2 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.7.1 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.7.0 app/assets/stylesheets/cm_admin/components/_drawer.scss
cm-admin-0.6.9 app/assets/stylesheets/cm_admin/components/_drawer.scss