mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
fix(css): scroll wide tables
Caused by a previous commit which added word-break to `article-style`. Fix #2044
This commit is contained in:
parent
817e89f73b
commit
ce5b08f719
1 changed files with 5 additions and 2 deletions
|
@ -537,10 +537,13 @@ a.badge:hover {
|
||||||
table {
|
table {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-x: auto;
|
overflow-x: scroll;
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
|
// Override `article-style`'s `break-word` wrapping to make wide tables scrollable.
|
||||||
|
overflow-wrap: normal;
|
||||||
|
word-wrap: normal;
|
||||||
|
word-break: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
table > thead > tr > th,
|
table > thead > tr > th,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue