add image captions
This commit is contained in:
@@ -260,6 +260,34 @@
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.post_contents .icaption-left {
|
||||
display: flex;
|
||||
justify-content: left;
|
||||
align-items: left;
|
||||
margin-right: auto;
|
||||
margin-top: 10px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.post_contents .icaption-center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 10px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.post_contents .icaption-right {
|
||||
display: flex;
|
||||
justify-content: right;
|
||||
align-items: right;
|
||||
margin-left: auto;
|
||||
margin-top: 10px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.post_contents .tikz-left {
|
||||
width: 0;
|
||||
display: flex;
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{% if text %}
|
||||
<div class="icaption-{% if position %}{{ position }}{% else -%}center{%- endif %}" {%- if style %} style="{{ style | safe }}"{%- endif %}>
|
||||
<i>{{ text | safe }}</i>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user