fix to position for tikz - center the inside of the div

This commit is contained in:
EvilMuffinHa 2022-06-23 20:45:13 -04:00
parent 7e5f5526bc
commit 7626e95032
2 changed files with 13 additions and 1 deletions

View File

@ -79,4 +79,4 @@ Images:
Tikz:
{{ tikz(style="width: 20%; height: 20%;" position="center" body="\begin{tikzpicture}\draw (0,0) circle (1in);\end{tikzpicture}") }}
{{ tikz(position="right" body="\begin{tikzpicture}\draw (0,0) circle (1in);\end{tikzpicture}") }}

View File

@ -261,15 +261,27 @@
}
.post_contents .tikz-left {
width: 0;
display: flex;
justify-content: left;
align-items: left;
margin-right: auto;
}
.post_contents .tikz-center {
width: 0;
display: flex;
justify-content: center;
align-items: center;
margin-left: auto;
margin-right: auto;
}
.post_contents .tikz-right {
width: 0;
display: flex;
justify-content: right;
align-items: right;
margin-left: auto;
}