Browse Source

Friendly Business: Temp fix for Jetpack Business Hours Block style

Takashi Irie 6 years ago
parent
commit
3aca1749e2

+ 16 - 0
friendly-business/style-editor.css

@@ -794,3 +794,19 @@ ul.wp-block-archives li ul,
 .wp-block[data-type="core/freeform"] .mce-btn i {
   font-family: dashicons !important;
 }
+
+/** === Business Hours Block - Temp Fix === */
+.wp-block-jetpack-business-hours dt,
+.wp-block-jetpack-business-hours dd {
+  float: left;
+}
+
+.wp-block-jetpack-business-hours dt {
+  clear: both;
+  font-weight: bold;
+  margin-right: 0.5rem;
+}
+
+.wp-block-jetpack-business-hours dd {
+  margin: 0;
+}

+ 19 - 0
friendly-business/style-editor.scss

@@ -810,3 +810,22 @@ ul.wp-block-archives,
 .wp-block[data-type="core/freeform"] .mce-btn i {
 	font-family: dashicons !important;
 }
+
+/** === Business Hours Block - Temp Fix === */
+
+.wp-block-jetpack-business-hours {
+	dt,
+	dd {
+		float: left;
+	}
+
+	dt {
+		clear: both;
+		font-weight: bold;
+		margin-right: ( $size__spacing-unit * .5 );
+	}
+
+	dd {
+		margin: 0;
+	}
+}

+ 18 - 0
friendly-business/style-jetpack.css

@@ -83,3 +83,21 @@
 .entry-content .contact-form label span {
   color: #0d1b24;
 }
+
+/**
+ * Blocks
+ */
+/* Business Hours - Temp Fix */
+.jetpack-business-hours dt,
+.jetpack-business-hours dd {
+  float: left;
+}
+
+.jetpack-business-hours dt {
+  clear: both;
+  margin-right: 0.5rem;
+}
+
+.jetpack-business-hours dd {
+  margin: 0;
+}

+ 22 - 1
friendly-business/style-jetpack.scss

@@ -93,4 +93,25 @@
  */
 .entry-content .contact-form label span {
 	color: $color__text-dark;
-}
+}
+
+/**
+ * Blocks
+ */
+
+/* Business Hours - Temp Fix */
+.jetpack-business-hours {
+	dt,
+	dd {
+		float: left;
+	}
+
+	dt {
+		clear: both;
+		margin-right: ( $size__spacing-unit * .5 );
+	}
+
+	dd {
+		margin: 0;
+	}
+}