/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../custom.less';
@import './vars.less';

@filter-panel-prefix-cls: ~'@{css-prefix}filter-panel';

.@{filter-panel-prefix-cls} {
  &__popover {
    .inject-FilterPanel-vars();
  }

  &__popover.tiny-popover.tiny-popper {
    min-width: 200px;
    padding: var(--tv-FilterPanel-padding-y) var(--tv-FilterPanel-padding-x);

    &[x-placement^='bottom'] {
      margin-top: var(--tv-FilterPanel-margin-top);
      box-shadow: var(--tv-FilterPanel-bottom-box-shadow);
    }

    &[x-placement^='top'] {
      margin-bottom: 4px;
      box-shadow: var(--tv-FilterPanel-top-box-shadow);
    }
  }
}
