messager.less 1.5 KB
Newer Older
C
Catouse 已提交
1 2 3 4 5 6
.messager
{
  position: fixed;
  color: @color-light;
  background-color: @color-dark;
  background-color: rgba(0, 0, 0, 0.8);
C
Catouse 已提交
7
  border-radius: @messager-radius;
C
Catouse 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
  padding-right: 50px;
  max-width: 80%;
  z-index: 99999;

  &.top
  {
    top: 20px;
  }

  &.top-left
  {
    top: 20px;
    left: 20px;
  }

  &.top-right
  {
    top: 20px;
    right: 20px;
  }

  &.bottom
  {
    bottom: 20px;
  }

  &.bottom-left
  {
    bottom: 20px;
    left: 20px;
  }

  &.bottom-right
  {
    bottom: 20px;
    right: 20px;
  }
}

.messager-content
{
  padding: 10px 20px;

  > [class^='icon-']
  {
     display: inline-block;
     margin-right: 8px;
  }
}

C
Catouse 已提交
58
.messager-actions
C
Catouse 已提交
59 60
{
  position: absolute;
C
Catouse 已提交
61
  right: 15px;
C
Catouse 已提交
62
  top: 8px;
C
Catouse 已提交
63 64

  > .action
C
Catouse 已提交
65
  {
C
Catouse 已提交
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
    color: #fafafa;
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    text-shadow: none;

    &.close
    {
      opacity: 1;
      font-size: 20px;
      font-weight: normal;
    }

    &:hover
    {
      color: #fff;
    }
C
Catouse 已提交
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
  }
}

.messager-primary
{
  background-color: @state-primary-inverse-bg;
}

.messager-success
{
  background-color: @state-success-inverse-bg;
}

.messager-info
{
  background-color: @state-info-inverse-bg;
}

.messager-warning
{
  background-color: @state-warning-inverse-bg;
}

.messager-danger
{
  background-color: @state-danger-inverse-bg;
}

.messager-important
{
  background-color: @state-important-inverse-bg;
}

.messager-special
{
  background-color: @state-special-inverse-bg;
}