Better handling hyphenations

This commit is contained in:
Raphael Goetter 2017-12-22 09:53:01 +01:00
parent 88373ffc63
commit e1451f2de6
6 changed files with 45 additions and 71 deletions

View file

@ -46,6 +46,34 @@
font-size: 2em;
}
.u-txt-wrap {
word-wrap: break-word;
overflow-wrap: break-word;
hyphens: auto;
}
.u-txt-ellipsis {
white-space: nowrap;
text-overflow: ellipsis;
}
@if variable-exists(hyphens) and $hyphens==true {
@media (max-width: ($small - 1)) {
div,
textarea,
table,
td,
th,
code,
pre,
samp {
word-wrap: break-word;
overflow-wrap: break-word;
hyphens: auto;
}
}
}
/* State Helpers */
/* ------------- */