-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotifications.css
137 lines (129 loc) · 2.42 KB
/
notifications.css
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
@import url(https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css);
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:700,400,300);
.Message {
box-sizing: border-box;
font-family: "Source Sans Pro";
font-weight: 300;
display: table;
position: relative;
margin: 10px auto 10px;
width: 100%;
background-color: #0074D9;
color: #fff;
transition: all 0.5s ease;
border: 2px solid black;
border-radius: 25px;
}
.Message.is-hidden {
transform: scale(0);
opacity: 0;
height: 0;
font-size: 0;
padding: 0;
margin: 0;
border: 0;
}
.Message.is-hidden .Message-body{
padding: 0;
display: none;
}
.Message.is-hidden .Message-icon{
padding: 0;
}
.Message.is-hidden .Message-icon > i {
font-size: 0;
}
.Message.is-hidden .Message-close {
height: 0;
margin-top: 0;
font-size: 0;
}
.Message.hide{
display: none;
}
.Message--orange {
background-color: #F39C12;
}
.Message--red {
background-color: #FF4136;
}
.Message--green {
background-color: #2ECC40;
}
.Message-icon {
box-sizing: border-box;
display: table-cell;
vertical-align: middle;
width: 60px;
padding: 30px;
text-align: center;
background-color: rgba(0, 0, 0, 0.25);
transition: all 0.5s ease;
border-radius: 23px 0 0 23px;
}
.Message-icon > i {
transition: all 0.5s ease;
width: 20px;
font-size: 20px;
}
.Message-body {
font-size: 14pt;
display: table-cell;
vertical-align: middle;
padding: 15px 10px 15px 10px;
transition: all 0.5s ease;
}
.Message-body > p {
line-height: 1.2;
margin-left: 3px;
}
.Message-button {
position: relative;
margin: 2px 5px 0px;
background-color: rgba(0, 0, 0, 0.25);
box-shadow: 0 3px rgba(0, 0, 0, 0.4);
border: none;
padding: 10px 15px;
font-size: 16px;
font-family: "Source Sans Pro";
color: #fff;
outline: none;
cursor: pointer;
transition: 0.15s;
top: 0;
}
.Message-button:hover {
background: rgba(0, 0, 0, 0.3);
}
.Message-button:active {
background: rgba(0, 0, 0, 0.3);
box-shadow: 0 0 rgba(0, 0, 0, 0.4);
top: 3px;
}
.Message-close {
background-color: rgba(0, 0, 0, 0.3);
color: #fff;
border: none;
outline: none;
font-size: 20px;
opacity: 0;
border-radius: 50%;
transition: 0.15s;
height: 25px;
width: 25px;
float: right;
margin-right: 5px;
margin-top: 5px;
display: flex;
justify-content: center;
align-items: center;
}
.Message-close > i{
cursor: pointer;
}
.Message:hover .Message-close {
opacity: 1;
}
.Message-close:hover {
background-color: rgba(0, 0, 0, 0.5);
}