/* ========================================================================
   Component: plugins.less
 ========================================================================== */
 
/**
 * Bootstrap Slider
 */

@slider-handle-bg: @brand-primary;
@slider-track-border: #f4f5f6;
@slider-selection-bg: @slider-track-border;
@slider-tooltip-color: #2c3037;

.slider-handle,
.slider-track,
.slider-selection {
  background-image: none;
  box-shadow: 0 0 0 #000;
}

.slider-handle {
  background-color: @slider-handle-bg;
}
.slider-track {
  background-color: #fff;
  border: 1px solid @slider-track-border;
}
.slider-selection {
  background-color: @slider-selection-bg;
}

.slider {
  .tooltip.top .tooltip-arrow {
    border-top-color: @slider-tooltip-color;
  }
  .tooltip.right .tooltip-arrow {
    border-right-color: @slider-tooltip-color;
  }
  .tooltip-inner {
    background-color: @slider-tooltip-color;
  }
}


/**
 * Chosen
 */


// MULTIPLE

@multiple-tag-bg: #f5f6f7;

.chosen-container-multi .chosen-choices {
  .form-control;
}

.chosen-container-multi .chosen-choices li.search-field input[type=text] {
  height: auto;
  padding: 0;
}

.chosen-container-multi .chosen-choices li.search-choice {
  margin: 0 5px 3px 0;
  background-color: @multiple-tag-bg;
  border: 1px solid darken(@multiple-tag-bg, 5%);
  background-image: none;
}

.chosen-container .chosen-results li.highlighted {
  background-color: #a1a2a3;
  background-image: none;
}
.chosen-container .chosen-drop {
  border-color: #ddd;
}
.chosen-container .chosen-results li.group-result {
  color: #747576;
  letter-spacing: 0.02em;
}
// SINGLE
.chosen-container-single .chosen-single,
.chosen-container-active.chosen-with-drop .chosen-single {
  .form-control();
}

.chosen-container-single .chosen-drop {
  margin-top: -3px;
}

.chosen-container-single .chosen-single div {
  top: 6px;
  right: 5px;
}

.chosen-container-multi .chosen-choices li.search-field input[type=text] {
  color: @input-color-placeholder;
}

/**
 * Filestyle
 */

.bootstrap-filestyle{
  outline: none;    
  > label {
  }
  > input {
    max-width: 200px;
    display: inline-block;
    vertical-align: middle;
  }

}


// Reuse form contrl definition from BS
// as a mixin to avoid redeclaration
// and extend the styles in other components
.form-control() {
  display: block;
  width: 100%;
  height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
  padding: @padding-base-vertical @padding-base-horizontal;
  font-size: @font-size-base;
  line-height: @line-height-base;
  color: @input-color;
  background-color: @input-bg;
  background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
  border: 1px solid @input-border;
  border-radius: @input-border-radius;
  .box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
  .transition(~"border-color ease-in-out .15s, box-shadow ease-in-out .15s");

  // Customize the `:focus` state to imitate native WebKit styles.
  .form-control-focus();

  // Placeholder
  .placeholder();

  // Disabled and read-only inputs
  //
  // HTML5 says that controls under a fieldset > legend:first-child won't be
  // disabled if the fieldset is disabled. Due to implementation difficulty, we
  // don't honor that edge case; we style them as disabled anyway.
  &[disabled],
  &[readonly],
  fieldset[disabled] & {
    cursor: not-allowed;
    background-color: @input-bg-disabled;
    opacity: 1; // iOS fix for unreadable disabled content
  }

  // Reset height for `textarea`s
  textarea& {
    height: auto;
  }
}
