/**
 * Copyright 2016-present, Baifendian, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */

@import '../variables.less';

.bfd-message {
  position: fixed;
  z-index: 9999;
  min-width: 200px;
  max-width: 400px;
  left: 50%;
  transform: translate(-50%, 0);
  top: 10%;
  padding: 30px 50px;
  padding-left: 80px;
  border-radius: 2px;
  border: 1px solid transparent;
  word-wrap: break-word;
  font-size: 14px;
  background-color: #fff;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translate(-50%, -25%);
  transition: opacity .15s, transform .15s;
}

.bfd-message--open {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bfd-message__symbol {
  position: absolute;
  left: 30px;
  top: 50%;
  font-size: 30px;
  transform: translateY(-50%);
}

.bfd-message__remove {
  position: absolute;
  top: 0;
  right: 0;
}

.bfd-message--success {
  .bfd-message__symbol {
    color: @success-color;
  }
}

.bfd-message--danger {
  .bfd-message__symbol {
    color: @danger-color;
  }
}
