-
Notifications
You must be signed in to change notification settings - Fork 0
/
mangochat.css
executable file
·111 lines (94 loc) · 1.96 KB
/
mangochat.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
body {
font-family: sans-serif;
background-color: #FFBF00;
background-image:
radial-gradient(ellipse farthest-corner at 0 0, rgba(0,0,0,.2) 0%, rgba(62,45,177, .3) 50%,
rgba(255,255,255,.3) 95%), linear-gradient(to bottom, #FFc926, #FFDC73 100%);
background-attachment: fixed;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
padding: 0;
margin: 0;
font-size: 16px;
line-height: 1.5;
}
.container {
max-width: 600px;
margin: 0 auto;
min-height: 100%;
background: white;
display: flex;
flex-direction: column;
overflow-x: hidden;
}
header { flex: 1; }
ul { flex: 999; }
footer { flex: 1; }
header, footer {
background: #d2edf4;
background-image: linear-gradient(to bottom, #FFBF00, #D9A200 100%);
padding: 1rem;
}
#login-buttons {
display: block;
}
h1 {
font-size: 1.5rem;
margin: 0;
text-align: center;
}
form {
margin: 0;
}
.new-message input {
box-sizing: border-box;
width: 100%;
padding: 1rem;
display: block;
font-size: 1rem;
border: none;
}
ul {
margin: 0;
padding: 0;
background: white;
min-height: 340px;
}
li {
list-style: none;
padding: 1rem;
border-bottom: #eee solid 1px;
opacity: 0; transform: translateX(-25px);
-webkit-animation: slideIn ease .25s;
-webkit-animation-fill-mode: forwards;
-moz-animation: slideIn ease .25s;
-moz-animation-fill-mode: forwards;
animation: slideIn ease .25s;
animation-fill-mode: forwards;
}
div .username {
font-weight: bold;
}
@media (max-width: 600px) {
li {
padding: 12px 15px;
}
.new-message input {
padding-top: 15px;
}
}
@-webkit-keyframes slideIn {
from { opacity: 0; transform: translateX(-25px); }
to { opacity: 1; transform: translateX(0); }
}
@-moz-keyframes slideIn {
from { opacity: 0; transform: translateX(-25px); }
to { opacity: 1; transform: translateX(0); }
}
@keyframes slideIn {
from { opacity: 0; transform: translateX(-25px); }
to { opacity: 1; transform: translateX(0); }
}