Browse Source

Apostrophe 2: Make cover block styles less specific. Bump version number.

Laurel Fulford 6 years ago
parent
commit
00363ab20f
2 changed files with 13 additions and 4 deletions
  1. 12 3
      apostrophe-2/css/editor-blocks.css
  2. 1 1
      apostrophe-2/style.css

+ 12 - 3
apostrophe-2/css/editor-blocks.css

@@ -32,7 +32,7 @@
 	font-size: 19px;
 }
 
-.edit-post-visual-editor .editor-block-list__block p:not(.wp-block-cover-text) {
+.edit-post-visual-editor .editor-block-list__block p {
 	font-size: 19px;
 }
 
@@ -368,7 +368,16 @@
 
 /* Audio */
 
-/* Cover Images */
+/* 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 */
 
@@ -630,7 +639,7 @@
 	font-size: 28px;
 }
 
-.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;
 }
 

+ 1 - 1
apostrophe-2/style.css

@@ -5,7 +5,7 @@ Theme URI: https://wordpress.com/themes/apostrophe-2
 Author: Automattic
 Author URI: https://wordpress.com/themes/
 Description: A clean, no-nonsense magazine theme
-Version: 2.0.4-wpcom
+Version: 2.0.5-wpcom
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: apostrophe-2