From 223f4c2d2b30e156ff44ebce4d94b510a90f76db Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Sat, 13 Mar 2021 20:09:22 +0200
Subject: [PATCH] remove old css

---
 editors/editoria/src/layout/EditorElements.js | 29 +++++--------------
 1 file changed, 8 insertions(+), 21 deletions(-)

diff --git a/editors/editoria/src/layout/EditorElements.js b/editors/editoria/src/layout/EditorElements.js
index bcc75c130..d31d0839f 100644
--- a/editors/editoria/src/layout/EditorElements.js
+++ b/editors/editoria/src/layout/EditorElements.js
@@ -102,11 +102,10 @@ export default css`
   }
 
   figure {
-    display: flex;
+    display: table;
     flex-direction: column;
-    // align-items: center;
-    // justify-content: center;
-    // margin: 0px;
+    margin-left: auto;
+    margin-right: auto;
 
     img {
       cursor: default;
@@ -117,16 +116,18 @@ export default css`
 
     figcaption {
       background: #e2ebff;
-      padding: 10px;
-      min-height: 50px;
+      caption-side: bottom;
+      display: table-caption;
       max-width: 100%;
+      min-height: 20px;
+      padding: 4px;
       width: auto;
-      overflow-y: auto;
 
       &:focus {
         outline: none;
       }
       &: before {
+        content: 'Caption : ';
         font-weight: bold;
       }
     }
@@ -375,20 +376,6 @@ export default css`
 
   /* -- Block Math ---------------------------------------- */
 
-  figcaption {
-    background-color: #eee;
-    cursor: text;
-    height: 20px;
-  }
-
-  .decoration:before {
-    content: 'Caption : ';
-  }
-
-  .decoration1:before {
-    content: '';
-  }
-
   math-display {
     display: block;
   }
-- 
GitLab