//
// Simple List
// --------------------------------------------------
// Usage:
//   <div class="control-simplelist">
//       <ul>
//           <li>Hello friend</li>
//       </ul>
//   </div>
//
// With icons:
//   <div class="control-simplelist with-icons">
//       <ul>
//           <li class="oc-icon-check">Hello friend</li>
//       </ul>
//   </div>
//
// With checkboxes:
//   <div class="control-simplelist with-checkboxes">
//       <ul>
//           <li>
//               <div class="checkbox custom-checkbox">
//                   <input id="checkbox-example1" name="checkbox" value="1" type="checkbox">
//                   <label class="choice" for="checkbox-example1"> Dodge Viper</label>
//               </div>
//           </li>
//       </ul>
//   </div>

.control-simplelist {

    font-size: 13px;

    ul { padding-left: 15px; }

    &.form-control {
        ul { margin-bottom: 0; }
        li {
            padding-top: 5px;
            padding-bottom: 5px;
        }
    }

    &.with-icons, &.with-checkboxes, &.is-selectable {
        ul {
            list-style-type: none;
            padding-left: 0;
        }
    }

    &.with-checkboxes {}

    &.is-sortable {

        li.placeholder {
            position: relative;
            &:before {
                top: -10px;
                position: absolute;
                .triangle(right, 5px, 9px, @color-sortable-caret);
            }
        }

        li.dragged {
            position: absolute;
            .opacity(.5);
            z-index: 2000;
            color: @color-sortable-active;

            width: auto !important; // Prevent browser scrollbars
        }
    }

    &.is-scrollable {
        height: 200px;
        &.size-tiny { min-height: @size-tiny + 200; }
        &.size-small { min-height: @size-small + 200; }
        &.size-large { min-height: @size-large + 200; }
        &.size-huge { min-height: @size-huge + 200; }
        &.size-giant { min-height: @size-giant + 200; }
    }

    &.is-selectable {
        li {
            padding: 5px 10px;
            border-bottom: 1px solid @color-list-border;
            .heading {
                font-size: 14px;
                font-weight: bold;
            }
            .description {

            }
            a {
                padding: 5px 10px;
                margin: -5px -10px;
                display: block;
                color: @text-color;
            }
            &:hover {
                background: @color-list-hover-bg;
                cursor: pointer;
                &, a { color: white; }
                a { text-decoration: none; }
            }

            &:last-child {
                border-bottom: none;
            }
        }
    }

}

.list-preview .control-simplelist {
    &.is-selectable {
        ul {
            margin-bottom: 0;
        }
    }
}