Justify+hyphenate only on browsers that support hyphenation

This commit is contained in:
Said Achmiz 2020-02-10 13:00:47 -05:00
parent 305695f9d4
commit 4272c43c2e

View File

@ -265,8 +265,6 @@ hr {
/*********/ /*********/
article { article {
text-align: justify;
hyphens: auto;
position: relative; position: relative;
padding: var(--deus-post-padding); padding: var(--deus-post-padding);
background-color: var(--deus-box-background-color); background-color: var(--deus-box-background-color);
@ -274,6 +272,14 @@ article {
box-shadow: 0 0 0 1px var(--deus-body-background-color); box-shadow: 0 0 0 1px var(--deus-body-background-color);
z-index: 1; z-index: 1;
} }
@supports (-webkit-hyphens:auto) or (-ms-hyphens:auto) or (hyphens:auto) {
article {
text-align: justify;
-webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
}
article + article { article + article {
margin-top: var(--deus-post-spacing); margin-top: var(--deus-post-spacing);
} }