Browse Source

Shawburn: Add style for the Category Block

Thomas Guillot 5 years ago
parent
commit
73aa358ddb
3 changed files with 33 additions and 7 deletions
  1. 13 1
      shawburn/sass/_extra-child-theme.scss
  2. 10 3
      shawburn/style-rtl.css
  3. 10 3
      shawburn/style.css

+ 13 - 1
shawburn/sass/_extra-child-theme.scss

@@ -329,6 +329,19 @@ hr.wp-block-separator.is-style-wide,
 /**
  * Blocks
  */
+// Category
+.wp-block-categories {
+	.children {
+		list-style: disc;
+
+		> li {
+			border: 0;
+			margin-bottom: 0;
+			margin-top: 0;
+		}
+	}
+}
+
 // Pullquote
 .wp-block-pullquote {
 	blockquote {
@@ -348,7 +361,6 @@ table,
 /**
  * Widgets
  */
-.widget_calendar,
 .widget_calendar {
   caption {
     font-weight: bold;

+ 10 - 3
shawburn/style-rtl.css

@@ -3711,6 +3711,16 @@ hr.wp-block-separator.is-style-wide,
 /**
  * Blocks
  */
+.wp-block-categories .children {
+	list-style: disc;
+}
+
+.wp-block-categories .children > li {
+	border: 0;
+	margin-bottom: 0;
+	margin-top: 0;
+}
+
 .wp-block-pullquote blockquote {
 	padding: 0;
 }
@@ -3725,13 +3735,10 @@ table th,
 /**
  * Widgets
  */
-.widget_calendar caption,
 .widget_calendar caption {
 	font-weight: bold;
 }
 
-.widget_calendar td,
-.widget_calendar th,
 .widget_calendar td,
 .widget_calendar th {
 	text-align: center;

+ 10 - 3
shawburn/style.css

@@ -3728,6 +3728,16 @@ hr.wp-block-separator.is-style-wide,
 /**
  * Blocks
  */
+.wp-block-categories .children {
+	list-style: disc;
+}
+
+.wp-block-categories .children > li {
+	border: 0;
+	margin-bottom: 0;
+	margin-top: 0;
+}
+
 .wp-block-pullquote blockquote {
 	padding: 0;
 }
@@ -3742,13 +3752,10 @@ table th,
 /**
  * Widgets
  */
-.widget_calendar caption,
 .widget_calendar caption {
 	font-weight: bold;
 }
 
-.widget_calendar td,
-.widget_calendar th,
 .widget_calendar td,
 .widget_calendar th {
 	text-align: center;