From d961446f3fa2990a4924e6df0e767a65159f6ab8 Mon Sep 17 00:00:00 2001 From: ppoffice Date: Mon, 30 Jan 2017 10:53:18 +0800 Subject: [PATCH] feat: add rtl language support --- layout/common/article.ejs | 2 +- source/css/_partial/article.styl | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/layout/common/article.ejs b/layout/common/article.ejs index 5b55c49..5464837 100644 --- a/layout/common/article.ejs +++ b/layout/common/article.ejs @@ -1,4 +1,4 @@ -
+
<% if (post.banner) { %> <%- partial('post/banner') %> diff --git a/source/css/_partial/article.styl b/source/css/_partial/article.styl index c27ebc5..c4eca98 100644 --- a/source/css/_partial/article.styl +++ b/source/css/_partial/article.styl @@ -58,6 +58,8 @@ color: color-default padding: 0 article-padding line-height: line-height + p + text-align: justify p, table line-height: line-height margin: line-height 0 @@ -399,6 +401,16 @@ ol.toc color color-theme transition color .3s ease-out +/* right-to-left languages */ +.article.rtl + .article-title, + .article-entry p + direction: rtl + .article-meta > div + float: right + margin-left: 10px + margin-right: 0 + /* lightgallery */ .lg-outer .lg-thumb-item