messager.less 1.4 KB
Newer Older
C
Catouse 已提交
1
.messager {
C
Catouse 已提交
2 3 4 5
  position: fixed;
  color: @color-light;
  background-color: @color-dark;
  background-color: rgba(0, 0, 0, 0.8);
C
Catouse 已提交
6
  border-radius: @messager-radius;
C
Catouse 已提交
7 8 9 10
  padding-right: 50px;
  max-width: 80%;
  z-index: 99999;

C
Catouse 已提交
11
  &.top {
C
Catouse 已提交
12 13 14
    top: 20px;
  }

C
Catouse 已提交
15
  &.top-left {
C
Catouse 已提交
16 17 18 19
    top: 20px;
    left: 20px;
  }

C
Catouse 已提交
20
  &.top-right {
C
Catouse 已提交
21 22 23 24
    top: 20px;
    right: 20px;
  }

C
Catouse 已提交
25
  &.bottom {
C
Catouse 已提交
26 27 28
    bottom: 20px;
  }

C
Catouse 已提交
29
  &.bottom-left {
C
Catouse 已提交
30 31 32 33
    bottom: 20px;
    left: 20px;
  }

C
Catouse 已提交
34
  &.bottom-right {
C
Catouse 已提交
35 36 37 38 39
    bottom: 20px;
    right: 20px;
  }
}

C
Catouse 已提交
40
.messager-content {
C
Catouse 已提交
41 42
  padding: 10px 20px;

C
Catouse 已提交
43
  > [class^='icon-'] {
C
Catouse 已提交
44 45 46 47 48
     display: inline-block;
     margin-right: 8px;
  }
}

C
Catouse 已提交
49
.messager-actions {
C
Catouse 已提交
50
  position: absolute;
C
Catouse 已提交
51
  right: 15px;
C
Catouse 已提交
52
  top: 8px;
C
Catouse 已提交
53

C
Catouse 已提交
54
  > .action {
C
Catouse 已提交
55 56 57 58 59 60
    color: #fafafa;
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    text-shadow: none;

C
Catouse 已提交
61
    &.close {
C
Catouse 已提交
62 63 64 65 66
      opacity: 1;
      font-size: 20px;
      font-weight: normal;
    }

C
Catouse 已提交
67
    &:hover {
C
Catouse 已提交
68 69
      color: #fff;
    }
C
Catouse 已提交
70 71 72
  }
}

C
Catouse 已提交
73
.messager-primary {
C
Catouse 已提交
74 75 76
  background-color: @state-primary-inverse-bg;
}

C
Catouse 已提交
77
.messager-success {
C
Catouse 已提交
78 79 80
  background-color: @state-success-inverse-bg;
}

C
Catouse 已提交
81
.messager-info {
C
Catouse 已提交
82 83 84
  background-color: @state-info-inverse-bg;
}

C
Catouse 已提交
85
.messager-warning {
C
Catouse 已提交
86 87 88
  background-color: @state-warning-inverse-bg;
}

C
Catouse 已提交
89
.messager-danger {
C
Catouse 已提交
90 91 92
  background-color: @state-danger-inverse-bg;
}

C
Catouse 已提交
93
.messager-important {
C
Catouse 已提交
94 95 96
  background-color: @state-important-inverse-bg;
}

C
Catouse 已提交
97
.messager-special {
C
Catouse 已提交
98 99 100
  background-color: @state-special-inverse-bg;
}