@import '../core/mixins.scss';

.alert {
  top: 0;
  left: 20px;
  width: 100%;
  border-radius: 0;
  position: fixed;
  text-align: center;
  border: 0;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  z-index: 2000;
  padding: 20px 15px;
  text-align: center;
  @include calc(width, '100% - 40px');
  .fa {
    display: inline-block;
    font-size: 24px;
    margin-right: 16px;
  }
  p {
    display: inline-block;
    position: relative;
    top: -2px;
    margin-bottom: 0;
  }

  &.alert-danger {
    background-color: $alert-red;
    p {
      color: $danger !important;
    }
  }
  &.alert-success {
    background-color: $alert-green;
  }
  .has-error {
    position: relative;
  }

  .has-success {
    position: relative;
    color: $success;
  }
}
