-
Notifications
You must be signed in to change notification settings - Fork 289
/
Copy pathnotification.scss
143 lines (119 loc) · 2.81 KB
/
notification.scss
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
@import '@devui/theme/styles-var/devui-var.scss';
.#{$devui-prefix}-notification {
position: fixed;
top: 50px;
right: 20px;
width: 20em;
word-break: normal;
word-wrap: break-word;
z-index: $devui-z-index-pop-up;
a {
&:link,
&:visited {
color: $devui-link-light;
}
&:hover,
&:active {
color: $devui-link-light-active;
}
}
}
.#{$devui-prefix}-notification__item-container {
position: relative;
margin: 0 0 8px 0;
opacity: 0.95;
filter: alpha(opacity=95);
box-shadow: $devui-shadow-length-feedback-overlay $devui-shadow;
border-radius: $devui-border-radius-feedback;
color: $devui-feedback-overlay-text;
background-color: $devui-feedback-overlay-bg;
}
.#{$devui-prefix}-notification__item {
position: relative;
display: block;
padding: 12px 16px;
}
.#{$devui-prefix}-notification__icon-close {
position: absolute;
top: 7px;
right: 10px;
cursor: pointer;
.devui-toast-close-icon {
fill: $devui-light-text ;
}
}
.#{$devui-prefix}-notification__title {
font-size: $devui-font-size-lg;
padding: 0 0 4px 0;
display: block;
font-weight: 700;
line-height: 1.5;
}
.#{$devui-prefix}-notification__image {
position: absolute;
display: inline-block;
width: 16px;
height: 16px;
border-radius: 50%;
left: 16px;
top: 14px;
padding: 0;
line-height: 1;
&.#{$devui-prefix}-notification__image--warning {
path.#{$devui-prefix}-notification__warning-outer {
fill: $devui-warning-line;
}
path.#{$devui-prefix}-notification__warning-inner {
fill: $devui-light-text;
stroke: $devui-light-text;
}
}
&.#{$devui-prefix}-notification__image--info {
background-color: $devui-info;
}
&.#{$devui-prefix}-notification__image--error {
background-color: $devui-danger;
}
&.#{$devui-prefix}-notification__image--success {
background-color: $devui-success;
}
.#{$devui-prefix}-notification__image-info-path,
.#{$devui-prefix}-notification__image-error-path,
.#{$devui-prefix}-notification__image-success-path {
fill: $devui-light-text;
}
}
.#{$devui-prefix}-notification__message {
margin-left: 20px;
&.no-title {
margin-left: 0;
.#{$devui-prefix}-notification__title {
padding: 0;
}
.#{$devui-prefix}-notification__content {
margin-top: 0;
}
}
.#{$devui-prefix}-notification__content {
margin-top: 4px;
line-height: 1.5;
}
}
.#{$devui-prefix}-notification-message-common .#{$devui-prefix}-notification__message {
margin-left: 0;
}
.#{$devui-prefix}-notification__message p {
margin: 0;
margin-top: 4px;
line-height: 1.5;
}
.notification-fade {
&-enter-active,
&-leave-active {
transition: transform $devui-animation-duration-slow $devui-animation-ease-in-out;
}
&-enter-from,
&-leave-to {
transform: translateX(100%);
}
}