Browse Source

Dyad 2: Clean up post-list block.

Allan Cole 5 years ago
parent
commit
8ece618e6f
2 changed files with 18 additions and 1 deletions
  1. 18 0
      dyad-2/css/editor-blocks.css
  2. 0 1
      dyad-2/functions.php

+ 18 - 0
dyad-2/css/editor-blocks.css

@@ -566,6 +566,24 @@ p.has-drop-cap:not(:focus)::first-letter {
 	list-style-position: inside;
 }
 
+/* Latest Posts */
+
+.wp-block-latest-posts > li > a {
+	color: inherit;
+}
+
+.wp-block-latest-posts .wp-block-latest-posts__post-excerpt a {
+	background-color: #e7ae01;
+	color: #fff;
+	display: block;
+	font-size: 14px;
+	letter-spacing: 0.1em;
+	margin: 10px auto 0;
+	padding: 1em;
+	text-transform: uppercase;
+	width: max-content;
+}
+
 /* Latest Comments */
 
 .wp-block-latest-comments {

+ 0 - 1
dyad-2/functions.php

@@ -96,7 +96,6 @@ if ( ! function_exists( 'dyad_2_setup' ) ) :
 		add_theme_support( 'editor-styles' );
 
 		// Editor Styles
-	//	add_editor_style( 'editor-style.css' );
 		add_editor_style( 'css/editor-blocks.css' );
 		add_editor_style( dyad_2_fonts_url() );