@import '../var.less';
@import '../transition.less';

.f-modal-container {
  .f-modal-fixed-container(); // default fixed
  top: 0;
  left: 0;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);

  display: flex;
  justify-content: center;
  align-items: center;
}

.f-modal-fixed-container {
  position: fixed;
  width: 100vw;
  height: 100vh;
}

.f-modal-absolute-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

.f-modal {
  background: @light-color;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: @modal-padding;
  position: relative;
  &-close {
    position: absolute;
    top: @modal-padding;
    right: @modal-padding;
    color: @gray-30;
    cursor: pointer;
    user-select: none;
    &::before {
      font-size: 20px;
      width: 20px;
      height: 20px;
    }
  }
}
