-
Notifications
You must be signed in to change notification settings - Fork 65
/
notifications.scss
115 lines (103 loc) · 3.5 KB
/
notifications.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
@import 'variables';
@font-face {
font-family: 'Notification';
src: url('#{$react-notifications-font-base-path}/notification.eot?s3g3t9');
src: url('#{$react-notifications-font-base-path}/notification.eot?#iefixs3g3t9') format('embedded-opentype'),
url('#{$react-notifications-font-base-path}/notification.woff?s3g3t9') format('woff'),
url('#{$react-notifications-font-base-path}/notification.ttf?s3g3t9') format('truetype'),
url('#{$react-notifications-font-base-path}/notification.svg?s3g3t9#notification') format('svg');
font-weight: normal;
font-style: normal;
}
.notification-container {
box-sizing: border-box;
position: fixed;
top: $react-notifications-container-top;
right: $react-notifications-container-right;
z-index: $react-notifications-container-z-index;
width: $react-notifications-container-width;
padding: $react-notifications-container-top-padding $react-notifications-container-right-padding;
max-height: $react-notifications-container-max-height;
overflow-x: hidden;
overflow-y: auto;
}
.notification {
box-sizing: border-box;
padding: $react-notifications-padding-top $react-notifications-padding-right $react-notifications-padding-bottom $react-notifications-padding-left;
border-radius: $react-notifications-border-radius;
color: $react-notifications-color;
background-color: $react-notifications-background-color;
box-shadow: $react-notifications-box-shadow;
cursor: $react-notifications-cursor;
font-size: $react-notifications-font-size;
line-height: $react-notifications-line-height;
position: relative;
opacity: $react-notifications-opacity;
margin-top: $react-notifications-margin-top;
.title {
font-size: $react-notifications-title-font-size;
line-height: $react-notifications-title-line-height;
font-weight: $react-notifications-title-font-weight;
margin: $react-notifications-title-margin;
}
&:hover, &:focus {
opacity: $react-notifications-hover-opacity;
}
}
.notification-enter {
visibility: hidden;
transform: translate3d(100%, 0, 0);
}
.notification-enter.notification-enter-active {
visibility: visible;
transform: translate3d(0, 0, 0);
transition: all $react-notifications-transition-time;
}
.notification-leave {
visibility: visible;
transform: translate3d(0, 0, 0);
}
.notification-leave.notification-leave-active {
visibility: hidden;
transform: translate3d(100%, 0, 0);
transition: all $react-notifications-transition-time;
}
.notification {
&:before {
position: absolute;
top: $react-notifications-icon-top;
left: $react-notifications-icon-left;
margin-top: $react-notifications-icon-margin-top;
display: block;
font-family: 'Notification';
width: $react-notifications-icon-width;
height: $react-notifications-icon-height;
font-size: $react-notifications-icon-font-size;
text-align: center;
line-height: $react-notifications-icon-line-height;
}
}
.notification-info {
background-color: $react-notifications-info-background-color;
&:before {
content: $react-notifications-info-content;
}
}
.notification-success {
background-color: $react-notifications-success-background-color;
&:before {
content: $react-notifications-success-content;
}
}
.notification-warning {
background-color: $react-notifications-warning-background-color;
&:before {
content: $react-notifications-warning-content;
}
}
.notification-error {
background-color: $react-notifications-error-background-color;
&:before {
content: $react-notifications-error-content;
}
}