bklLiudl
2025-04-07 4e8f58cb41c7b6d570fd1979d80f74ab8a4d00c2
1
2
3
4
5
6
7
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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
@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} {
    width: @notice-width;
    margin-right: 24px;
    position: fixed;
    z-index: @zindex-notification;
 
    &-content-with-icon{
        margin-left: 51px;
    }
    &-with-desc&-with-icon &-title{
        margin-left: 51px;
    }
 
    &-notice {
        margin-bottom: @notice-margin-bottom;
        padding: @notice-padding;
        // border: 1px solid @border-color-split;
        border-radius: @border-radius-small;
        box-shadow: @shadow-base;
        background: #fff;
        line-height: 1;
        position: relative;
        overflow: hidden;
 
        &-close {
            position: absolute;
            right: 8px;
            top: 15px;
            color: #999;
            outline: none;
 
            i{
                .close-base(-3px);
            }
        }
 
        &-content-with-render{
            .ivu-notice-desc{
                display: none;
            }
        }
 
        &-with-desc{
            .@{notice-prefix-cls}-notice-close{
                top: 11px;
            }
        }
    }
 
    &-content-with-render-notitle{
        margin-left: 26px;
    }
 
    &-title {
        font-size: @font-size-large;
        line-height: @font-size-large + 3;  //fixed the bug that the bottom of some letters were hidden just like 'g'
        color: @title-color;
        padding-right: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    &-with-desc &-title{
        //font-weight: bold;
        margin-bottom: 8px;
    }
 
    &-desc {
        font-size: @font-size-base;
        //color: @legend-color;
        color: @text-color;
        text-align: justify;
        line-height: 1.5;
    }
    &-with-desc&-with-icon &-desc{
        margin-left: 51px;
    }
 
    &-with-icon &-title{
        margin-left: 26px;
    }
 
    &-icon {
        position: absolute;
        top: -2px;
        font-size: @font-size-large + 4;
 
        &-success {
            color: @success-color;
        }
        &-info {
            color: @primary-color;
        }
        &-warning {
            color: @warning-color;
        }
        &-error {
            color: @error-color;
        }
    }
    &-with-desc &-icon{
        font-size: 36px;
        top: -6px;
    }
 
    &-custom-content{
        position: relative;
    }
}