Browse Source

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

Laurel Fulford 6 years ago
parent
commit
593f4ff7fa
2 changed files with 21 additions and 7 deletions
  1. 20 6
      publication/editor-blocks.css
  2. 1 1
      publication/style.css

+ 20 - 6
publication/editor-blocks.css

@@ -19,14 +19,17 @@
 --------------------------------------------------------------*/
 
 .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: #222;
 	font-family: Lato, sans-serif;
 	font-size: 16px;
 	line-height: 1.5;
 }
 
+.edit-post-visual-editor .editor-block-list__block {
+	color: #222;
+}
+
 .edit-post-visual-editor p {
 	margin: 0 0 24px;
 }
@@ -273,7 +276,7 @@
 	padding: 24px 0;
 }
 
-.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 {
 	color: #555;
 	font-family: Neuton, serif;
 	font-size: 20px;
@@ -331,6 +334,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 {
@@ -581,13 +595,13 @@
 	border: 0;
 }
 
-.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote blockquote p:not(.wp-block-cover-text) {
+.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote blockquote p {
 	font-size: 28px;
 	line-height: 34px;
 }
 
-.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote.alignleft blockquote p:not(.wp-block-cover-text),
-.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote.alignright blockquote p:not(.wp-block-cover-text) {
+.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote.alignleft blockquote p,
+.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote.alignright blockquote p {
 	font-size: 24px;
 }
 

+ 1 - 1
publication/style.css

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.com/themes/publication/
 Author: Automattic
 Author URI: https://wordpress.com/themes/
 Description: Publication is an elegant blog and magazine theme that features full-screen Featured Images. It’s perfect for sites about fashion, food, travel, or design. With balanced typography, colors, and attention to detail, Publication helps you create visually stunning posts.
-Version: 1.0.5-wpcom
+Version: 1.0.6-wpcom
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: publication