-
Notifications
You must be signed in to change notification settings - Fork 0
/
default-styles.css
301 lines (266 loc) · 8.22 KB
/
default-styles.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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
body {
font-family: Arial, sans-serif; /* Set default font */
margin: 0; /* Remove default margin */
padding: 0; /* Remove default padding */
background-color: #ffffff; /* Set background color */
}
/* Container styles */
.container {
max-width: 1000px; /* Set maximum width */
margin: 20px auto; /* Center the container */
padding: 0 20px; /* Add padding */
display: flex; /* Use flexbox for layout */
flex-direction: column; /* Arrange items in a column */
align-items: center; /* Center items horizontally */
}
/* Heading styles */
h1 {
margin-bottom: 20px; /* Add space below heading */
}
/* Toggle menu styles */
.menu-toggle {
position: absolute; /* Position the menu toggle */
top: 0; /* Set top position */
left: 0; /* Set left position */
margin: 10px; /* Add margin */
z-index: 1; /* Set stacking order */
cursor: pointer; /* Change cursor to pointer */
}
.dropdown-header {
padding: 10px 20px; /* Add padding */
font-weight: bold; /* Set font weight */
color: #333; /* Set text color */
text-transform: uppercase; /* Transform text to uppercase */
}
.dropdown-divider {
border-bottom: 1px solid #ccc; /* Add border bottom */
margin: 5px 0; /* Add margin */
}
/* Dropdown menu styles */
.dropdown-content {
display: none; /* Hide the dropdown content by default */
position: absolute; /* Position the dropdown */
background-color: #fff; /* Set background color */
min-width: 160px; /* Set minimum width */
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Add shadow */
padding: 10px 0; /* Add padding */
z-index: 1; /* Set stacking order */
top: 30px; /* Set top position */
left: 0; /* Set left position */
border-radius: 5px; /* Add border radius */
animation: slideDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
/* Define the animation */
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Dropdown item styles */
.dropdown-content a {
display: block; /* Display as block element */
padding: 10px 20px; /* Add padding */
color: #333; /* Set text color */
text-decoration: none; /* Remove underline */
transition: background-color 0.3s; /* Add transition effect */
transition: background-color 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* Hover effect for dropdown items */
.dropdown-content a:hover {
background-color: #f1f1f1; /* Change background color on hover */
}
/* Show dropdown content when menu toggle is active */
.menu-toggle.active .dropdown-content {
display: block; /* Display the dropdown content */
opacity: 0; /* Start with opacity 0 */
transform: translateY(-20px) scale(0.9); /* Start with translateY -20px and slightly smaller */
animation: fadeInSlideDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes fadeInSlideDown {
from {
opacity: 0;
transform: translateY(-20px) scale(0.9);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes scaleIn {
from {
transform: scale(0.95);
}
to {
transform: scale(1);
}
}
/* Container for uploaded images */
.uploaded-img-container {
margin-top: 5px; /* Add space above container */
display: flex; /* Use flexbox for layout */
flex-wrap: wrap; /* Allow wrapping */
justify-content: center; /* Center content horizontally */
}
/* online users */
.users-online {
position: absolute;
top: 0px;
right: 0;
margin: 10px;
z-index: 1;
cursor: pointer;
}
#users-online-container {
transition: transform 0.3s ease;
}
#users-online-container:hover {
transform: scale(1.1);
}
.emoji-size {
width: 1em;
height: 1em;
}
.emoji-wrapper {
display: inline-block;
}
/* Styles for uploaded images */
.uploaded-img {
max-width: 500px; /* Set maximum width */
height: 200px; /* Set height to maintain aspect ratio */
border-radius: 5px; /* Add border radius */
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Add shadow */
margin: 0 auto; /* Center the image */
}
/* Gallery styles */
.gallery {
display: grid; /* Use grid for layout */
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Set column layout */
grid-auto-rows: minmax(200px, auto); /* Set row height */
grid-gap: 20px; /* Set gap between grid items */
}
/* Image styles */
.gallery img {
width: 100%; /* Set image width to fill container */
height: auto; /* Set height to maintain aspect ratio */
border-radius: 5px; /* Add border radius */
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Add shadow */
transition: transform 0.3s, box-shadow 0.3s; /* Add transform and shadow transition */
cursor: pointer; /* Change cursor to pointer */
}
/* Smooth zoom effect for images on hover */
.gallery img:hover {
transform: scale(1.05); /* Scale image on hover */
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}
/* Modal styles */
.modal {
display: none; /* Hide the modal window by default */
position: fixed; /* Fixed position to keep it in place */
z-index: 1; /* Place modal window on top of other content */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Allow vertical scrolling if needed */
background-color: rgb(0,0,0); /* Black background color */
background-color: rgba(0,0,0,0.9); /* Black background color with transparency */
transition: opacity 0.3s; /* Add a smooth transition */
}
/* Modal content styles */
.modal-content {
margin: auto; /* Center the content vertically and horizontally */
display: block;
max-width: 90%; /* Maximum width of the content */
max-height: 90%; /* Maximum height of the content */
animation: fadeInBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* Animation to show preview */
@keyframes fadeInBounce {
0% {
opacity: 0;
transform: scale(0.8);
}
70% {
opacity: 1;
transform: scale(1.1);
}
100% {
opacity: 1;
transform: scale(1);
}
}
/* Image inside the modal */
.modal-img {
width: 100%; /* Set the image width to 100% of the container */
height: auto; /* Auto height to maintain aspect ratio */
display: block;
margin: auto; /* Center the image */
max-width: 100%; /* Maximum width of the image */
max-height: 100%; /* Maximum height of the image */
}
/* Close button styles */
.close {
position: absolute; /* Absolute position */
top: 15px; /* Distance from the top */
right: 35px; /* Distance from the right */
font-size: 30px; /* Font size */
font-weight: bold; /* Font weight */
color: #f1f1f1; /* Text color */
transition: 0.3s; /* Smooth transition */
}
/* Hover effect for close button */
.close:hover,
.close:focus {
color: #bbb; /* Change text color on hover or focus */
text-decoration: none; /* Remove underline */
cursor: pointer; /* Change cursor on hover */
}
/* Styles for zoom controls */
.zoom-controls {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
z-index: 2;
}
.zoom-controls button {
background: none;
border: none;
color: white;
font-size: 20px;
cursor: pointer;
margin: 0 5px;
}
/* Styles for the display of the current image */
.current-image {
position: absolute;
bottom: 10px;
right: 10px;
color: white;
font-size: 14px;
z-index: 2;
}
/* Custom CSS */
.image-container {
margin: 5px; /* Add margin */
position: relative; /* Set position */
cursor: pointer; /* Change cursor to pointer */
max-width: 350px; /* Set maximum width */
max-height: 300px; /* Set height */
border-radius: 10px; /* Add border radius */
transition: transform 0.3s ease; /* Add transform transition */
text-align: center;
}
.image-container:hover {
transform: translateY(-5px); /* Translate on hover */
}
.image-container img {
width: auto; /* Set width to auto */
height: 100%; /* Set height to fill container */
border-radius: 10px 10px 0 0; /* Add border radius */
}