This repository was archived by the owner on Jan 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy path_notifications.scss
156 lines (128 loc) · 3.7 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
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
144
145
146
147
148
149
150
151
152
153
154
155
156
/***** Notifications *****/
.notification {
border: 1px solid;
display: table;
font-family: sans-serif;
font-size: 12px;
padding: 13px 15px;
transition: height 0.2s;
width: 100%;
color: #555;
}
.notification a {
color: #158ec2;
}
.notification-inner {
margin: 0 auto;
padding: 0 20px;
max-width: 980px;
}
.notification-icon,
.notification-text,
.notification-dismiss {
display: table-cell;
vertical-align: middle;
}
.notification-text {
padding: 0 15px;
width: 100%;
}
.notification + .notification {
margin-bottom: -1px;
position: relative;
top: -1px;
}
/* Error */
.notification-error {
background: #ffeded;
border-color: #f7cbcb;
}
.notification-error .notification-icon::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cg fill='none' stroke='%23555555'%3E%3Ccircle cx='5.5' cy='6.5' r='5'/%3E%3Cpath stroke-linecap='round' d='M5.5 3.5v3'/%3E%3C/g%3E%3Ccircle cx='5.5' cy='9' r='1' fill='%23555555'/%3E%3C/svg%3E");
}
/* Notice */
.notification-notice {
background: #dbf3ff;
border-color: #b5e0f5;
}
.notification-notice .notification-icon::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cg fill='none' stroke='%23555555'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l2 2L9 4.5'/%3E%3Ccircle cx='6' cy='6' r='5.5'/%3E%3C/g%3E%3C/svg%3E");
}
/* Alert / Lock */
.notification-alert {
color: #ad5e18;
background: #fff8ed;
border-color: #fcdba9;
}
.notification-alert .notification-icon::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ad5e18' stroke-linecap='round' d='M5.06 1.27l-4.5 8.5c-.18.33.06.73.44.73h9c.38 0 .62-.4.44-.73l-4.5-8.5a.494.494 0 00-.88 0zM5.5 4v2'/%3E%3Ccircle cx='5.5' cy='8' r='.8' fill='%23ad5e18'/%3E%3C/svg%3E");
}
.notification-icon::before {
background-size: cover;
content: '';
display: inline-block;
height: 14px;
width: 14px;
vertical-align: middle;
}
/* Dismiss button */
.notification-dismiss,
a.notification-dismiss {
color: #555;
cursor: pointer;
opacity: 0.6;
transition: opacity 100ms ease;
text-decoration: none !important;
}
.notification-dismiss:hover {
opacity: 1;
}
/* Inline notifications */
.notification-inline {
border-radius: $border-radius;
line-height: 14px;
margin-top: 5px;
padding: 5px;
position: relative;
text-align: left;
vertical-align: middle;
[dir='rtl'] & {
text-align: right;
}
&[aria-hidden='true'] {
display: none;
}
&.notification-error::before {
background-size: cover;
content: '';
display: inline-block;
height: 14px;
width: 14px;
vertical-align: middle;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cg fill='none' stroke='%23e35b66'%3E%3Ccircle cx='5.5' cy='6.5' r='5'/%3E%3Cpath stroke-linecap='round' d='M5.5 3.5v3'/%3E%3C/g%3E%3Ccircle cx='5.5' cy='9' r='1' fill='%23e35b66'/%3E%3C/svg%3E");
margin: -2px 5px 0 0;
[dir='rtl'] & {
margin: 0 0 0 5px;
}
}
&.notification-error {
background-color: #fff0f1;
border: 1px solid #e35b66;
color: #cc3340;
}
&.notification-large {
padding: 13px 15px;
margin-bottom: 25px;
}
}
.notification-left-aligned {
text-align: left;
padding-left: 0;
}
html[dir='rtl'] {
.notification-left-aligned {
text-align: right;
padding-left: auto;
padding-right: 0;
}
}