Browse Source

Fix for dropcaps.

Caroline Moore 6 years ago
parent
commit
4f0629be12
2 changed files with 9 additions and 12 deletions
  1. 1 3
      karuna/blocks.css
  2. 8 9
      karuna/editor-blocks.css

+ 1 - 3
karuna/blocks.css

@@ -32,9 +32,7 @@ Description: Used to style Gutenberg Blocks.
 /* Paragraph */
 
 p.has-drop-cap:not(:focus)::first-letter {
-	font-size: 141px;
-    line-height: 1.1;
-    margin-bottom: -40px
+	font-size: 130px;
 }
 
 /* Images */

+ 8 - 9
karuna/editor-blocks.css

@@ -243,9 +243,7 @@
 /* Paragraph */
 
 .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
-	font-size: 141px;
-    line-height: 1.1;
-    margin-bottom: -40px
+	font-size: 130px;
 }
 
 /* Quote */
@@ -390,13 +388,14 @@
 }
 
 .wp-block-code textarea {
-	background: rgba(0, 0, 0, 0.02);
+	background: transparent;
 }
 
 /* Classic */
 
 .wp-block-freeform.block-library-rich-text__tinymce address {
-	margin-bottom: 1.6em;
+	margin-top: 0.8em; 
+	margin-bottom: 0.8em;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce ol {
@@ -545,10 +544,8 @@
 
 .wp-block-freeform.block-library-rich-text__tinymce table th {
 	padding: 8px 5px;
-}
-
-.rtl .wp-block-freeform.block-library-rich-text__tinymce th,
-.rtl .wp-block-freeform.block-library-rich-text__tinymce td {
+	font-weight: bold;
+	text-align: center;
 }
 
 /* Preformatted */
@@ -642,6 +639,8 @@
 .editor-block-list__block table.wp-block-table th {
 	border: 0;
 	padding: 8px 5px;
+	font-weight: bold;
+	text-align: center;
 }
 
 /*--------------------------------------------------------------