Blame view

src/styles/components/notice.less 2.56 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
  
b24be35a   zhigang.li   make Message and ...
14
15
16
17
18
19
20
      &-content-with-icon{
          margin-left: 51px;
      }
      &-with-desc&-with-icon &-title{
          margin-left: 51px;
      }
  
40f8606f   梁灏   add Notice component
21
      &-notice {
03441255   梁灏   optimize Notice s...
22
          margin-bottom: @notice-margin-bottom;
40f8606f   梁灏   add Notice component
23
          padding: @notice-padding;
c907cc97   zhigang.li   update
24
          // border: 1px solid @border-color-split;
03441255   梁灏   optimize Notice s...
25
          border-radius: @border-radius-small;
40f8606f   梁灏   add Notice component
26
          box-shadow: @shadow-base;
40f8606f   梁灏   add Notice component
27
          background: #fff;
03441255   梁灏   optimize Notice s...
28
          line-height: 1;
40f8606f   梁灏   add Notice component
29
          position: relative;
40f8606f   梁灏   add Notice component
30
31
32
33
          overflow: hidden;
  
          &-close {
              position: absolute;
36e46e5a   梁灏   update Notice style
34
              right: 8px;
03441255   梁灏   optimize Notice s...
35
              top: 15px;
40f8606f   梁灏   add Notice component
36
37
38
39
40
41
42
              color: #999;
              outline: none;
  
              i{
                  .close-base(-3px);
              }
          }
03441255   梁灏   optimize Notice s...
43
  
b24be35a   zhigang.li   make Message and ...
44
45
46
47
48
49
          &-content-with-render{
              .ivu-notice-desc{
                  display: none;
              }
          }
  
03441255   梁灏   optimize Notice s...
50
51
52
53
54
          &-with-desc{
              .@{notice-prefix-cls}-notice-close{
                  top: 11px;
              }
          }
40f8606f   梁灏   add Notice component
55
56
      }
  
b24be35a   zhigang.li   make Message and ...
57
58
59
60
      &-content-with-render-notitle{
          margin-left: 26px;
      }
  
40f8606f   梁灏   add Notice component
61
      &-title {
e1596b7e   梁灏   add Button UI
62
          font-size: @font-size-base;
b24be35a   zhigang.li   make Message and ...
63
          line-height: @font-size-base + 3;  //fixed the bug that the bottom of some letters were hidden just like 'g'
03441255   梁灏   optimize Notice s...
64
65
66
67
68
69
70
          color: @title-color;
          padding-right: 10px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
      }
      &-with-desc &-title{
df64fd36   Aresn   update styles
71
          font-weight: bold;
03441255   梁灏   optimize Notice s...
72
73
          margin-bottom: 8px;
      }
40f8606f   梁灏   add Notice component
74
75
  
      &-desc {
e1596b7e   梁灏   add Button UI
76
          font-size: 12px;
df64fd36   Aresn   update styles
77
78
          //color: @legend-color;
          color: @text-color;
40f8606f   梁灏   add Notice component
79
          text-align: justify;
03441255   梁灏   optimize Notice s...
80
          line-height: 1.5;
40f8606f   梁灏   add Notice component
81
      }
03441255   梁灏   optimize Notice s...
82
      &-with-desc&-with-icon &-desc{
40f8606f   梁灏   add Notice component
83
          margin-left: 51px;
40f8606f   梁灏   add Notice component
84
85
      }
  
03441255   梁灏   optimize Notice s...
86
87
      &-with-icon &-title{
          margin-left: 26px;
40f8606f   梁灏   add Notice component
88
89
90
91
      }
  
      &-icon {
          position: absolute;
36e46e5a   梁灏   update Notice style
92
93
          left: 16px;
          font-size: @font-size-large;
40f8606f   梁灏   add Notice component
94
95
96
97
98
99
100
101
102
103
104
105
106
107
  
          &-success {
              color: @success-color;
          }
          &-info {
              color: @primary-color;
          }
          &-warning {
              color: @warning-color;
          }
          &-error {
              color: @error-color;
          }
      }
03441255   梁灏   optimize Notice s...
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
      &-with-desc &-icon{
          font-size: 36px;
      }
  
      &-custom-content{
          &:after{
              content: "";
              display: block;
              width: 4px;
              position: absolute;
              top: 0;
              bottom: 0;
              left: 0;
          }
      }
40f8606f   梁灏   add Notice component
123
  }