bootstrap-treeview.less

58 lines | 1.271 kB Blame History Raw Download
//
// Bootstrap Tree View
// --------------------------------------------------

.treeview {
  .list-group {
    border-top: 0;
  }
  .list-group-item {
    background: transparent;
    border-bottom: 1px solid transparent !important;
    border-top: 1px solid transparent !important;
    margin-bottom: 0;
    overflow: hidden;
    padding: 0 10px;
    text-overflow: ellipsis;
    white-space: nowrap;

    &:hover {
      background: @dropdown-link-hover-bg !important;
      border-color: @dropdown-link-hover-border-color !important;
    }
    &.node-selected {
      background: @dropdown-link-active-bg !important;
      border-color: @dropdown-link-active-border-color !important;
      color: @dropdown-link-active-color !important;
    }
    &.node-check-changed {
      span.node-icon,
      span.text {
        color: @bootstrap-treeview-highlight-color;
      }
    }
  }
  span.icon {
    display: inline-block;
    font-size: (@font-size-base + 1);
    min-width: 10px;
    text-align: center;
    > [class*="fa-angle"] {
      font-size: (@font-size-base + 3);
    }
    &.check-icon {
      margin-right: 10px;
    }
  }
  span.indent {
    margin-right: 5px;
  }
  .node-disabled {
    color: @color-pf-black-300;
    cursor: not-allowed;
  }
  .node-hidden {
    display:none;
  }
}