forked from Rajesh-Royal/ChatAppSocketIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
221 lines (192 loc) · 3.55 KB
/
style.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font: 16px Helvetica, Arial;
}
form {
background: gray;
padding: 3px;
position: fixed;
display: flex;
bottom: 0px;
width: 100%;
padding-bottom: 10px;
}
form input {
border: 0;
padding: 10px;
width: 100%;
margin-right: 0.5%;
}
form button {
background: rgb(130, 224, 255);
border: none;
padding: 10px 20px;
margin-top: 5px;
}
#progress{
padding: 5px;
color: #22f11f;
display: none;
}
#messages {
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 250px;
display: flex;
flex-direction: column;
}
#messages li {
padding: 5px 10px;
}
#messages li:nth-child(odd) {
background: #eee;
}
.username {
font-size: 16px;
color: cornflowerblue;
}
#feedback {
margin-bottom: 10px;
color: white;
padding: 10px;
}
#overlay {
height: 100%;
width: 100%;
z-index: 20;
position: absolute;
top: 0;
left: 0;
background: black;
display: flex;
justify-content: center;
align-items: center;
}
.inner {
width: 98vw;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.inner input {
font-size: 18px;
padding: 15px;
border: none;
height: 100px;
width: 100%;
}
input:focus {
outline: none;
}
.inner button:focus {
outline: none;
}
.inner button {
background: moccasin;
color: black;
font-size: 18px;
font-weight: 600;
padding: 16px 30px;
border: none;
cursor: pointer;
height: 100px;
width: 100%;
}
.inner button:hover {
background: rgb(255, 218, 153);
}
ul {
display: flex;
justify-content: left;
flex-direction: column;
max-width: 100%;
}
ul li{
max-width: 450px;
}
ul li img{
cursor: pointer;
}
.imgupload{
border: 8px solid rgb(91, 138, 91);
margin-bottom: 10px;
margin-left: 20px;
margin-top: 10px;
}
/* Style the Image Used to Trigger the Modal */
#myImg {
border-radius: 5px;
cursor: pointer;
transition: 0.3s;
}
#myImg:hover {opacity: 0.7;}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}
/* Modal Content (Image) */
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
}
/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
text-align: center;
color: #ccc;
padding: 10px 0;
height: 150px;
}
/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
animation-name: zoom;
animation-duration: 0.6s;
}
@keyframes zoom {
from {transform:scale(0)}
to {transform:scale(1)}
}
/* The Close Button */
.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
}
.close:hover,
.close:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}
/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
.modal-content {
width: 100%;
}
}