Browse Source

Add some block fixes to override theme.css

Ben Dwyer 4 years ago
parent
commit
35833a5ce7
3 changed files with 23 additions and 8 deletions
  1. 0 8
      libre-2/css/blocks.css
  2. 22 0
      libre-2/css/editor-blocks.css
  3. 1 0
      libre-2/functions.php

+ 0 - 8
libre-2/css/blocks.css

@@ -376,14 +376,6 @@ p.has-drop-cap:not(:focus)::first-letter {
 }
 
 /* Latest Comments */
-
-.wp-block-latest-comments {
-	margin-left: 0;
-	margin-right: 0;
-	padding-left: 0;
-	padding-right: 0;
-}
-
 .wp-block-latest-comments__comment a {
 	box-shadow: 0 1px 0 0 rgba(0,0,0,0);
 }

+ 22 - 0
libre-2/css/editor-blocks.css

@@ -0,0 +1,22 @@
+a {
+	box-shadow: 0 1px 0 0 currentColor;
+	color: #404040;
+	text-decoration: none;
+	transition: 0.2s;
+}
+
+/* Quote */
+.wp-block-quote:not(.is-large):not(.is-style-large) {
+	border: 0;
+}
+
+/* Pullquote */
+.wp-block-pullquote {
+	border: 0;
+}
+
+.wp-block-pullquote .wp-block-pullquote__citation {
+	font-size: inherit;
+	font-style: italic;
+	text-transform: none;
+}

+ 1 - 0
libre-2/functions.php

@@ -92,6 +92,7 @@ if ( ! function_exists( 'libre_2_setup' ) ) :
 			array(
 				'style.css',
 				'/css/blocks.css',
+				'/css/editor-blocks.css',
 				libre_2_fonts_url(),
 			)
 		);