Преглед изворни кода

FSE - remove 100% in figure to allow centre alignment on smaller screens (#1242)

Glen Davies пре 6 година
родитељ
комит
75d40e6c52
2 измењених фајлова са 13 додато и 0 уклоњено
  1. 4 0
      modern-business/style-editor.css
  2. 9 0
      modern-business/style-editor.scss

+ 4 - 0
modern-business/style-editor.css

@@ -1912,6 +1912,10 @@ ul.wp-block-archives li ul,
   margin-right: auto;
   margin-right: auto;
 }
 }
 
 
+.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit figure.fse-site-logo {
+  width: inherit;
+}
+
 /** === Classic Editor === */
 /** === Classic Editor === */
 /* Properly center-align captions in the classic-editor block */
 /* Properly center-align captions in the classic-editor block */
 .wp-caption dd {
 .wp-caption dd {

+ 9 - 0
modern-business/style-editor.scss

@@ -942,6 +942,15 @@ ul.wp-block-archives,
     }
     }
 }
 }
 
 
+/* Remove 100% width on figure to center align logo in editor on smaller screens */
+.block-editor-block-list__layout  {
+    .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit  {
+	    figure.fse-site-logo {
+	        width: inherit;
+        }
+	}
+}
+
 /** === Classic Editor === */
 /** === Classic Editor === */
 
 
 /* Properly center-align captions in the classic-editor block */
 /* Properly center-align captions in the classic-editor block */