Browse Source

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

Laurel Fulford 6 years ago
parent
commit
24ac020137
2 changed files with 19 additions and 10 deletions
  1. 18 9
      illustratr/editor-blocks.css
  2. 1 1
      illustratr/style.css

+ 18 - 9
illustratr/editor-blocks.css

@@ -20,17 +20,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: #7f8d8c;
 	font-family: "Source Sans Pro", sans-serif;
 	line-height: 1.5;
 	font-size: 22px;
 }
 
+.edit-post-visual-editor .editor-block-list__block {
+	color: #7f8d8c;
+}
+
 @media screen and (max-width: 767px) {
 	.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;
 	}
@@ -449,14 +452,14 @@
 	}
 }
 
-.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-family: "PT Serif", serif;
 	font-size: 26px;
 	font-style: normal;
 }
 
 @media screen and (max-width: 767px) {
-	.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: 21px;
 	}
 }
@@ -538,6 +541,16 @@
 	padding-right: 40px;
 }
 
+/* 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 */
 
@@ -623,10 +636,6 @@
 	border: 0;
 }
 
-.edit-post-visual-editor .wp-block-pullquote p:not(.wp-block-cover-text) {
-
-}
-
 .wp-block-pullquote {
 	padding-left: 0;
 	padding-top: 40px;

+ 1 - 1
illustratr/style.css

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.com/themes/illustratr/
 Author: Automattic
 Author URI: https://wordpress.com/themes/
 Description: A minimalist portfolio theme.
-Version: 1.3.4-wpcom
+Version: 1.3.5-wpcom
 License: GNU General Public License
 License URI: license.txt
 Text Domain: illustratr