
@import "../../scss/theme/config";

.cd-msg-container{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  text-align: center;
  .cd-msg-wrap{
    display: inline-block;
    vertical-align: middle;
  }
  &.cd-add-msg{
    animation: msgSlideIn .6s cubic-bezier(.13, .34, .51, 1.46);
    animation-fill-mode: both;
  }


  .cd-msg-box {
    overflow: hidden;
    margin-bottom: 10px;
    max-width: 400px;
    line-height: 20px;
    min-height: 20px;
    padding: 15px 20px;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, .9);
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.20);
    opacity: 0;
    transition: opacity .6s ease-out;
    .cd-left {
      display: inline-block;
      float: left;
      span {
        margin-right: 10px;
        margin-top: 2px;
      }
    }
    .cd-right {
      display: inline-block;
      float: left;
      max-width: 370px;
      word-wrap: break-word;
    }

    &.cd-show {
      opacity: 1;
    }

    
  }

  @keyframes msgSlideIn
  {
    from {top: 0;}
    to {top: 50px;}
  }
}


