Quellcode durchsuchen

Canard: Fix cover block style specificty; bump version number.

Laurel Fulford vor 6 Jahren
Ursprung
Commit
78a9ad9f82
2 geänderte Dateien mit 19 neuen und 7 gelöschten Zeilen
  1. 18 6
      canard/editor-blocks.css
  2. 1 1
      canard/style.css

+ 18 - 6
canard/editor-blocks.css

@@ -20,9 +20,8 @@
 --------------------------------------------------------------*/
 
 .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: "PT Serif", serif;
 	font-size: 16px;
 }
@@ -30,12 +29,16 @@
 @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: 20px;
 	}
 }
 
+.edit-post-visual-editor .editor-block-list__block {
+	color: #222;
+}
+
 .alignleft {
 	margin-right: 30px;
 }
@@ -368,8 +371,8 @@
 .rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright  {
 }
 
-.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p:not(.wp-block-cover-text),
-.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p:not(.wp-block-cover-text) {
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
 	font-size: 120%;
 }
 
@@ -380,7 +383,16 @@
 	width: 100%;
 }
 
-/* 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 */
 

+ 1 - 1
canard/style.css

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.com/themes/canard/
 Author: Automattic
 Author URI: https://wordpress.com/themes/
 Description: A flexible and versatile theme perfect for magazines, news sites, and blogs. It lets you highlight specific articles on the homepage and balances readability with a powerful use of photography — all in a layout that works on any device.
-Version: 1.0.10-wpcom
+Version: 1.0.11-wpcom
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: canard