Skip to content

Commit 52dd0d1

Browse files
committed
responsive search results table
1 parent b80c994 commit 52dd0d1

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

por/dashboard/skins/search.pt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<li tal:condition="previous"><a href="${previous}">Previous</a></li>
1313
<li tal:condition="next"><a href="${next}">Next</a></li>
1414
</ul>
15-
<table class="table table-bordered time-entries table-condensed">
15+
<table class="table table-bordered time-entries table-condensed table-search">
1616
<thead>
1717
<tr>
1818
<th>type</th>

por/dashboard/static/css/dashboard.css

+16
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,22 @@ table.time-entries tbody tr:hover th {
207207
background-color: white;
208208
}
209209

210+
@media only screen and (max-width: 1024px) {
211+
table.table-search td:nth-child(5),
212+
table.table-search th:nth-child(5),
213+
table.table-search td:nth-child(6),
214+
table.table-search th:nth-child(6)
215+
{display: none;}
216+
}
217+
218+
@media only screen and (max-width: 640px) {
219+
table.table-search td:nth-child(1),
220+
table.table-search th:nth-child(1),
221+
table.table-search td:nth-child(4),
222+
table.table-search th:nth-child(4)
223+
{display: none;}
224+
}
225+
210226

211227

212228
/* XXX unused? */

0 commit comments

Comments
 (0)