|
16 | 16 | margin: 0 auto; |
17 | 17 | padding: 20px; |
18 | 18 | } |
19 | | - |
| 19 | + |
20 | 20 | /* .container { |
21 | 21 | background-color: white; |
22 | 22 | border-radius: 8px; |
|
25 | 25 | margin-bottom: 30px; |
26 | 26 | } |
27 | 27 | */ |
28 | | - h1, h2 { |
| 28 | + h1, |
| 29 | + h2 { |
29 | 30 | color: #2c3e50; |
30 | 31 | } |
31 | | - |
| 32 | + |
32 | 33 | .controls { |
33 | 34 | margin-bottom: 20px; |
34 | 35 | display: flex; |
35 | 36 | gap: 10px; |
36 | 37 | } |
37 | | - |
| 38 | + |
38 | 39 | button { |
39 | 40 | padding: 8px 16px; |
40 | 41 | background-color: #4a90e2; |
|
43 | 44 | border-radius: 4px; |
44 | 45 | cursor: pointer; |
45 | 46 | } |
46 | | - |
| 47 | + |
47 | 48 | button:hover { |
48 | 49 | background-color: #3a80d2; |
49 | 50 | } |
50 | | - |
| 51 | + |
51 | 52 | /* CSV component styling */ |
52 | 53 | .csv-container { |
53 | 54 | width: 100%; |
|
84 | 85 | } |
85 | 86 |
|
86 | 87 | /* Table styling */ |
| 88 | + /* Improved table styling */ |
87 | 89 | .csv-table-container { |
88 | 90 | overflow-x: auto; |
89 | 91 | margin-bottom: 15px; |
| 92 | + border-radius: 6px; |
| 93 | + border: 1px solid #ddd; |
90 | 94 | } |
91 | 95 |
|
92 | 96 | .csv-table { |
93 | 97 | width: 100%; |
94 | 98 | border-collapse: collapse; |
95 | 99 | margin-bottom: 0; |
| 100 | + border-spacing: 0; |
96 | 101 | } |
97 | 102 |
|
98 | | - .csv-table th, .csv-table td { |
| 103 | + .csv-table th, |
| 104 | + .csv-table td { |
99 | 105 | padding: 10px 12px; |
100 | 106 | text-align: left; |
101 | 107 | border-bottom: 1px solid #ddd; |
| 108 | + border-right: 1px solid #ddd; |
| 109 | + } |
| 110 | + |
| 111 | + .csv-table th:last-child, |
| 112 | + .csv-table td:last-child { |
| 113 | + border-right: none; |
102 | 114 | } |
103 | 115 |
|
104 | 116 | .csv-table thead th { |
|
108 | 120 | cursor: pointer; |
109 | 121 | padding-right: 25px; |
110 | 122 | } |
111 | | - |
112 | | - .csv-table thead th:hover { |
113 | | - background-color: #e9ecef; |
114 | | - } |
115 | | - |
116 | | - .csv-table thead th.csv-sort-asc::after { |
117 | | - content: "↑"; |
118 | | - position: absolute; |
119 | | - right: 8px; |
120 | | - color: #333; |
| 123 | + |
| 124 | + .csv-table tbody tr:last-child td { |
| 125 | + border-bottom: none; |
121 | 126 | } |
122 | | - |
123 | | - .csv-table thead th.csv-sort-desc::after { |
124 | | - content: "↓"; |
125 | | - position: absolute; |
126 | | - right: 8px; |
127 | | - color: #333; |
| 127 | + |
| 128 | + /* Remove any unwanted margins/padding */ |
| 129 | + .csv-content-container { |
| 130 | + padding: 0; |
| 131 | + margin: 0; |
128 | 132 | } |
129 | 133 |
|
130 | | - .csv-table tbody tr:hover { |
131 | | - background-color: #f5f5f5; |
| 134 | + /* Fix for any potential table overflow */ |
| 135 | + .csv-table-container { |
| 136 | + max-width: 100%; |
132 | 137 | } |
133 | | - |
| 138 | + |
| 139 | + |
134 | 140 | /* Cards styling */ |
135 | 141 | .csv-cards { |
136 | 142 | display: grid; |
|
143 | 149 | border-radius: 8px; |
144 | 150 | padding: 15px; |
145 | 151 | background-color: white; |
146 | | - box-shadow: 0 2px 4px rgba(0,0,0,0.05); |
| 152 | + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); |
147 | 153 | } |
148 | 154 |
|
149 | 155 | .csv-field { |
|
154 | 160 | font-weight: bold; |
155 | 161 | margin-right: 5px; |
156 | 162 | } |
157 | | - |
| 163 | + |
158 | 164 | /* Pagination styling */ |
| 165 | + /* Ensure pagination buttons are always visible */ |
159 | 166 | .csv-pagination-container { |
160 | 167 | display: flex; |
| 168 | + flex-wrap: wrap; |
161 | 169 | justify-content: center; |
| 170 | + align-items: center; |
162 | 171 | margin-top: 20px; |
163 | | - gap: 5px; |
| 172 | + gap: 8px; |
| 173 | + visibility: visible !important; |
| 174 | + opacity: 1 !important; |
164 | 175 | } |
165 | | - |
166 | | - .csv-pagination-prev, |
167 | | - .csv-pagination-next, |
| 176 | + |
| 177 | + .csv-pagination-prev, |
| 178 | + .csv-pagination-next, |
168 | 179 | .csv-pagination-number { |
169 | | - padding: 5px 10px; |
170 | | - border: 1px solid #ddd; |
171 | | - background-color: #fff; |
| 180 | + padding: 6px 12px; |
| 181 | + border: 1px solid #dddddd; |
| 182 | + background-color: #2f319b; |
172 | 183 | cursor: pointer; |
173 | 184 | border-radius: 4px; |
| 185 | + font-size: 14px; |
| 186 | + min-width: 40px; |
| 187 | + text-align: center; |
| 188 | + transition: background-color 0.2s ease; |
| 189 | + display: inline-block !important; |
| 190 | + visibility: visible !important; |
| 191 | + opacity: 1 !important; |
174 | 192 | } |
175 | | - |
176 | | - .csv-pagination-number.csv-pagination-current { |
177 | | - background-color: #4a90e2; |
178 | | - color: white; |
179 | | - border-color: #4a90e2; |
180 | | - } |
181 | | - |
182 | | - .csv-pagination-prev:disabled, |
183 | | - .csv-pagination-next:disabled { |
184 | | - opacity: 0.5; |
185 | | - cursor: not-allowed; |
| 193 | + |
| 194 | + /* Make sure the pagination numbers container is visible */ |
| 195 | + .csv-pagination-numbers { |
| 196 | + display: flex !important; |
| 197 | + align-items: center; |
| 198 | + gap: 5px; |
| 199 | + visibility: visible !important; |
| 200 | + opacity: 1 !important; |
186 | 201 | } |
187 | | - |
| 202 | + |
| 203 | + /* Ensure ellipsis is visible */ |
188 | 204 | .csv-pagination-ellipsis { |
189 | | - padding: 5px; |
| 205 | + padding: 0 5px; |
| 206 | + color: #666; |
| 207 | + display: inline-block !important; |
| 208 | + visibility: visible !important; |
| 209 | + opacity: 1 !important; |
190 | 210 | } |
191 | | - |
| 211 | + |
| 212 | + |
192 | 213 | /* Load more button */ |
193 | 214 | .csv-load-more-container { |
194 | 215 | text-align: center; |
195 | 216 | margin-top: 20px; |
196 | 217 | } |
197 | | - |
| 218 | + |
198 | 219 | .csv-load-more-button { |
199 | 220 | padding: 8px 16px; |
200 | 221 | background-color: #28a745; |
|
203 | 224 | border-radius: 4px; |
204 | 225 | cursor: pointer; |
205 | 226 | } |
206 | | - |
| 227 | + |
207 | 228 | .csv-load-more-button:hover { |
208 | 229 | background-color: #218838; |
209 | 230 | } |
210 | | - |
211 | | - /* Custom class for the CSV block */ |
212 | | - .csv-used-in-this-block { |
213 | | - border: 1px solid #e0e0e0; |
214 | | - padding: 15px; |
215 | | - border-radius: 5px; |
216 | | - background-color: #fafafa; |
217 | | - } |
218 | 231 |
|
219 | 232 | /* Table styling */ |
220 | 233 | table { |
221 | 234 | width: 100%; |
222 | 235 | border-collapse: collapse; |
223 | 236 | margin-bottom: 20px; |
224 | 237 | } |
225 | | - |
226 | | - th, td { |
| 238 | + |
| 239 | + th, |
| 240 | + td { |
227 | 241 | padding: 10px; |
228 | 242 | border: 1px solid #ddd; |
229 | 243 | text-align: left; |
230 | 244 | } |
231 | | - |
| 245 | + |
232 | 246 | th { |
233 | 247 | background-color: #f8f9fa; |
234 | 248 | font-weight: bold; |
235 | 249 | } |
236 | | - |
| 250 | + |
237 | 251 | tr:nth-child(even) { |
238 | 252 | background-color: #f9f9f9; |
239 | 253 | } |
240 | | - |
| 254 | + |
241 | 255 | /* Content box styling */ |
242 | 256 | .content-box { |
243 | 257 | border: 1px solid #ddd; |
244 | 258 | padding: 15px; |
245 | 259 | margin-bottom: 15px; |
246 | 260 | border-radius: 4px; |
247 | 261 | } |
248 | | - |
| 262 | + |
249 | 263 | /* Search component styling */ |
250 | 264 | .search-container { |
251 | 265 | display: flex; |
|
0 commit comments