Skip to content

Commit

Permalink
Issue #106: Fix responsive table functionality.
Browse files Browse the repository at this point in the history
Fixes #106.
  • Loading branch information
laryn authored Apr 2, 2024
1 parent 2725523 commit 621f9a2
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
26 changes: 26 additions & 0 deletions dist/css/base/gin.css
Original file line number Diff line number Diff line change
Expand Up @@ -1930,6 +1930,32 @@ table tr.disabled.even {
border-color: var(--gin-color-disabled-border);
}

/**
* Responsive tables.
*/

@media (max-width: 47.99em) {
th.priority-low,
td.priority-low,
th.priority-medium,
td.priority-medium {
display: none;
}
}

@media (max-width: 63.99em) {
th.priority-low,
td.priority-low {
display: none;
}
}

@media (min-width: 64em) {
.tableresponsive-toggle-columns {
display: none;
}
}

.draggable a.tabledrag-handle {
vertical-align: middle;
}
Expand Down
27 changes: 27 additions & 0 deletions styles/base/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -379,3 +379,30 @@ table tr.disabled.even {
background-color: var(--gin-color-disabled-bg);
border-color: var(--gin-color-disabled-border);
}

/**
* Responsive tables.
*/
@include mq($to: small) {

th.priority-low,
td.priority-low,
th.priority-medium,
td.priority-medium {
display: none;
}
}

@include mq($to: large) {

th.priority-low,
td.priority-low {
display: none;
}
}

@include mq(large) {
.tableresponsive-toggle-columns {
display: none;
}
}

0 comments on commit 621f9a2

Please sign in to comment.