فهرست منبع

Varia: Adjust vertical margins between blocks

Takashi Irie 5 سال پیش
والد
کامیت
468dfabb67
2فایلهای تغییر یافته به همراه22 افزوده شده و 0 حذف شده
  1. 10 0
      varia/sass/blocks/utilities/_editor.scss
  2. 12 0
      varia/style-editor.css

+ 10 - 0
varia/sass/blocks/utilities/_editor.scss

@@ -138,4 +138,14 @@
  * Spacing Overrides
  */
 
+[data-block] {
+	margin-top:#{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
+	margin-bottom: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
+
+	@include media(mobile) {
+		margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
+		margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
+	}
+}
+
 @import "spacing-overrides";

+ 12 - 0
varia/style-editor.css

@@ -724,6 +724,18 @@ table th,
 /**
  * Spacing Overrides
  */
+[data-block] {
+	margin-top: 21.312px;
+	margin-bottom: 21.312px;
+}
+
+@media only screen and (min-width: 560px) {
+	[data-block] {
+		margin-top: 32px;
+		margin-bottom: 32px;
+	}
+}
+
 /*
  * Margins
  */