Add a shortcode for folding rows of a table on small screens
This commit is contained in:
parent
c5a28bf7ef
commit
869f9d12c8
|
@ -149,22 +149,24 @@ table {
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
tr {
|
.fold-table + table {
|
||||||
|
tr {
|
||||||
@include below-container-width {
|
@include below-container-width {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
@include below-container-width {
|
@include below-container-width {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
padding: 0.5rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
td, th {
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.highlight tr {
|
div.highlight tr {
|
||||||
|
|
1
layouts/shortcodes/foldtable.html
Normal file
1
layouts/shortcodes/foldtable.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<span class="fold-table"></span>
|
Loading…
Reference in New Issue
Block a user