@import './themes/@{root-entry-name}.less';

.antblaozr-animate-disabled {
  // badge
  &.ant-scroll-number-only {
    animation: none;
    transition: none;
  }

  // drawer
  &.ant-drawer {
    &.ant-drawer-open .ant-drawer-mask {
      animation: none;
      transition: none;
    }

    & > * {
      transition: none;
    }
  }

  // modal
  .ant-modal-mask,
  .ant-modal {
    animation: none;
    transition: none;

    &.zoom-enter,
    &.zoom-leave,
    &.zoom-enter-active,
    &.zoom-leave-active {
      animation: none;
      transition: none;
    }
  }

  // menu
  &.ant-menu {
    transition: none;

    .ant-menu-item,
    .ant-menu-submenu-title {
      transition: none;
    }

    .ant-menu-item .anticon,
    .ant-menu-submenu-title .anticon {
      transition: none;

      & + span {
        transition: none;
      }
    }
  }

  // tabs
  &.ant-tabs {
    .ant-tabs-top-content.ant-tabs-content-animated,
    .ant-tabs-bottom-content.ant-tabs-content-animated,
    .ant-tabs-top-content > .ant-tabs-tabpane,
    .ant-tabs-bottom-content > .ant-tabs-tabpane,
    &.ant-tabs-left .ant-tabs-ink-bar-animated,
    &.ant-tabs-right .ant-tabs-ink-bar-animated,
    &.ant-tabs-top .ant-tabs-ink-bar-animated,
    &.ant-tabs-bottom .ant-tabs-ink-bar-animated {
      transition: none;
    }
  }

  // collapse
  &.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg {
    transition: none;
  }
}

.antblazor-overlay-trigger-wrapper {
  display: block;

  &:has(> a),
  &:has(> abbr),
  &:has(> b),
  &:has(> bdi),
  &:has(> bdo),
  &:has(> br),
  &:has(> cite),
  &:has(> code),
  &:has(> data),
  &:has(> datalist),
  &:has(> em),
  &:has(> i),
  &:has(> img),
  &:has(> input),
  &:has(> kbd),
  &:has(> label),
  &:has(> map),
  &:has(> mark),
  &:has(> math),
  &:has(> meter),
  &:has(> noscript),
  &:has(> object),
  &:has(> output),
  &:has(> progress),
  &:has(> q),
  &:has(> ruby),
  &:has(> samp),
  &:has(> script),
  &:has(> select),
  &:has(> small),
  &:has(> span),
  &:has(> strong),
  &:has(> sub),
  &:has(> sup),
  &:has(> textarea),
  &:has(> time),
  &:has(> u),
  &:has(> var),
  &:has(> wbr) {
    display: inline;
  }
}