libs/barista-components/quick-filter/src/quick-filter.scss
@import '../../core/src/style/variables';
@import '../../core/src/style/interactive-common';
@import '../../style/link';

$space-right: 20px;
$space: 20px;

:host {
  display: block;
  background-color: $gray-130;
  padding: $space;
}

.dt-quick-filter-drawer {
  margin-top: 12px;
}

.dt-quick-filter-content {
  position: relative;
  display: block;
  height: 100%;
  background-color: white;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  box-sizing: border-box;
}

.dt-drawer {
  background-color: $gray-130;
  position: relative;
  padding-right: 0;
}

:host ::ng-deep {
  .dt-quick-filter-title,
  .dt-quick-filter-sub-title {
    display: block;
    margin: 0 $space-right 0 0;
  }

  .dt-quick-filter-title {
    font-size: 20px;
    color: $gray-700;
  }

  .dt-quick-filter-sub-title {
    font-size: 12px;
    color: $gray-500;
  }
}

.dt-quick-filter-group {
  margin-right: $space-right;
}

.dt-quick-filter-group:last-child:not(:nth-of-type(1)) {
  margin-bottom: $space;
}

.dt-quick-filter-group + .dt-quick-filter-group {
  border-top: 1px solid $gray-200;
}

.dt-quick-filter-group-hidden {
  /* Prevents tabbing into the filter group */
  visibility: hidden;
}

.dt-quick-filter-open,
.dt-quick-filter-close {
  appearance: none;
  top: 8px;
  z-index: 1;
  background: $white;
  border-width: 1px;
  border-style: solid;
  position: absolute;
  color: $turquoise-600;
  font-size: 1.2em;
  cursor: pointer;
}

.dt-quick-filter-open {
  left: 0;
  padding: 6px 6px 6px 0;
  border-left: none;
  background-color: $gray-130;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.dt-quick-filter-close {
  right: -1px;
  padding: 6px 0 6px 6px;
  border-right: none;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.dt-back-to-quick-filter,
:host ::ng-deep .dt-show-more {
  @include dt-link-base();
  background: none;
  border: none;
  color: $turquoise-600;
  font-family: inherit;
  font-size: 14px;
  font-weight: normal;
}

.dt-back-to-quick-filter {
  display: inline-flex;
  align-items: center;
  margin: 2px 0 0 2px; // prevents focus outline from being cut off
}

.dt-back-to-quick-filter ::ng-deep .dt-icon {
  width: 20px;
  height: 18px;
  margin-right: 4px;
  fill: currentColor;
}

:host ::ng-deep .dt-drawer-body.dt-drawer-body {
  width: 230px;
}

:host ::ng-deep .dt-drawer-body {
  .dt-checkbox-content,
  .dt-radio-content {
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

:host ::ng-deep cdk-virtual-scroll-viewport {
  margin-right: -$space-right;
}
