Browse Source

Modern Business: Temp fix for Jetpack Business Hours Block style

Takashi Irie 6 năm trước cách đây
mục cha
commit
79eb4cf525

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

@@ -831,3 +831,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
modern-business/style-editor.scss

@@ -833,3 +833,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
modern-business/style-jetpack.css

@@ -73,3 +73,21 @@
   color: inherit;
   font-weight: 300;
 }
+
+/**
+ * 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
modern-business/style-jetpack.scss

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