|
| 1 | +.filterContainer { |
| 2 | + position: sticky; |
| 3 | + top: 0; |
| 4 | + z-index: 100; |
| 5 | + background-color: white; /* Ensure background is white to cover content when sticky */ |
| 6 | + padding: 16px 30px 0px 30px; /* Add padding to match main content */ |
| 7 | + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better visual separation */ |
| 8 | +} |
| 9 | + |
1 | 10 | .main { |
2 | 11 | display: flex; |
3 | 12 | flex-direction: column; |
4 | | - padding: 16px 30px; |
| 13 | + padding: 0 30px 16px 30px; /* Adjust padding for main content */ |
| 14 | +} |
| 15 | + |
| 16 | +.contentWrapper { |
| 17 | + display: flex; |
| 18 | + flex-direction: column; |
| 19 | + gap: 20px; |
5 | 20 | } |
6 | 21 |
|
7 | 22 | .accordion { |
8 | 23 | background-color: #eee; |
9 | 24 | color: #444; |
10 | 25 | cursor: pointer; |
11 | | - padding: 16px 24px 16px 24px; |
| 26 | + padding: 16px 24px; |
12 | 27 | width: 100%; |
13 | 28 | display: flex; |
14 | 29 | flex-direction: row; |
15 | 30 | border: none; |
16 | 31 | outline: none; |
17 | 32 | transition: 0.4s; |
18 | 33 | justify-content: space-between; |
19 | | - |
20 | 34 | font-size: 18px; |
21 | 35 | font-weight: 700; |
22 | 36 | } |
|
33 | 47 | } |
34 | 48 |
|
35 | 49 | ul.chips { |
36 | | - margin: 30px 0 50px; |
| 50 | + margin: 0; |
37 | 51 | list-style: none; |
38 | 52 | display: flex; |
39 | 53 | gap: 6px; |
40 | 54 | flex-wrap: wrap; |
41 | | - padding: 0px 16px 16px 16px; |
| 55 | + padding: 0; |
42 | 56 | } |
43 | 57 |
|
44 | | -.chip { |
45 | | - background-color: rgb(255, 255, 255); |
46 | | - display: flex; |
47 | | - align-items: center; |
48 | | - gap: 4px; |
49 | | - margin-right: 6px; |
50 | | - font-size: 12px; |
51 | | - float: left; |
52 | | - border: 1px solid #f1f2f5; |
53 | | - border-radius: 14px; |
54 | | - padding: 16px 8px; |
55 | | - font-size: 14px; |
| 58 | +.postList { |
| 59 | + display: grid; |
| 60 | + grid-template-columns: repeat(3, 1fr); |
| 61 | + gap: 20px; /* Gap between cards */ |
56 | 62 | } |
57 | 63 |
|
58 | | -.resetChip { |
59 | | - background-color: rgb(255, 255, 255); |
| 64 | +.pagination { |
60 | 65 | display: flex; |
| 66 | + justify-content: center; |
61 | 67 | align-items: center; |
62 | | - gap: 4px; |
63 | | - margin-right: 6px; |
64 | | - font-size: 12px; |
65 | | - float: left; |
66 | | - padding: 16px 8px; |
| 68 | + gap: 5px; /* Smaller gap between page buttons */ |
| 69 | + margin-top: 20px; |
| 70 | +} |
| 71 | + |
| 72 | +.pagination button { |
| 73 | + padding: 6px 10px; /* Smaller padding for buttons */ |
| 74 | + border: 1px solid #ccc; |
| 75 | + border-radius: 4px; |
| 76 | + background-color: #f0f0f0; |
| 77 | + cursor: pointer; |
| 78 | + transition: background-color 0.2s, border-color 0.2s, color 0.2s; |
67 | 79 | font-size: 14px; |
68 | | - border: none; |
| 80 | + min-width: 32px; /* Ensure consistent button width */ |
| 81 | + text-align: center; |
| 82 | +} |
| 83 | + |
| 84 | +.pagination button:hover:not(:disabled) { |
| 85 | + background-color: #e0e0e0; |
| 86 | + border-color: #a0a0a0; |
| 87 | +} |
| 88 | + |
| 89 | +.pagination button:disabled { |
| 90 | + cursor: not-allowed; |
| 91 | + opacity: 0.6; |
| 92 | + background-color: #f8f8f8; |
| 93 | + border-color: #e0e0e0; |
| 94 | + color: #a0a0a0; |
| 95 | +} |
| 96 | + |
| 97 | +.pagination button.activePage { |
| 98 | + background-color: #007bff; |
| 99 | + color: white; |
| 100 | + border-color: #007bff; |
69 | 101 | } |
70 | 102 |
|
71 | 103 | /* MODALS */ |
|
0 commit comments