Skip to content

Commit 555d104

Browse files
committed
And then there was search and CSV.
1 parent b2bae92 commit 555d104

10 files changed

Lines changed: 1762 additions & 1271 deletions

File tree

API/dotpipe.js

Lines changed: 187 additions & 134 deletions
Large diffs are not rendered by default.

activeMenu/dotpipe.js

Lines changed: 187 additions & 134 deletions
Large diffs are not rendered by default.

carousel/dotpipe.js

Lines changed: 187 additions & 134 deletions
Large diffs are not rendered by default.

csv-test/dotpipe.js

Lines changed: 187 additions & 134 deletions
Large diffs are not rendered by default.

csv-test/products.html

Lines changed: 79 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
margin: 0 auto;
1717
padding: 20px;
1818
}
19-
19+
2020
/* .container {
2121
background-color: white;
2222
border-radius: 8px;
@@ -25,16 +25,17 @@
2525
margin-bottom: 30px;
2626
}
2727
*/
28-
h1, h2 {
28+
h1,
29+
h2 {
2930
color: #2c3e50;
3031
}
31-
32+
3233
.controls {
3334
margin-bottom: 20px;
3435
display: flex;
3536
gap: 10px;
3637
}
37-
38+
3839
button {
3940
padding: 8px 16px;
4041
background-color: #4a90e2;
@@ -43,11 +44,11 @@
4344
border-radius: 4px;
4445
cursor: pointer;
4546
}
46-
47+
4748
button:hover {
4849
background-color: #3a80d2;
4950
}
50-
51+
5152
/* CSV component styling */
5253
.csv-container {
5354
width: 100%;
@@ -84,21 +85,32 @@
8485
}
8586

8687
/* Table styling */
88+
/* Improved table styling */
8789
.csv-table-container {
8890
overflow-x: auto;
8991
margin-bottom: 15px;
92+
border-radius: 6px;
93+
border: 1px solid #ddd;
9094
}
9195

9296
.csv-table {
9397
width: 100%;
9498
border-collapse: collapse;
9599
margin-bottom: 0;
100+
border-spacing: 0;
96101
}
97102

98-
.csv-table th, .csv-table td {
103+
.csv-table th,
104+
.csv-table td {
99105
padding: 10px 12px;
100106
text-align: left;
101107
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;
102114
}
103115

104116
.csv-table thead th {
@@ -108,29 +120,23 @@
108120
cursor: pointer;
109121
padding-right: 25px;
110122
}
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;
121126
}
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;
128132
}
129133

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%;
132137
}
133-
138+
139+
134140
/* Cards styling */
135141
.csv-cards {
136142
display: grid;
@@ -143,7 +149,7 @@
143149
border-radius: 8px;
144150
padding: 15px;
145151
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);
147153
}
148154

149155
.csv-field {
@@ -154,47 +160,62 @@
154160
font-weight: bold;
155161
margin-right: 5px;
156162
}
157-
163+
158164
/* Pagination styling */
165+
/* Ensure pagination buttons are always visible */
159166
.csv-pagination-container {
160167
display: flex;
168+
flex-wrap: wrap;
161169
justify-content: center;
170+
align-items: center;
162171
margin-top: 20px;
163-
gap: 5px;
172+
gap: 8px;
173+
visibility: visible !important;
174+
opacity: 1 !important;
164175
}
165-
166-
.csv-pagination-prev,
167-
.csv-pagination-next,
176+
177+
.csv-pagination-prev,
178+
.csv-pagination-next,
168179
.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;
172183
cursor: pointer;
173184
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;
174192
}
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;
186201
}
187-
202+
203+
/* Ensure ellipsis is visible */
188204
.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;
190210
}
191-
211+
212+
192213
/* Load more button */
193214
.csv-load-more-container {
194215
text-align: center;
195216
margin-top: 20px;
196217
}
197-
218+
198219
.csv-load-more-button {
199220
padding: 8px 16px;
200221
background-color: #28a745;
@@ -203,49 +224,42 @@
203224
border-radius: 4px;
204225
cursor: pointer;
205226
}
206-
227+
207228
.csv-load-more-button:hover {
208229
background-color: #218838;
209230
}
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-
}
218231

219232
/* Table styling */
220233
table {
221234
width: 100%;
222235
border-collapse: collapse;
223236
margin-bottom: 20px;
224237
}
225-
226-
th, td {
238+
239+
th,
240+
td {
227241
padding: 10px;
228242
border: 1px solid #ddd;
229243
text-align: left;
230244
}
231-
245+
232246
th {
233247
background-color: #f8f9fa;
234248
font-weight: bold;
235249
}
236-
250+
237251
tr:nth-child(even) {
238252
background-color: #f9f9f9;
239253
}
240-
254+
241255
/* Content box styling */
242256
.content-box {
243257
border: 1px solid #ddd;
244258
padding: 15px;
245259
margin-bottom: 15px;
246260
border-radius: 4px;
247261
}
248-
262+
249263
/* Search component styling */
250264
.search-container {
251265
display: flex;

0 commit comments

Comments
 (0)