Skip to content

Commit

Permalink
feat(core): ✨ add basic scriptless responsive table support
Browse files Browse the repository at this point in the history
This should also fix the issue where table are overflowing out to the toc
  • Loading branch information
alistair3149 committed May 9, 2023
1 parent 0c49cc0 commit 6c04fee
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resources/skins.citizen.styles/components/Tables.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
// Responsive table for no js
// Avoid clipping when script is not yet loaded
table {
display: block;
overflow-x: auto;
}

// JS-enhanced responsive table
.citizen-table-wrapper {
overflow-x: auto;

table {
display: table;
overflow: initial;
}
}

// TODO: Move this out of tables styles when this is used by more stuff
Expand Down

0 comments on commit 6c04fee

Please sign in to comment.