forked from achmizs/deus-gaming
Justify+hyphenate only on browsers that support hyphenation
This commit is contained in:
parent
305695f9d4
commit
4272c43c2e
@ -265,8 +265,6 @@ hr {
|
||||
/*********/
|
||||
|
||||
article {
|
||||
text-align: justify;
|
||||
hyphens: auto;
|
||||
position: relative;
|
||||
padding: var(--deus-post-padding);
|
||||
background-color: var(--deus-box-background-color);
|
||||
@ -274,6 +272,14 @@ article {
|
||||
box-shadow: 0 0 0 1px var(--deus-body-background-color);
|
||||
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 {
|
||||
margin-top: var(--deus-post-spacing);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user