From 9659a5e6cef99e81c138ffeeb3454f795b9530f3 Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Fri, 14 Dec 2018 16:39:12 +0100 Subject: [PATCH] Conditional import Han style. --- source/css/_common/components/third-party/han.styl | 4 +--- source/css/_common/components/third-party/third-party.styl | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/css/_common/components/third-party/han.styl b/source/css/_common/components/third-party/han.styl index d02c9697bc..168dbdca39 100644 --- a/source/css/_common/components/third-party/han.styl +++ b/source/css/_common/components/third-party/han.styl @@ -1,3 +1 @@ -.fa { - font-family: FontAwesome!important; -} +i.fa { font-family: FontAwesome !important; } diff --git a/source/css/_common/components/third-party/third-party.styl b/source/css/_common/components/third-party/third-party.styl index 2a0fc6abcb..d2ae707cd5 100644 --- a/source/css/_common/components/third-party/third-party.styl +++ b/source/css/_common/components/third-party/third-party.styl @@ -1,5 +1,5 @@ @import "gitment" if hexo-config('gitment.enable'); -@import "han"; +@import "han" if hexo-config('han'); @import "localsearch"; @import "busuanzi-counter"; @import "algolia-search" if hexo-config('algolia_search.enable');