@grid-control-col-width: 10px;

.row-panel-container {
  .kit-button-big {
    float: left;
    width: 42px;
    height: 32px;
    margin: 0 2px 5px 0;
    font-size: 12px;
    line-height: 12px;
    background: #eeeff2;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    &:hover svg {
      background: #d6d6d9;
      fill: #949494;
    }
    &.active svg {
      background: #f0fff0;
      fill: @yee-primary-color !important;
    }
  }

  .grid-control {
    background: #2b2b2b;
    border: 1px solid #212121;
    padding: 1px;
    border-radius: 2px;
    width: 223px;
    animation-fill-mode: forwards;
    animation-duration: 0.5s;
  }

  .input-control.grid-slider {
    position: relative;
    height: 28px;
    width: 221px;
    user-select: none;
  }

  .input-control.grid-slider > .guide.visible {
    opacity: 1;
  }

  .input-control.grid-slider > .guide {
    position: absolute;
    left: 0;
    right: 0;
    top: -5px;
    bottom: -5px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 50ms ease-in;
  }

  .input-control.grid-slider > .columns {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
  }

  .input-control.grid-slider > .columns > .col {
    float: left;
    position: relative;
    height: 28px;
    min-width: 10px;
    margin-right: 9px;
    background-color: #5e5e5e;
    border: 1px solid transparent;
    border-radius: 2px;

    &:last-child {
      margin-right: 0;

      .gutter {
        display: none;
      }
    }
  }

  @grid-control-col-counts: 12;
  .input-control.grid-slider > .columns {
    each(range(@grid-control-col-counts), {
      .col.col-@{value} {
        width: (@value * 19 - 9px);
      }
    });
  }

  .input-control.grid-slider > .guide > .col {
    width: 10px;
    height: 100%;
    float: left;
    margin-right: 9px;
    border-radius: 2px;
    background-color: rgba(36, 150, 255, 0.5);

    &:last-child {
      margin-right: 0;
    }
  }

  .input-control.grid-slider > .columns > .col > .gutter {
    position: absolute;
    z-index: 3;
    right: -10px;
    top: -1px;
    width: 9px;
    height: 28px;
    cursor: col-resize;

    .handle {
      position: relative;
      width: 3px;
      height: 100%;
      margin: 0 auto;
      background: #2496ff;
      transition:
        margin-top 200ms ease-out,
        height 200ms ease-out,
        background-color 200ms linear;

      .arrows {
        position: absolute;
        left: -9px;
        top: 50%;
        width: 21px;
        height: 13px;
        margin-top: -7px;
        background-position: -520px -260px;
        pointer-events: none;
        opacity: 0.4;
        transition: opacity 200ms ease;
      }
    }
  }

  .input-control.grid-slider > .columns > .col > .label {
    display: block;
    padding-top: 5px;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    color: #d9d9d9;
  }
}
