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

.f-message {
  position: fixed;
  left: 50%;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 8px;
  padding: 10px 4px;
  transform: translate(-50%, 0);
  transition: top 300ms cubic-bezier(0.23, 1, 0.32, 1);

  display: flex;
  align-items: center;
  & > * {
    margin-left: 12px;
    &:last-child {
      margin-right: 12px;
    }
  }
  &-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
  &-text {
    font-size: 14px;
  }
  &-close {
    cursor: pointer;
    font-size: 12px;
  }
}

.f-message-dark {
  background: rgba(0, 0, 0, 0.8);
  .f-message-text {
    color: @light-text-color;
  }
  .f-message-close {
    color: @gray-50;
  }
}
