Blame view

src/styles/components/notice.less 2.61 KB
40f8606f   梁灏   add Notice component
1
2
3
4
5
6
7
8
  @notice-prefix-cls: ~"@{css-prefix}notice";
  @icon-prefix-cls: ~"@{css-prefix}icon";
  
  @notice-width: 335px;
  @notice-padding: 16px;
  @notice-margin-bottom: 10px;
  
  .@{notice-prefix-cls} {
40f8606f   梁灏   add Notice component
9
10
      width: @notice-width;
      margin-right: 24px;
03441255   梁灏   optimize Notice s...
11
12
      position: fixed;
      z-index: @zindex-notification;
40f8606f   梁灏   add Notice component
13
14
  
      &-notice {
03441255   梁灏   optimize Notice s...
15
          margin-bottom: @notice-margin-bottom;
40f8606f   梁灏   add Notice component
16
          padding: @notice-padding;
e1f5fded   梁灏   optimize Notice s...
17
          //border: 1px solid @border-color-split;
03441255   梁灏   optimize Notice s...
18
          border-radius: @border-radius-small;
40f8606f   梁灏   add Notice component
19
          box-shadow: @shadow-base;
40f8606f   梁灏   add Notice component
20
          background: #fff;
03441255   梁灏   optimize Notice s...
21
          line-height: 1;
40f8606f   梁灏   add Notice component
22
          position: relative;
40f8606f   梁灏   add Notice component
23
24
25
26
27
          overflow: hidden;
  
          &-close {
              position: absolute;
              right: 16px;
03441255   梁灏   optimize Notice s...
28
              top: 15px;
40f8606f   梁灏   add Notice component
29
30
31
32
33
34
35
              color: #999;
              outline: none;
  
              i{
                  .close-base(-3px);
              }
          }
03441255   梁灏   optimize Notice s...
36
37
38
39
40
41
  
          &-with-desc{
              .@{notice-prefix-cls}-notice-close{
                  top: 11px;
              }
          }
40f8606f   梁灏   add Notice component
42
43
44
      }
  
      &-title {
e1596b7e   梁灏   add Button UI
45
          font-size: @font-size-base;
03441255   梁灏   optimize Notice s...
46
47
48
49
50
51
52
53
54
55
56
          color: @title-color;
          padding-right: 10px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
      }
      &-with-desc &-title{
          margin-bottom: 8px;
      }
      &-with-desc&-with-icon &-title{
          margin-left: 51px;
40f8606f   梁灏   add Notice component
57
58
59
      }
  
      &-desc {
e1596b7e   梁灏   add Button UI
60
          font-size: 12px;
40f8606f   梁灏   add Notice component
61
62
          color: @legend-color;
          text-align: justify;
03441255   梁灏   optimize Notice s...
63
          line-height: 1.5;
40f8606f   梁灏   add Notice component
64
      }
03441255   梁灏   optimize Notice s...
65
      &-with-desc&-with-icon &-desc{
40f8606f   梁灏   add Notice component
66
          margin-left: 51px;
40f8606f   梁灏   add Notice component
67
68
      }
  
03441255   梁灏   optimize Notice s...
69
70
      &-with-icon &-title{
          margin-left: 26px;
40f8606f   梁灏   add Notice component
71
72
73
74
      }
  
      &-icon {
          position: absolute;
03441255   梁灏   optimize Notice s...
75
76
77
          left: 20px;
          margin-top: -1px;
          font-size: 16px;
40f8606f   梁灏   add Notice component
78
79
80
81
82
83
84
85
86
87
88
89
90
91
  
          &-success {
              color: @success-color;
          }
          &-info {
              color: @primary-color;
          }
          &-warning {
              color: @warning-color;
          }
          &-error {
              color: @error-color;
          }
      }
03441255   梁灏   optimize Notice s...
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
121
122
123
124
125
126
127
128
129
130
131
      &-with-desc &-icon{
          font-size: 36px;
      }
  
      &-custom-content{
          &:after{
              content: "";
              display: block;
              width: 4px;
              position: absolute;
              top: 0;
              bottom: 0;
              left: 0;
          }
      }
      &-with-normal{
          &:after{
              background: @primary-color;
          }
      }
      &-with-info{
          &:after{
              background: @primary-color;
          }
      }
      &-with-success{
          &:after{
              background: @success-color;
          }
      }
      &-with-warning{
          &:after{
              background: @warning-color;
          }
      }
      &-with-error{
          &:after{
              background: @error-color;
          }
      }
40f8606f   梁灏   add Notice component
132
  }