Sfoglia il codice sorgente

Varia: Add spacing utility classes to the editor

Allan Cole 6 anni fa
parent
commit
2635b6a18a
2 ha cambiato i file con 36 aggiunte e 0 eliminazioni
  1. 6 0
      varia/sass/blocks/utilities/_editor.scss
  2. 30 0
      varia/style-editor.css

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

@@ -146,3 +146,9 @@
 	font-size: calc(2 * #{strip-unit(map-deep-get($config-heading, "font", "size", "h1")) + 0em});
 	font-weight: #{map-deep-get($config-heading, "font", "weight")};
 }
+
+/**
+ * Spacing Overrides
+ */
+
+@import "spacing-overrides";

+ 30 - 0
varia/style-editor.css

@@ -690,3 +690,33 @@ table th,
 	font-size: calc(2 * 2.98598em);
 	font-weight: bold;
 }
+
+/**
+ * Spacing Overrides
+ */
+/*
+ * Margins
+ */
+.margin-top-zero {
+	margin-top: 0 !important;
+}
+
+.margin-top-half {
+	margin-top: 16px !important;
+}
+
+.margin-top-default {
+	margin-top: 32px !important;
+}
+
+.margin-bottom-zero {
+	margin-bottom: 0 !important;
+}
+
+.margin-bottom-half {
+	margin-bottom: 16px !important;
+}
+
+.margin-bottom-default {
+	margin-bottom: 32px !important;
+}