aboutsummaryrefslogtreecommitdiff
path: root/src/css/_partial
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-11-01 22:25:41 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-11-01 22:25:41 +0800
commit8cd3af63317fda36bd9ba6c4c128e0c17c4dbb39 (patch)
tree2759eda4393ca246b9ea26af347f8fbadd7c6cca /src/css/_partial
parent758f15746a9337345ee9df5ad5d00798fef91ba7 (diff)
style: images in figure will be centered when `{{figure src="center" ... }}` is used
Diffstat (limited to 'src/css/_partial')
-rw-r--r--src/css/_partial/_post/_content.scss13
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 {