.styleguide {
  section {
    margin: 70px 0;
    > .row {
      margin-bottom: 20px;
    }
  }

  .title-styleguide {
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid $gray-500;
  }

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

  // COLORS
  .styleguide-color {
    display: block;
    position: relative;
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    border: 1px solid $gray-400;
    &:before, &:after {
      content : '';
      display: flex;
      justify-content: center;
      position: absolute;
      width: 100%;
      height: 20px;
      font-size: 12px;
      background: $white;
    }
    &:before {
      align-items: flex-end;
      bottom: 20px;
      border-top: 1px 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: 20px;
      text-align: center;
      font-size: 13px;
      line-height: 1;
    }
    .styleguide-icon {
      border: 1px solid $gray-400;
    }
    svg {
      height: 30px;
      margin: 5px auto;
    }
    span {
      display: block;
      padding: 5px;
      font-size: 12px;
      border-top: 1px solid $gray-400;
    }
  }

  // TYPO
  .typo-wrapper {
    a {
      font-size: 1.3rem;
    }
  }

  // BUTTONS
  .btn-wrapper {
    .btn {
      margin: 5px 0;
    }
    .bg-gray-400 {
      padding-top: 10px;
      padding-bottom: 10px;
      margin-top: 20px;
      margin-bottom: 20px;
    }
  }

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

/* 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: 10px 15px;
      }
    }
  }
}

/* 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: 10px 15px;
      }
    }
  }
}
