瀏覽代碼

Calm Business: Temp fix for Jetpack Business Hours Block style

Takashi Irie 6 年之前
父節點
當前提交
575802c969
共有 4 個文件被更改,包括 90 次插入17 次删除
  1. 16 0
      calm-business/style-editor.css
  2. 19 0
      calm-business/style-editor.scss
  3. 17 0
      calm-business/style-jetpack.css
  4. 38 17
      calm-business/style-jetpack.scss

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

@@ -903,3 +903,19 @@ ul.wp-block-archives li ul,
 [data-type="core/media-text"] a {
   color: inherit;
 }
+
+/** === 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
calm-business/style-editor.scss

@@ -858,3 +858,22 @@ ul.wp-block-archives,
 		color: inherit;
 	}
 }
+
+/** === 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;
+	}
+}

+ 17 - 0
calm-business/style-jetpack.css

@@ -90,3 +90,20 @@
 /**
   * Content Options
   */
+/**
+ * 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;
+}

+ 38 - 17
calm-business/style-jetpack.scss

@@ -26,26 +26,26 @@
 		outline-offset: -4px;
 	}
  }
- 
+
  /**
   * Responsive Videos
   */
- 
+
  /**
   * Sharing
   */
- 
+
  .entry div.sharedaddy h3.sd-title,
  .entry h3.sd-title {
      font-family: $font__heading;
      font-weight: $font__weight_semi_bold;
      letter-spacing: normal;
  }
- 
+
  /**
   * Related Posts
   */
- 
+
  .entry #jp-relatedposts h3.jp-relatedposts-headline {
      font-family: $font__heading;
      font-weight: $font__weight_semi_bold;
@@ -53,48 +53,69 @@
          font-weight: inherit;
      }
  }
- 
+
  .entry #jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title,
  .entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
      font-family: $font__body;
  }
- 
+
  .entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-context,
  .entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-date {
      font-family: $font__body;
  }
- 
+
  /**
   * Stats
   */
- 
+
  /**
   * Comments
   */
- 
+
  /**
   * Widgets
   */
- 
+
  /* Authors Widget */
  .widget_authors > ul > li > a {
      font-family: $font__body;
  }
- 
+
  /* Display WordPress Posts */
- 
+
  /* GoodReads */
- 
+
  /* EU cookie law */
  .widget_eu_cookie_law_widget #eu-cookie-law {
      font-family: $font__body;
  }
- 
+
  /* RSS Links */
  .widget_rss_links li {
      font-family: $font__body;
  }
- 
+
  /**
   * Content Options
-  */
+  */
+
+ /**
+ * Blocks
+ */
+
+/* Business Hours - Temp Fix */
+.jetpack-business-hours {
+  dt,
+  dd {
+    float: left;
+  }
+
+  dt {
+    clear: both;
+    margin-right: ( $size__spacing-unit * .5 );
+  }
+
+  dd {
+    margin: 0;
+  }
+}