From 1ac45419dcc725d4af83a411b94997370fd56d70 Mon Sep 17 00:00:00 2001
From: Alexander Bilz <mail@alexbilz.com>
Date: Wed, 09 Mar 2022 20:29:11 +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 ed1333d..3910d7c 100644
--- a/assets/scss/partials/components/_post.scss
+++ b/assets/scss/partials/components/_post.scss
@@ -159,11 +159,23 @@
     figure {
       max-width: 100%;
       height: auto;
-      margin: 0;
+      margin: 0 auto;
       text-align: center;
 
       &.big {
-        max-width: 100vw;
+        max-width: 87.5%;
+      }
+
+      &.medium {
+        max-width: 75%;
+      }
+
+      &.small {
+        max-width: 50%;
+      }
+
+      &.tiny {
+        max-width: 25%;
       }
 
       &.right {
@@ -172,12 +184,12 @@
 
           @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