@use '../base/common/base-variables' as *;

//default
$ddl-input-font-size: 14px !default;
$ddl-input-border: $border-size $border-type !default;
$ddl-input-font-family: inherit !default;
$ddl-zero-value: 0 !default;
$ddl-input-margin-bottom: $ddl-zero-value !default;
$ddl-input-padding: 8px !default;
$ddl-input-group-border-width: 1px !default;
$ddl-clear-icon-margin-right: 0 !default;
$ddl-active-font-color: $active-font-color !default;

$ddl-input-bgr-small-clear-margin: 0 4px !default;
$ddl-input-popup-padding: 4px 0 !default;
$ddl-input-zero-padding: 0 !default;
$ddl-bigger-filter-parent-padding: 8px 16px 8px 0 !default;
$ddl-bigger-small-filtr-parent: 8px 16px !default;
$ddl-bigger-filter-input-parent-padding: 4px 16px 4px 0 !default;

$ddl-list-search-icon-padding: 8px !default;
$ddl-list-filter-text-indent: 0 12px !default;
$ddl-list-icon-color: $grey-dark-font !default;
$ddl-list-box-shadow-color: rgba($base-font, .5) !default;
$ddl-bigger-list-font-size: 15px !default;
$ddl-popup-background-color: $grey !default;
$ddl-filter-border: $grey-44 !default;
$ddl-filter-top-border: 0 !default;
$ddl-filter-padding: 5px 8px !default;
$ddl-filter-box-shadow: none !default;
$ddl-filter-background-color: $grey-white !default;
$ddl-default-border-color: $grey-44 !default;
$ddl-back-icon-margin: -2px 10px 0 -54px !default;
$ddl-back-icon-padding: 0 !default;
$ddl-filter-margin: 0 !default;
$ddl-box-border-color: $grey-lighter !default;

$ddl-bgr-input-filter-margin-left: -20px !default;
$ddl-bgr-content-min-height: 40px !default;
$ddl-border-width: 1px !default;
$ddl-zero-margin-padding: 0 !default;
$ddl-content-nim-height: 33px !default;
$ddl-popup-resize-height: 15px !default;
$ddl-bgr-popup-clear-min-width: 16px !default;
$ddl-bgr-popup-clear-min-height: 16px !default;
$ddl-bgr-small-popup-clear-min-height: 18px !default;
$ddl-bgr-small-popup-clear-min-width: 18px !default;
$ddl-zero-height: 0 !default;
$ddl-popup-resize-width: 15px !default;
$input-border: $ddl-zero-value $border-type !default;
$ddl-full-width: 100%;

// small size
$ddl-small-list-font-size: 13px !default;

// touch size
$ddl-bigger-small-list-font-size: 14px !default;

@include export-module('dropdownlist-bootstrap-dark') {
  #{&}.e-popup.e-ddl {
    border-radius: 4px;
    box-shadow: 0 6px 12px $ddl-list-box-shadow-color;
    margin-top: 3px;
    @at-root {
      & .e-input-group {
        width: auto;

        & input {
          line-height: 15px;
        }
      }
    }
  }

  #{&}.e-popup.e-ddl .e-dropdownbase {
    min-height: 26px;
  }

  #{&}.e-popup.e-ddl .e-filter-parent .e-input-group {
    display: flex;
    width: auto;
    @at-root {
      & .e-back-icon {
        border: 0;
      }
    }
  }

  .e-input-group:not(.e-disabled) .e-control#{&}.e-dropdownlist ~ .e-ddl-icon:active,
  .e-input-group:not(.e-disabled) .e-control#{&}.e-dropdownlist ~ .e-ddl-icon:hover,
  .e-control#{&}.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
  .e-control#{&}.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:hover,
  .e-ddl#{&}.e-popup .e-input-group:not(.e-disabled) .e-clear-icon:active,
  .e-ddl#{&}.e-popup .e-input-group:not(.e-disabled) .e-clear-icon:hover,
  .e-ddl#{&}.e-popup .e-input-group:not(.e-disabled) .e-back-icon:active,
  .e-ddl#{&}.e-popup .e-input-group:not(.e-disabled) .e-back-icon:hover {
    background: transparent;
    color: $ddl-list-icon-color;
  }

  .e-input-group:not(.e-disabled) .e-control#{&}.e-dropdownlist ~ .e-ddl-icon,
  .e-input-group.e-disabled.e-ddl .e-control#{&}.e-dropdownlist ~ .e-input-group-icon,
  .e-control#{&}.e-dropdownlist .e-input-group.e-disabled.e-ddl .e-input-group-icon,
  .e-control#{&}.e-dropdownlist .e-input-group.e-ddl .e-input-group-icon {
    border: 0;
  }

  .e-input-group:not(.e-disabled) .e-control#{&}.e-dropdownlist ~ .e-input-group-icon:active,
  .e-control#{&}.e-dropdownlist .e-input-group:not(.e-disabled) .e-input-group-icon:active,
  .e-ddl#{&}.e-popup .e-input-group:not(.e-disabled) .e-back-icon:active,
  .e-ddl#{&}.e-popup .e-input-group:not(.e-disabled) .e-clear-icon:active {
    box-shadow: none;
  }

  .e-ddl#{&}.e-popup .e-filter-parent {
    border-bottom: 1px solid $grey-88;
  }
}
