diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-11-01 22:25:41 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-11-01 22:25:41 +0800 |
commit | 8cd3af63317fda36bd9ba6c4c128e0c17c4dbb39 (patch) | |
tree | 2759eda4393ca246b9ea26af347f8fbadd7c6cca /src/css/_partial/_post | |
parent | 758f15746a9337345ee9df5ad5d00798fef91ba7 (diff) |
style: images in figure will be centered when `{{figure src="center" ... }}` is used
Diffstat (limited to 'src/css/_partial/_post')
-rw-r--r-- | src/css/_partial/_post/_content.scss | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/css/_partial/_post/_content.scss b/src/css/_partial/_post/_content.scss index d291d2b..8bcf700 100644 --- a/src/css/_partial/_post/_content.scss +++ b/src/css/_partial/_post/_content.scss @@ -100,10 +100,15 @@ content: ':'; } - figure figcaption h4 { - color: #b5b5b5; - font-size: 0.9rem; - text-align: center; + figure { + &.center { + text-align: center; + } + + figcaption h4 { + color: #b5b5b5; + font-size: 0.9rem; + } } .task-list { |