@import '../../../../../styles/constants.scss';

.commands-list {
  width: 100%;
  height: 100%;
  position: relative;
  max-height: 100%;

  &::before {
    content: '';
    display: block;
    position: absolute;
    height: 27px;
    width: 100%;
    background-color: $blue-light-1;
    top: 0;
    right: 2px;
    z-index: 2;
  }

  .commands-list-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 3px 10px;
    padding-left: 3px;
    width: 100%;
    padding-top: 30px;
    margin-top: -30px;
    max-height: calc(100% + 30px);

    > div {
      margin-bottom: 20px;

      &:last-of-type {
        margin-bottom: 3px;
      }
    }

    &::-webkit-scrollbar-button {
      display: none;
      height: 13px;
      border-radius: 0px;
      background-color: transparent;
    }
    &::-webkit-scrollbar-button:hover {
      background-color: transparent;
    }
    &::-webkit-scrollbar-thumb {
      background-color: #aaa;
    }
    &::-webkit-scrollbar-track {
      background-color: transparent;
      margin-top: 30px;
    }
    &::-webkit-scrollbar-track-piece {
      background-color: transparent;
    }
    &::-webkit-scrollbar-track:hover {
      background-color: transparent;
    }
    &::-webkit-scrollbar {
      width: 6px;
    }

    .nothing-found {
      font: 600 15px 'Open Sans';
      text-align: center;
    }

    .codesnippet {
      padding-top: 0;
      padding-bottom: 0;
      padding-left: 20px;

      > div > div {
        overflow-x: auto;
        white-space: nowrap;
        padding: 15px 0;
      }
    }
  }
}
