From e0796f9afdc9c7dca00069dba659a516a2ba178d Mon Sep 17 00:00:00 2001
From: Alexander Bilz <mail@alexbilz.com>
Date: Sat, 13 Mar 2021 21:58:07 +0000
Subject: [PATCH] Floating Images Shortcode

---
 assets/css/style.css |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/assets/css/style.css b/assets/css/style.css
index b4b2085..de676c5 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -425,6 +425,29 @@
     margin-left: 5px
 }
 
+.post figure {
+    max-width: 100%;
+    height: auto;
+    margin: 0;
+    text-align: center;
+}
+
+.post figure.right {
+    float: right;
+    margin-left: 1.5em;
+    max-width: 50%;
+}
+
+.post figure.left {
+    float: left;
+    margin-right: 1.5em;
+    max-width: 50%;
+}
+
+.post figure.big {
+    max-width: 100vw;
+}
+
 .info {
     margin: 1em;
 }
@@ -892,6 +915,19 @@
         position: absolute;
     }
 
+    .post figure.right {
+        float: unset;
+        max-width: 100%;
+        margin: 0;
+    }
+    
+    .post figure.left {
+        float: unset;
+        max-width: 100%;
+        margin: 0;
+    }
+    
+
     .footer {
         display: none;
     }

--
Gitblit v1.10.0