Skip to content

Commit db33e35

Browse files
committed
#2 hide non-key columns on small screens
This looks much better & seems reasonable since you can get to the data on the show page anyway. You lose the ability to sort the data, though.
1 parent 3f866c6 commit db33e35

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

web-app/css/scaffolding.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,25 @@ table th.desc a:after {
7070
background-position: -312px -96px;
7171
}
7272

73+
@media (max-width:480px) {
74+
table thead, table td {
75+
display: none;
76+
}
77+
78+
table tr:first-child td {
79+
border-top: none;
80+
}
81+
82+
table td:first-child, table td:last-child {
83+
display: table-cell;
84+
vertical-align: middle;
85+
}
86+
87+
table td:last-child {
88+
text-align: right;
89+
}
90+
}
91+
7392
/* error page */
7493

7594
pre.snippet code.line {

0 commit comments

Comments
 (0)