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
|
@import "./_containers.scss";
@import "./_types.scss";
@keyframes timer {
0% { width: 100%; }
100% { width: 0%; }
}
.rnc__base {
position: fixed;
z-index: 9000;
pointer-events: none;
width: 100%;
height: 100%;
}
.rnc__notification-item {
display: flex;
position: relative;
border-radius: 3px;
margin-bottom: 15px;
box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.2);
cursor: pointer;
}
.rnc__notification-container--top-full .rnc__notification-item,
.rnc__notification-container--bottom-full .rnc__notification-item {
margin-bottom: 0;
border-radius: 0;
}
.rnc__notification-container--top-full .rnc__notification,
.rnc__notification-container--bottom-full .rnc__notification {
width: 100% !important;
}
.rnc__notification-timer {
width: 100%;
height: 3px;
margin-top: 10px;
border-radius: 5px;
}
.rnc__notification-timer-filler {
height: 3px;
border-radius: 5px;
}
.rnc__notification-title {
color: #fff;
font-weight: 700;
font-size: 14px;
margin-top: 5px;
margin-bottom: 5px;
}
.rnc__notification-message {
color: #fff;
max-width: calc(100% - 15px);
font-size: 14px;
line-height: 150%;
word-wrap: break-word;
margin-bottom: 0;
margin-top: 0;
}
.rnc__notification-content {
padding: 8px 15px;
display: inline-block;
width: 100%;
}
.rnc__notification-close-mark {
width: 18px;
height: 18px;
border-radius: 50%;
display: inline-block;
position: absolute;
right: 10px;
top: 10px;
&::after {
content: '\D7';
position: absolute;
transform: translate(-50%, -50%);
color: #fff;
font-size: 12px;
left: 50%;
top: 50%;
}
}
.rnc__notification-container--mobile-top .rnc__notification-item,
.rnc__notification-container--mobile-bottom .rnc__notification-item,
.rnc__notification-container--mobile-top .notification,
.rnc__notification-container--mobile-bottom .notification {
max-width: 100%;
width: 100%;
}
.rnc__notification-container--top-right .notification,
.rnc__notification-container--bottom-right .notification {
margin-left: auto;
}
.rnc__notification-container--top-left .notification,
.rnc__notification-container--bottom-left .notification {
margin-right: auto;
}
.rnc__notification-container--mobile-top .notification,
.rnc__notification-container--mobile-bottom .notification {
margin-left: auto;
margin-right: auto;
}
|