浏览代码

Varia: Add spacing between Jetpack subscribe form and submit button

Allan Cole 6 年之前
父节点
当前提交
e859ac6165
共有 3 个文件被更改,包括 111 次插入0 次删除
  1. 21 0
      varia/sass/vendors/_jetpack.scss
  2. 45 0
      varia/style-rtl.css
  3. 45 0
      varia/style.css

+ 21 - 0
varia/sass/vendors/_jetpack.scss

@@ -12,4 +12,25 @@
 	&.wp-block-jetpack-tiled-gallery {
 	&.wp-block-jetpack-tiled-gallery {
 		@extend %responsive-alignfull;
 		@extend %responsive-alignfull;
 	}
 	}
+}
+
+/**
+ * Subscription Form
+ */
+.wp-block-jetpack-subscriptions form > * {
+	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");
+	}
+
+	&:first-child {
+		margin-top: 0;
+	}
+
+	&:last-child {
+		margin-bottom: 0;
+	}
 }
 }

+ 45 - 0
varia/style-rtl.css

@@ -3094,6 +3094,29 @@ img#wpstats {
  * Vendors
  * Vendors
  * - 3rd-party compatibility styles
  * - 3rd-party compatibility styles
  */
  */
+/**
+ * Subscription
+ */
+.wp-block-jetpack-subscriptions form > * {
+	margin-top: 21.312px;
+	margin-bottom: 21.312px;
+}
+
+@media only screen and (min-width: 560px) {
+	.wp-block-jetpack-subscriptions form > * {
+		margin-top: 32px;
+		margin-bottom: 32px;
+	}
+}
+
+.wp-block-jetpack-subscriptions form > *:first-child {
+	margin-top: 0;
+}
+
+.wp-block-jetpack-subscriptions form > *:last-child {
+	margin-bottom: 0;
+}
+
 /**
 /**
  * Responsive Logic
  * Responsive Logic
  * - Loading this last to respect cascaing rules
  * - Loading this last to respect cascaing rules
@@ -3326,3 +3349,25 @@ img#wpstats {
  * Vendors
  * Vendors
  * - 3rd-party compatibility styles
  * - 3rd-party compatibility styles
  */
  */
+/**
+ * Subscription
+ */
+.wp-block-jetpack-subscriptions form > * {
+	margin-top: 21.312px;
+	margin-bottom: 21.312px;
+}
+
+@media only screen and (min-width: 560px) {
+	.wp-block-jetpack-subscriptions form > * {
+		margin-top: 32px;
+		margin-bottom: 32px;
+	}
+}
+
+.wp-block-jetpack-subscriptions form > *:first-child {
+	margin-top: 0;
+}
+
+.wp-block-jetpack-subscriptions form > *:last-child {
+	margin-bottom: 0;
+}

+ 45 - 0
varia/style.css

@@ -3100,6 +3100,29 @@ img#wpstats {
  * Vendors
  * Vendors
  * - 3rd-party compatibility styles
  * - 3rd-party compatibility styles
  */
  */
+/**
+ * Subscription Form
+ */
+.wp-block-jetpack-subscriptions form > * {
+	margin-top: 21.312px;
+	margin-bottom: 21.312px;
+}
+
+@media only screen and (min-width: 560px) {
+	.wp-block-jetpack-subscriptions form > * {
+		margin-top: 32px;
+		margin-bottom: 32px;
+	}
+}
+
+.wp-block-jetpack-subscriptions form > *:first-child {
+	margin-top: 0;
+}
+
+.wp-block-jetpack-subscriptions form > *:last-child {
+	margin-bottom: 0;
+}
+
 /**
 /**
  * Responsive Logic
  * Responsive Logic
  * - Loading this last to respect cascaing rules
  * - Loading this last to respect cascaing rules
@@ -3344,3 +3367,25 @@ img#wpstats {
  * Vendors
  * Vendors
  * - 3rd-party compatibility styles
  * - 3rd-party compatibility styles
  */
  */
+/**
+ * Subscription Form
+ */
+.wp-block-jetpack-subscriptions form > * {
+	margin-top: 21.312px;
+	margin-bottom: 21.312px;
+}
+
+@media only screen and (min-width: 560px) {
+	.wp-block-jetpack-subscriptions form > * {
+		margin-top: 32px;
+		margin-bottom: 32px;
+	}
+}
+
+.wp-block-jetpack-subscriptions form > *:first-child {
+	margin-top: 0;
+}
+
+.wp-block-jetpack-subscriptions form > *:last-child {
+	margin-bottom: 0;
+}