Browse Source

Karuna: Remove not() styles for cover block, since they made paragraph styles too specific. Bump version number.

Laurel Fulford 6 years ago
parent
commit
984e300b24
2 changed files with 20 additions and 6 deletions
  1. 19 5
      karuna/editor-blocks.css
  2. 1 1
      karuna/style.css

+ 19 - 5
karuna/editor-blocks.css

@@ -19,17 +19,20 @@
 --------------------------------------------------------------*/
 
 .edit-post-visual-editor .editor-block-list__block,
-.edit-post-visual-editor .editor-block-list__block p:not(.wp-block-cover-text),
+.edit-post-visual-editor .editor-block-list__block p,
 .editor-default-block-appender input[type="text"].editor-default-block-appender__content {
-	color: #333;
 	font-family: Karla, sans-serif;
 	font-size: 16px;
 	line-height: 1.6;
 }
 
+.edit-post-visual-editor .editor-block-list__block {
+	color: #333;
+}
+
 @media screen and (min-width: 768px) {
 	.edit-post-visual-editor .editor-block-list__block,
-	.edit-post-visual-editor .editor-block-list__block p:not(.wp-block-cover-text),
+	.edit-post-visual-editor .editor-block-list__block p,
 	.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
 		font-size: 18px;
 	}
@@ -277,7 +280,7 @@
 	margin: 0 1.6em 1.6em;
 }
 
-.edit-post-visual-editor .editor-block-list__block blockquote p:not(.wp-block-cover-text) {
+.edit-post-visual-editor .editor-block-list__block blockquote p {
 	font-size: 26px;
 }
 
@@ -339,6 +342,17 @@
 	font-style: normal;
 }
 
+/* Cover */
+
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
+	font-size: 2.0em; /* Cover images inherit the paragraph size; this resets it */
+}
+
 /* File */
 
 .wp-block-file__textlink {
@@ -597,7 +611,7 @@
 	border: 0;
 }
 
-.edit-post-visual-editor .wp-block-pullquote p:not(.wp-block-cover-text) {
+.edit-post-visual-editor .wp-block-pullquote p {
 	font-size: 24px;
 }
 

+ 1 - 1
karuna/style.css

@@ -4,7 +4,7 @@ Theme URI: http://wordpress.com/themes/karuna/
 Author: Automattic
 Author URI: http://wordpress.com/themes/
 Description: Karuna is a clean business theme designed with health and wellness-focused sites in mind. With bright, bold colors, prominent featured images, and support for customer testimonials, your business' brand will shine with Karuna.
-Version: 1.2.8-wpcom
+Version: 1.2.9-wpcom
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: karuna