/*
 * @Author: 焦质晔
 * @Date: 2020-03-30 16:36:41
 * @Last Modified by: 焦质晔
 * @Last Modified time: 2024-11-05 19:06:35
 */
@use '../../style/src/themes' as *;
@use '../../style/src/mixins/reset' as *;
@use './variable' as *;

$prefix-expand: '#{$qm-prefix}-expand';

.#{$prefix-expand}--icon {
  position: relative;
  display: inline-flex;
  margin-right: 5px;
  width: 17px;
  height: 17px;
  color: $v-font-color-placeholder;
  vertical-align: -4px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.085);
  border-radius: $v-border-radius;
  transform: scale(0.94117647);
  outline: none;
  user-select: none;
  cursor: pointer;
  transition: all 0.3s ease;
  @include box-sizing-content();
  &:hover {
    color: $v-primary-color;
    border-color: $v-primary-color;
  }
  &::before,
  &::after {
    position: absolute;
    background: currentColor;
    transition: transform 0.3s ease-out;
    content: '';
  }
  &::before {
    top: 7px;
    right: 3px;
    left: 3px;
    height: 1px;
  }
  &::after {
    top: 3px;
    bottom: 3px;
    left: 7px;
    width: 1px;
    transform: rotate(90deg);
  }
  &.collapsed::before {
    transform: rotate(-180deg);
  }
  &.collapsed::after {
    transform: rotate(0deg);
  }
  &.disabled {
    cursor: not-allowed;
    color: rgba(0, 0, 0, 0.1);
    background: $background-color-light;
    &:hover {
      border-color: currentColor;
    }
  }
}
