@import "../../Content/Bootstrap/mixins";
@import "../../Content/FontAwesome/font-awesome";
@import "../../Shared/Styles/clickable.less";

ul.qualities {
  .user-select(none);

  min-height: 100px;
  margin: 0;
  padding: 0;
  list-style-type: none;
  outline: none;
  width: 220px;
  display: inline-block;
  
  li {
    margin: 2px;
    padding: 2px 4px;
    line-height: 20px;
    border: 1px solid #aaaaaa;
    border-radius: 4px;   /* may need vendor varients */
    background: #fafafa;
    cursor: pointer;

    &.selected {
      .select-handle {
        opacity: 1.0;
        cursor: pointer;
      }

      .quality-label {
        color: #444444;
      }

      .select-handle:before {
        .icon(@check);
      }
    }

    &:hover {
      border-color: #888888;
      background: #eeeeee;

      .drag-handle {
        opacity: 1.0;
        cursor: move;
      }
    }

    .quality-label {
      color: #c6c6c6;
    }

    .drag-handle, .select-handle {
      opacity: 0.2;
      line-height: 20px;
      cursor: pointer;
    }

    .select-handle:before {
      .icon(@check-empty);
      display: inline-block;
      width: 16px;
      margin-top: 1px;
    }
  }
}

.qualities-controls {
  .help-inline {
    vertical-align: top;
    margin-top: 5px;
  }
}

#quality-definition-list {

  .quality-header .row {
    font-weight: bold;
    line-height: 40px;
  }

  .rows .row {
    line-height: 30px;
    border-top: 1px solid #ddd;
    vertical-align: middle;
    padding: 5px;

    input {
      margin-bottom: 0px;
    }

    .size-label-wrapper {
      line-height: 20px;
    }

    .label {
      min-width: 70px;
      text-align: center;
      margin: 0px 1px;
      padding: 1px 4px;
    }

    .ui-slider {
      position: relative;
      text-align: left;
      background-color: #f5f5f5;
      border-radius: 3px;
      border: 1px solid #ccc;
      height: 8px;

      .ui-slider-range {
        position: absolute;
        display: block;
        background-color: #ddd;
        height: 100%;
      }

      .ui-slider-handle {
        position: absolute;
        z-index: 2;
        width: 6px;
        height: 12px;
        cursor: default;
        background-color: #ccc;
        border: 1px solid #aaa;
        border-radius: 3px;
        top: -3px;
      }
    }
  }
}
