-
Notifications
You must be signed in to change notification settings - Fork 315
/
blog.css
423 lines (356 loc) · 11.9 KB
/
blog.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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
/* Shadow Effect on Image */
.thumbnail {
display: inline-block;
border-radius: 12px; /* Increased border radius for a smoother look */
overflow: hidden; /* Ensures the shadow stays within rounded corners */
}
.thumbnail-img {
width: 100%;
height: auto;
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3); /* Layered shadow for more depth */
transition: box-shadow 0.4s ease; /* Smooth transition for hover */
}
/* Hover Effect */
.thumbnail-img:hover {
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}
/* Color variables for light and dark themes */
:root {
--card-bg-color-light: #f5efe4; /* Light mode card background (cream) */
--card-bg-color-dark: #2a2a2a; /* Dark mode card background */
--text-color-light: #333333; /* Dark text for light mode */
--text-color-dark: #e0e0e0; /* Light text for dark mode */
--shadow-light: rgba(0, 0, 0, 0.2); /* Soft shadow for light mode */
--shadow-dark: rgba(0, 0, 0, 0.7); /* Stronger shadow for dark mode */
--highlight-color-light: #f9b0b0; /* Light mode highlight color */
--highlight-color-dark: #f9b0b0; /* Dark mode highlight color */
--tag-bg-color-light: #fff; /* Light mode tag background */
--tag-bg-color-dark: #333; /* Dark mode tag background */
--post-navigation-bg-light: #f5efe4; /* Light mode background for post navigation */
--post-navigation-bg-dark: #2a2a2a; /* Dark mode background for post navigation */
--post-bg-light: #ffffff; /* Light mode post card background */
--post-bg-dark: #3b3b3b; /* Dark mode post card background */
--post-hover-bg-light: #e6e6e6; /* Light mode post card hover background */
--post-hover-bg-dark: #2c2c2c; /* Dark mode post card hover background */
--post-shadow-light: rgba(0, 0, 0, 0.2); /* Light mode shadow */
--post-shadow-dark: rgba(0, 0, 0, 0.5); /* Dark mode shadow */
--post-hover-shadow-light: rgba(0, 0, 0, 0.3); /* Light mode hover shadow */
--post-hover-shadow-dark: rgba(0, 0, 0, 0.7); /* Dark mode hover shadow */
--border-radius: 10px; /* Consistent border radius for both modes */
}
/* Card container styles */
.content-container {
padding: 20px;
border-radius: 10px;
transition: all 0.3s ease; /* Smooth transition */
}
/* Light mode card background, shadow, and text color */
[data-theme="light"] .content-container {
background-color: var(--card-bg-color-light);
box-shadow: 0 4px 15px var(--shadow-light); /* Softer shadow for light mode */
color: var(--text-color-light); /* Black text for readability */
}
/* Dark mode card background, shadow, and text color */
[data-theme="dark"] .content-container {
background-color: var(--card-bg-color-dark);
box-shadow: 0 4px 15px var(--shadow-dark); /* Strong shadow for dark mode */
color: var(--text-color-dark); /* White text for readability */
}
/* Secondary title styling */
.secondary-title {
color: inherit; /* Inherit text color from parent */
font-size: 2rem;
font-weight: 700;
text-align: center;
margin-bottom: 15px;
padding: 10px; /* Optional: Add padding for better appearance */
}
/* Paragraph text adjustments */
.content p {
font-size: 1.1rem;
line-height: 1.6; /* Improved line spacing */
margin: 10px 0; /* Consistent spacing between paragraphs */
color: inherit; /* Inherit text color for light and dark mode */
}
/* Container Styling */
.post-footer-container {
background-color: var(--card-bg-color-dark); /* Default to dark mode background */
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 12px var(--shadow-dark);
}
[data-theme="light"] .post-footer-container {
background-color: var(--card-bg-color-light); /* Light mode background */
box-shadow: 0 4px 12px var(--shadow-light);
}
/* Tags Styling */
.tag-link {
background-color: var(--tag-bg-color-dark); /* Default dark background */
color: var(--highlight-color-dark); /* Set text color to match social icons */
margin: 5px;
padding: 8px 15px;
border-radius: 20px;
font-weight: 500;
transition: background-color 0.3s ease, color 0.3s ease;
}
/* Hover effect for tags */
.tag-link:hover {
background-color: var(--highlight-color-dark);
color: #333;
}
[data-theme="light"] .tag-link {
background-color: var(--tag-bg-color-light); /* Light mode tag background */
color: var(--highlight-color-light); /* Light mode text color */
}
[data-theme="light"] .tag-link:hover {
background-color: var(--highlight-color-light);
color: #333;
}
/* Author Section Styling */
.author-name {
font-size: 20px;
color: var(--highlight-color-dark); /* Color matches social icons */
margin: 10px 0 5px;
}
[data-theme="light"] .author-name {
color: var(--highlight-color-light); /* Light mode author name color */
}
.author-bio {
font-size: 14px;
color: #ddd;
margin-bottom: 10px;
}
/* Social Media Links */
.social-links .social-icon {
color: var(--highlight-color-dark); /* Matches the tag and author text color */
font-size: 18px;
margin: 0 8px;
padding: 8px;
border-radius: 50%;
background-color: #333;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-links .social-icon:hover {
background-color: var(--highlight-color-dark);
color: #333;
transform: scale(1.1);
}
/* Container Styling */
.post-footer-container {
background-color: #1e1e1e;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
/* Post Footer Styling */
.post-footer {
margin-bottom: 3rem;
}
/* Author Avatar Styling */
.author-avatar {
width: 100px;
height: 100px;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 15px;
}
.author-avatar img {
width: 100%; /* Makes the image responsive */
height: auto; /* Maintains aspect ratio */
border-radius: 50%; /* Keeps it circular */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Retains shadow effect */
}
/* Social Links Styling */
.social-links .social-icon {
color: var(--highlight-color-dark); /* Matches the color for text */
}
[data-theme="light"] .social-links .social-icon {
color: var(--highlight-color-light);
}
/* Navigation Label */
.nav-label {
padding: 15px;
color: #f9b0b0; /* Light color for links */
font-weight: bold;
text-align: center; /* Center-align label text */
}
/* Navigation Link */
.nav-link {
color: inherit;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center; /* Center align for the entire link */
transition: color 0.3s ease;
font-size: 1.2rem; /* Increased font size for better readability */
}
.nav-link:hover {
color: #f9b0b0; /* Hover color change */
}
/* Post Article */
.post-article {
display: flex;
flex-direction: column; /* Stack image and content */
flex: 1; /* Ensure equal height for content */
}
/* Post Image */
.post-image img {
width: 100%;
height: auto;
border-bottom: 4px solid #f9b0b0; /* Bottom border for image */
transition: transform 0.3s ease; /* Smooth scale on hover */
}
.post-image img:hover {
transform: scale(1.05); /* Slight scale effect on hover */
}
/* Post Content */
.post-content {
padding: 15px;
flex-grow: 1; /* Allow content to fill available space */
}
/* Post Category */
.post-category {
margin-bottom: 10px;
text-align: center; /* Center the category */
}
.category-link {
background-color: #555; /* Category background */
color: #f9b0b0;
padding: 8px 12px; /* More padding for better touch area */
border-radius: 20px;
text-decoration: none;
font-size: 14px;
transition: background-color 0.3s ease, color 0.3s ease; /* Added transition */
}
.category-link:hover {
background-color: #f9b0b0; /* Change category background on hover */
color: #333; /* Change text color on hover */
}
/* Post Title */
.post-title {
font-size: 1.4rem; /* Increased font size for titles */
color: #ffffff; /* White text for contrast */
text-decoration: none;
transition: color 0.3s ease;
}
.post-title:hover {
color: #f9b0b0; /* Change title color on hover */
text-decoration: underline; /* Underline on hover for emphasis */
}
/* Section Title */
.section-title {
text-align: center;
color: #f9b0b0; /* Light color for contrast */
font-size: 2rem; /* Larger font size for title */
margin-bottom: 20px;
transition: color 0.3s ease, text-shadow 0.3s ease; /* Smooth transitions */
}
.section-title:hover {
color: #ea5541; /* Change to pink on hover */
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Subtle shadow effect */
}
/* Categories Section */
.categories {
background-color: #2a2a2a; /* Dark background */
padding: 30px; /* Padding for spacing */
border-radius: 10px; /* Rounded corners */
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Subtle shadow */
margin: 30px 0; /* Margin to separate from other sections */
}
/* Category Heading */
.category-heading {
text-align: center;
color: #f9b0b0; /* Light color for contrast */
font-size: 2rem; /* Larger font size for heading */
margin-bottom: 20px; /* Space below heading */
transition: color 0.3s ease; /* Smooth color transition */
}
/* Category Item */
.category-list {
display: flex;
flex-direction: column; /* Stack items vertically */
}
.category-item {
margin-bottom: 15px; /* Space between items */
}
.category-link {
display: block;
background-color: #3b3b3b; /* Dark background for links */
padding: 15px; /* Padding for clickable area */
border-radius: 5px; /* Rounded corners */
text-decoration: none; /* Remove underline */
color: #ffffff; /* White text for contrast */
transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
}
.category-link:hover {
background-color: #ea5541; /* Pink background on hover */
transform: translateY(-2px); /* Slight lift on hover */
}
.category-link span {
font-size: 1.2rem; /* Slightly larger font size for text */
}
.d-flex-gap {
display: flex;
gap: 15px; /* Space between buttons */
flex-wrap: wrap; /* Wrap items to the next line if necessary */
justify-content: center; /* Center the buttons horizontally */
}.d-flex-gap a {
transition: all 0.2s ease;
font-weight: 600;
color: var(--text-color);
}
.d-flex-gap a i {
font-size: 24px;
}.d-flex-gap {
margin: 10px 15px;
display: flex;
flex-wrap: wrap;
gap: 10px;
/* justify-content: space-around; */
}
.footer-title {
text-align: center;
}
/* Center-align the icon container and set gap between icons */
#contact .d-flex-gap {
display: flex;
justify-content: center;
gap: 1px; /* Adjust the spacing between icons */
flex-wrap: wrap;
}
/* Style each social icon button */
#contact .nav-link {
width: 50px; /* Ensure all icons are the same size */
height: 50px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%; /* Make them circular */
font-size: 20px; /* Adjust icon size */
padding: 0;
}
footer .secondary-title.text-secondary.display-3 {
font-size: 0.875rem; /* Reduced font size */
}
/* Decrease the font size of the date paragraphs */
footer .secondary-title.text-secondary {
font-size: 0.875rem; /* Reduced font size */
}
footer .secondary-title.text-secondary {
font-size: 0.875rem; /* Reduced font size */
font-weight: normal; /* Ensure text is not bold */
}
footer .footer-title.secondary-title {
font-size: 1.75rem; /* Adjust the size as needed */
}
.feature-post .flex-item .article .text-title {
margin-bottom: 5px; /* Adjust this value to decrease spacing between title and date */
}
.feature-post .flex-item .article .secondary-title {
margin-top: 2px; /* Adjust this value to decrease spacing between date and the content */
}
.feature-post .flex-item {
margin-bottom: 10px; /* Adjust this to decrease the space between posts */
}