Browse Source

Add table CSS to Blockbase and Decibel

Jason Crist 2 năm trước cách đây
mục cha
commit
efc0d78833
2 tập tin đã thay đổi với 42 bổ sung0 xóa
  1. 21 0
      block-canvas/style.css
  2. 21 0
      decibel/style.css

+ 21 - 0
block-canvas/style.css

@@ -59,4 +59,25 @@ GNU General Public License for more details.
 	background-color: var(--wp--preset--color--secondary);
 	color: var(--wp--preset--color--background);
 	border-color: var(--wp--preset--color--secondary);
+}
+
+/**
+ * Currently table styles are only available with 'wp-block-styles' theme support (block css) thus the following needs to be included
+ * since 'wp-block-styles' aren't used for this theme.
+ */
+.wp-block-table thead {
+	border-bottom: 3px solid;
+}
+.wp-block-table tfoot {
+	border-top: 3px solid;
+}
+.wp-block-table td,
+.wp-block-table th {
+	padding: var(--wp--preset--spacing--30);
+	border: 1px solid;
+	word-break: normal;
+}
+.wp-block-table figcaption {
+	font-size: var(--wp--preset--font-size--small);
+	text-align: center;
 }

+ 21 - 0
decibel/style.css

@@ -22,6 +22,27 @@ Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, feature
 	background-color: var(--wp--preset--color--primary);
 }
 
+/**
+ * Currently table styles are only available with 'wp-block-styles' theme support (block css) thus the following needs to be included
+ * since 'wp-block-styles' aren't used for this theme.
+ */
+.wp-block-table thead {
+	border-bottom: 3px solid;
+}
+.wp-block-table tfoot {
+	border-top: 3px solid;
+}
+.wp-block-table td,
+.wp-block-table th {
+	padding: var(--wp--preset--spacing--30);
+	border: 1px solid;
+	word-break: normal;
+}
+.wp-block-table figcaption {
+	font-size: var(--wp--preset--font-size--small);
+	text-align: center;
+}
+
 /*
  * Provide styles for a Block Style for navigation links
  */