-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
606 lines (512 loc) · 12.2 KB
/
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
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
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #1A1A1B;
color: #D7DADC;
}
header {
background-color: #1A1A1B;
padding: 10px;
border-bottom: 1px solid #343536;
}
.top-nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo img {
width: 50px;
}
input[type="text"] {
width: 300px;
padding: 8px;
background-color: #272729;
border: 1px solid #343536;
color: white;
border-radius: 4px;
margin-bottom: 8px; /* Added margin below the search input */
margin-top: 5px; /* Added margin to lower the search input */
}
.search-container {
position: relative;
display: inline-block;
}
.search-input {
padding-right: 35px; /* space for the button */
width: 300px;
padding: 10px;
border-radius: 25px;
border: 1px solid #ccc;
}
.search-btn {
position: absolute;
right: 10px;
top: 45%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
font-size: 18px; /* adjust icon size */
}
.search-btn:focus {
outline: none;
}
.user-actions button {
background-color: #0079D3;
border: none;
padding: 8px; /* Slightly reduced padding */
color: white;
border-radius: 4px;
margin-left: 10px;
margin-top: -3px; /* Move buttons up */
}
.nav-links {
background-color: #272729;
padding: 10px;
}
.nav-links ul {
list-style: none;
display: flex;
justify-content: space-around;
}
.nav-links ul li {
color: #D7DADC;
cursor: pointer;
}
main {
display: flex;
justify-content: space-between;
height: 100vh; /* Full height for main content */
}
.left-sidebar, .right-sidebar {
width: 200px;
padding: 20px;
background-color: #272729;
display: flex;
flex-direction: column; /* Allows vertical stacking */
height: 100vh;
}
.left-sidebar ul, .right-sidebar ul {
list-style: none;
}
.left-sidebar ul li, .right-sidebar ul li {
margin-bottom: 10px;
color: #D7DADC;
}
/* Content Section (Wiki-style Article) */
.content {
width: calc(100% - 40px); /* Adjust the width to be a bit smaller */
flex-grow: 1;
overflow-y: auto;
padding: 20px;
max-width: 800px; /* Optional: Set a maximum width */
margin: 0 auto; /* Center the content if it's not full width */
}
article h1 {
font-size: 2.5em;
color: #D7DADC;
border-bottom: 2px solid #343536;
padding-bottom: 10px;
margin-bottom: 20px;
}
article h2 {
font-size: 1.8em;
color: #D7DADC;
border-bottom: 1px solid #343536;
padding-bottom: 10px;
margin-top: 40px;
margin-bottom: 20px;
}
article p {
font-size: 1.1em;
line-height: 1.6;
color: #D7DADC;
margin-bottom: 20px;
}
article em {
color: #AAAAAA;
font-style: italic;
}
article strong {
font-weight: bold;
color: #D7DADC;
}
.image-container img {
width: 100%;
height: auto;
margin: 20px 0;
}
.image-container p {
font-size: 0.9em;
color: #AAAAAA;
text-align: center;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
table th, table td {
padding: 10px;
border: 1px solid #343536;
}
table th {
background-color: #272729;
font-weight: bold;
color: #D7DADC;
}
table td {
background-color: #1A1A1B;
}
.profile-header {
display: flex;
justify-content: space-between;
}
.tabs {
display: flex;
margin-top: 20px;
border-bottom: 1px solid #343536;
}
.tab {
flex: 1; /* Make each tab take equal space */
padding: 10px;
text-align: center;
cursor: pointer;
color: #7D7D7D;
transition: color 0.3s;
}
.tab.active {
color: #D7DADC; /* Active tab color */
border-bottom: 2px solid #D7DADC; /* Underline for active tab */
}
.top-posts {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
.top-posts .post {
width: 22%;
background-color: #1A1A1B;
padding: 10px;
border-radius: 4px;
text-align: center;
}
.top-posts .post img {
width: 100%;
border-radius: 4px;
}
.main-feed {
background-color: #1A1A1B;
padding: 20px;
border-radius: 4px;
}
.feed-item {
padding: 15px;
border-bottom: 1px solid #343536;
}
.post-content {
flex-grow: 1;
}
.post-content p {
margin-bottom: 10px;
}
.reactions {
display: flex;
justify-content: flex-start;
align-items: center;
gap: 20px; /* Space between buttons */
}
/* New styles to increase spacing between title, description, and reactions */
.post-title {
font-size: 24px;
margin-bottom: 15px; /* Adjust spacing between title and description */
}
.post-body p {
margin-bottom: 20px; /* Adjust spacing between description and reactions */
}
.reactions {
gap: 25px; /* Increase gap between the reaction buttons */
margin-top: 10px; /* Add spacing above reactions */
}
.upvote-section {
display: flex; /* Enable flexbox for horizontal alignment */
align-items: center;
background-color: #272729;
border-radius: 20px;
padding: 5px 10px;
color: #D7DADC;
}
.upvote-button, .downvote-button {
background-color: transparent;
border: none;
font-size: 16px;
cursor: pointer;
color: #D7DADC;
display: flex;
align-items: center; /* Center the icon and count vertically */
}
.upvote-button:hover, .downvote-button:hover {
background-color: #343536; /* Hover effect */
}
.vote-count {
font-size: 14px;
margin-left: 5px;
}
.comment-section, .share-section {
display: flex;
align-items: center;
background-color: #272729;
border-radius: 20px;
padding: 5px 10px;
color: #D7DADC;
}
.comment-section button, .share-section button {
background-color: transparent;
border: none;
font-size: 16px;
cursor: pointer;
color: #D7DADC;
padding-right: 5px;
}
.comment-count {
font-size: 14px;
margin-left: 5px;
}
.upvote-section:hover, .comment-section:hover, .share-section:hover {
background-color: #343536;
}
/* Added margin below the right sidebar for spacing */
.right-sidebar {
width: 200px;
padding: 20px;
background-color: #272729; /* Keeping consistent with the theme */
border-left: 1px solid #343536; /* Add a left border for separation */
}
/* Added margin at the top of the popular communities */
.right-sidebar ul li:first-child {
margin-top: 20px; /* Space above the first community */
}
.right-sidebar .achievements h4 {
font-size: 16px;
color: #D7DADC;
}
.right-sidebar .achievements p,
.right-sidebar .trophy-case p {
color: #D7DADC;
}
/* Links */
.right-sidebar .links a {
color: #0079D3;
text-decoration: none;
}
.community-info {
margin-bottom: 20px; /* Space below community info */
}
.community-info h3 {
margin-bottom: 10px; /* Space between heading and description */
}
.community-info p {
margin-bottom: 5px; /* Space below the description paragraph */
}
.separator {
height: 1px; /* Height of the separator */
background-color: #343536; /* Match the line color */
margin: -5px 0; /* Space above and below the separator */
}
.popular-communities {
margin-top: 25px; /* Add margin at the top */
}
.popular-communities h4 {
margin-bottom: 10px; /* Space below the heading */
}
.popular-communities ul {
list-style-type: none; /* Remove default list styling */
padding-left: 0; /* Remove padding from the left */
}
.popular-communities ul li {
margin-bottom: 10px; /* Space between items */
color: #D7DADC; /* Text color for readability */
cursor: pointer; /* Change cursor to pointer */
}
.popular-communities ul li:hover {
color: #0079D3; /* Change color on hover */
}
.thread-container {
background-color: #1A1A1B; /* Match the background of the comments */
padding: 20px; /* Same padding as comments */
border-radius: 4px; /* Same border radius as comments */
margin-top: -18px;
margin-bottom: 0px; /* Space below the thread */
}
.comments-section {
margin-top: 30px;
background-color: #1A1A1B;
padding: 20px;
border-radius: 4px;
}
.comments-section h3 {
font-size: 20px;
margin-top: -30px;
margin-bottom: 20px;
}
.comment {
display: flex;
margin-bottom: 20px;
border-bottom: 1px solid #343536;
padding-bottom: 15px;
}
.nested-comment {
margin-left: 40px;
border-left: 2px solid #343536;
padding-left: 10px;
}
.comment-votes {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #272729;
padding: 5px;
border-radius: 4px;
margin-right: 20px;
}
.vote-up, .vote-down {
display: flex;
flex-direction: row; /* Align button and count horizontally */
align-items: center; /* Center align button and count */
}
.vote-up {
margin-bottom: 5px; /* Space between upvote and downvote sections */
}
.upvote-button, .downvote-button {
background-color: transparent;
border: none;
font-size: 16px;
cursor: pointer;
}
.vote-count, .downvote-count {
margin-left: 5px; /* Space between button and count */
display: flex;
align-items: center; /* Center align the counts vertically */
}
.comment-body {
flex-grow: 1;
}
.comment-body p {
margin-bottom: 5px;
}
.comment-body .reactions {
display: flex;
gap: 10px;
font-size: 14px;
color: #D7DADC;
}
.reactions span:hover {
color: #0079D3;
}
.separator-line {
border: none; /* Remove default styling */
height: 1px; /* Height of the line */
background-color: #343536; /* Match the line color */
}
.shopping-cart-title {
font-size: 2em; /* Adjust font size as needed */
margin-bottom: 20px; /* Add space below the title */
color: #ffffff; /* Title text color */
text-align: left; /* Align title to the left */
}
.cart-items {
background-color: #1e1e1e; /* Cart item background */
border-radius: 8px; /* Rounded corners */
padding: 10px;
}
.cart-item {
display: flex;
align-items: center;
justify-content: space-between;
margin: 10px 0;
border-bottom: 1px solid #2e2e2e; /* Separator for items */
padding-bottom: 10px;
}
.cart-item-img {
width: 80px; /* Adjusted size */
height: auto;
border-radius: 5px; /* Rounded image corners */
}
.cart-item-info {
flex: 1;
margin-left: 10px;
}
.item-category, .item-name {
display: block;
color: #ffffff; /* Item text color */
}
.item-quantity {
display: flex;
align-items: center;
margin-right: 2px; /* Reduce margin to align more closely */
}
.quantity-btn {
background-color: #3f3f3f; /* Button background */
color: #ffffff; /* Button text color */
border: none;
border-radius: 5px;
cursor: pointer;
padding: 6px 10px; /* Slightly decreased padding for a smaller button */
margin: 3px; /* Reduce margin for closer alignment */
font-size: 1.2em; /* Keep the font size the same */
transition: background-color 0.3s; /* Smooth transition for hover effect */
}
.remove-item {
background-color: #f44336; /* Red background for remove button */
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
padding: 6px 10px; /* Decreased padding for a slightly smaller button */
font-size: 1.1em; /* Keep the font size the same */
transition: background-color 0.3s; /* Smooth transition for hover effect */
}
.remove-item:hover {
background-color: #d32f2f; /* Darker shade on hover */
}
.cart-summary {
background-color: #1A1A1B; /* Summary background */
border-radius: 8px;
padding: 15px;
margin: 5px;
}
.save-btn {
background-color: #4CAF50; /* Green background for saving */
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
padding: 10px 15px;
margin-top: 12px;
}
.trending-topics {
margin: 20px;
padding: 10px;
border: 1px solid #444;
border-radius: 8px;
}
.trending-topics h3 {
margin-bottom: 10px;
}
.trending-topics ul {
list-style-type: none;
padding: 0;
}
.trending-topics li {
margin: 15px 0; /* Space between each topic */
padding: 10px;
border-bottom: 1px solid #343536; /* Optional: add a separator */
}
.trending-topics li:last-child {
border-bottom: none; /* Remove last border */
}