messager.less 2.0 KB
Newer Older
C
Catouse 已提交
1 2 3 4 5 6 7 8 9 10
/// ========================================================================
/// ZUI: messager.less
/// http://zui.sexy
/// ========================================================================
/// Copyright 2014-2016 cnezsoft.com; Licensed MIT
/// ========================================================================


// Messager style for module messager.js

C
Catouse 已提交
11
.messager {
C
Catouse 已提交
12 13 14 15
  position: fixed;
  color: @color-light;
  background-color: @color-dark;
  background-color: rgba(0, 0, 0, 0.8);
C
Catouse 已提交
16
  border-radius: @messager-radius;
C
Catouse 已提交
17 18
  max-width: 80%;
  z-index: 99999;
C
Catouse 已提交
19
  &:extend(.clearfix all);
C
Catouse 已提交
20

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

C
Catouse 已提交
25
  &.top-left {
C
Catouse 已提交
26 27 28 29
    top: 20px;
    left: 20px;
  }

C
Catouse 已提交
30
  &.top-right {
C
Catouse 已提交
31 32 33 34
    top: 20px;
    right: 20px;
  }

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

C
Catouse 已提交
39
  &.bottom-left {
C
Catouse 已提交
40 41 42 43
    bottom: 20px;
    left: 20px;
  }

C
Catouse 已提交
44
  &.bottom-right {
C
Catouse 已提交
45 46 47 48 49
    bottom: 20px;
    right: 20px;
  }
}

C
Catouse 已提交
50
.messager-content {
C
Catouse 已提交
51
  padding: 10px 20px;
C
Catouse 已提交
52
  float: left;
C
Catouse 已提交
53

C
Catouse 已提交
54
  > [class^='icon-'] {
C
Catouse 已提交
55 56 57 58 59
     display: inline-block;
     margin-right: 8px;
  }
}

C
Catouse 已提交
60
.messager-actions {
C
Catouse 已提交
61
  float: right;
C
Catouse 已提交
62

C
Catouse 已提交
63
  > .action {
C
Catouse 已提交
64
    color: #fafafa;
C
Catouse 已提交
65
    color: rgba(255,255,255,.6);
C
Catouse 已提交
66 67 68
    background: none;
    border: none;
    text-shadow: none;
C
Catouse 已提交
69 70 71 72
    min-width: 40px;
    padding: 0 12px;
    height: 40px;
    text-align: center;
C
Catouse 已提交
73

C
Catouse 已提交
74
    &.close {
C
Catouse 已提交
75
      padding-bottom: 5px;
C
Catouse 已提交
76 77 78 79 80
      opacity: 1;
      font-size: 20px;
      font-weight: normal;
    }

C
Catouse 已提交
81
    &:hover {
C
Catouse 已提交
82
      color: #fff;
C
Catouse 已提交
83
      background: rgba(0,0,0,.1);
C
Catouse 已提交
84
    }
C
Catouse 已提交
85
  }
C
Catouse 已提交
86 87

  .action-icon + .action-text {margin-left: 8px;}
C
Catouse 已提交
88 89
}

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

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

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

C
Catouse 已提交
102
.messager-warning {
C
Catouse 已提交
103 104 105
  background-color: @state-warning-inverse-bg;
}

C
Catouse 已提交
106
.messager-danger {
C
Catouse 已提交
107 108 109
  background-color: @state-danger-inverse-bg;
}

C
Catouse 已提交
110
.messager-important {
C
Catouse 已提交
111 112 113
  background-color: @state-important-inverse-bg;
}

C
Catouse 已提交
114
.messager-special {
C
Catouse 已提交
115 116 117
  background-color: @state-special-inverse-bg;
}