mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
fix: word wrap long lines on mobile
This commit is contained in:
parent
bfa72389cd
commit
0a8cbcb8d9
1 changed files with 23 additions and 0 deletions
|
@ -132,6 +132,29 @@ article .article-metadata {
|
|||
content: '\00B7';
|
||||
}
|
||||
|
||||
@mixin word-wrap() {
|
||||
// Break very long words such as pasted URL strings.
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
-ms-word-break: break-all;
|
||||
word-break: break-all;
|
||||
word-break: break-word;
|
||||
|
||||
// Add a hyphen where the word breaks, if supported (No Blink).
|
||||
-ms-hyphens: auto;
|
||||
-moz-hyphens: auto;
|
||||
-webkit-hyphens: auto;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
.article-style {
|
||||
// Break unresponsive block content, such as unresponsive embeds, to prevent horizontal scrolling.
|
||||
overflow-x: hidden;
|
||||
|
||||
// Word wrap text content.
|
||||
@include word-wrap();
|
||||
}
|
||||
|
||||
.article-style img,
|
||||
.article-style video {
|
||||
margin-left: auto;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue