From 1f04c7f7785ff2138daee4d6daf4a37d3ccbec3b Mon Sep 17 00:00:00 2001 From: XPoet Date: Mon, 4 Jan 2021 19:01:53 +0800 Subject: [PATCH] style: optimize article text display --- source/css/layout/article-content.styl | 3 ++- source/css/layout/home-content.styl | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/source/css/layout/article-content.styl b/source/css/layout/article-content.styl index 1b6a5f0..e81c6a5 100644 --- a/source/css/layout/article-content.styl +++ b/source/css/layout/article-content.styl @@ -91,9 +91,10 @@ $article-title-font-size = 1.6rem; .article-content { margin-top: $component-interspace; - text-align: justify; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); + word-wrap: break-word; + text-align: justify; } .post-copyright-info { diff --git a/source/css/layout/home-content.styl b/source/css/layout/home-content.styl index d8b4508..ad66519 100644 --- a/source/css/layout/home-content.styl +++ b/source/css/layout/home-content.styl @@ -45,12 +45,9 @@ .home-article-content { word-wrap: break-word; + text-align: justify; margin: 20px 0; line-height: 2rem; - - +keep-mobile() { - text-align: justify; - } }