From 4272c43c2ed06506913e3b44ac9ab771858fc762 Mon Sep 17 00:00:00 2001 From: Said Achmiz Date: Mon, 10 Feb 2020 13:00:47 -0500 Subject: [PATCH] Justify+hyphenate only on browsers that support hyphenation --- assets/css/main.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 4103c2c..5648389 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -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); }