.styleguide {
  .container > section {
    margin: 7rem 0;
    > .row {
      margin-bottom: 2rem;
    }
  }

  .title-styleguide {
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.1rem solid $gray-500;
  }

  pre {
    display: flex;
  }
  code {
    display: block;
    padding: ($grid-gutter-width/2) ($grid-gutter-width/1.5);
    width: 100%;
    font-size: 1rem;
    text-align: left;
    white-space:pre-line;
    border: 0.1rem solid $gray-300;
    background-color: $white;
  }

  // COLORS
  .styleguide-color {
    display: block;
    position: relative;
    width: 100%;
    height: 10rem;
    margin-bottom: 1rem;
    border: 0.1rem solid $gray-400;
    &:before, &:after {
      content : '';
      display: flex;
      justify-content: center;
      position: absolute;
      width: 100%;
      height: 2rem;
      font-size: 1.2rem;
      background: $white;
    }
    &:before {
      align-items: flex-end;
      bottom: 2rem;
      border-top: 0.1rem solid $gray-400;
    }
    &:after {
      align-items: flex-start;
      bottom: 0;
    }
    @each $color, $value in $theme-colors {
      &.bg-#{$color} {
        &:before {
          content : '$#{$color}';
        }
        &:after {
          content : '#{$value}';
        }
      }
    }
    @each $color, $value in $grays {
      &.bg-gray-#{$color} {
        &:before {
          content : '$gray-#{$color}';
        }
        &:after {
          content : '#{$value}';
        }
      }
    }
  }

  // ICONS
  .icon-wrapper {
    .col-icon {
      margin-bottom: 2rem;
      text-align: center;
      font-size: 1.3rem;
      line-height: 1;
    }
    .styleguide-icon {
      border: 0.1rem solid $gray-400;
      svg {
        height: 3rem;
        margin: 0.5rem auto;
      }
      span {
        display: block;
        padding: 0.5rem;
        font-size: 1.2rem;
        border-top: 0.1rem solid $gray-400;
      }
    }
  }

  // BUTTONS
  .btn-wrapper {
    .btn {
      margin: 0.5rem 0;
    }
    .bg-gray-400 {
      padding-top: 1rem;
      padding-bottom: 1rem;
      margin-top: 2rem;
      margin-bottom: 2rem;
    }
  }

  // COMPONENTS
  .component-wrapper {
    .btn-back-top {
      position: static;
    }
    [data-simplebar] {
      max-height: 20rem;
    }
  }

  // BLOCK
  .block-wrapper {
    hr {
      margin: 4rem 0;
    }
  }
}

/* RESPONSIVE */
/***************************************/

@include media-breakpoint-up(md) {
  .styleguide {
    .menu-Styleguide {
      position: fixed;
      left: 1%;
      top: 50%;
      z-index: 10;
      background: $white;
      transform: translateY(-50%);

      .nav-item {
        display: block;
        padding: 1rem 1.5rem;
      }
    }

    // BLOCK
    .block-wrapper {
      hr {
        margin: 9rem 0;
      }
      pre {
        margin-top: -7rem;
      }
      .block-banner + pre, .block-banner-row + pre {
        margin-top: 2rem;
      }
    }
  }
}
