From a8c3d31a715db10885ffa84f79810899f2264856 Mon Sep 17 00:00:00 2001
From: alexanderdavide <alexeble1998@gmail.com>
Date: Wed, 02 Mar 2022 21:43:28 +0000
Subject: [PATCH] feat: add size options to figure shortcode

---
 assets/scss/partials/components/_post.scss |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/assets/scss/partials/components/_post.scss b/assets/scss/partials/components/_post.scss
index 27712cc..70b573f 100644
--- a/assets/scss/partials/components/_post.scss
+++ b/assets/scss/partials/components/_post.scss
@@ -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;
           }
         }
       }

--
Gitblit v1.10.0