Skip to content

Commit

Permalink
feat: add size options to figure shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderdavide committed Mar 2, 2022
1 parent 62ea796 commit a8c3d31
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
20 changes: 16 additions & 4 deletions assets/scss/partials/components/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,25 +162,37 @@
figure {
max-width: 100%;
height: auto;
margin: 0;
margin: 0 auto;
text-align: center;

&.big {
&.full {
max-width: 100vw;
}

&.lg {
max-width: 75%;
}

&.md {
max-width: 50%;
}

&.sm {
max-width: 25%;
}

&.right {
@include desktop {
max-width: 50%;

@include ltr {
float: right;
margin-left: 1.5em;
margin: 0 0 0 1.5em;
}

@include rtl {
float: left;
margin-right: 1.5em;
margin: 0 1.5em 0 0;
}
}
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Target":"scss/main.rtl.min.662cd6a5109f45ad24e44e07ebf4013171ce5774384a8b5c56e1f53ad340d364.css","MediaType":"text/css","Data":{"Integrity":"sha256-ZizWpRCfRa0k5E4H6/QBMXHOV3Q4SotcVuH1OtNA02Q="}}
{"Target":"scss/main.rtl.min.c13b3582821ec914a8f7cfd9415da4266fb1b3ce5ac4d63eef0fb11a38f99d8c.css","MediaType":"text/css","Data":{"Integrity":"sha256-wTs1goIeyRSo98/ZQV2kJm+xs85axNY+7w+xGjj5nYw="}}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Target":"scss/main.min.0dc1c3e6ef0d8512af8cd086dcbf94d998746652b27945d7643857a121058326.css","MediaType":"text/css","Data":{"Integrity":"sha256-DcHD5u8NhRKvjNCG3L+U2Zh0ZlKyeUXXZDhXoSEFgyY="}}
{"Target":"scss/main.min.371139a18e0e5f447e0060e22aa0ce9265453126727d40ea6c36314dff1aaf7b.css","MediaType":"text/css","Data":{"Integrity":"sha256-NxE5oY4OX0R+AGDiKqDOkmVFMSZyfUDqbDYxTf8ar3s="}}

0 comments on commit a8c3d31

Please sign in to comment.