浏览代码

Affinity: Make cover block styles less specific. Bump version number.

Laurel Fulford 6 年之前
父节点
当前提交
816090c9b0
共有 2 个文件被更改,包括 26 次插入15 次删除
  1. 25 14
      affinity/editor-blocks.css
  2. 1 1
      affinity/style.css

+ 25 - 14
affinity/editor-blocks.css

@@ -20,14 +20,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: #5e5853;
 	font-size: 16px;
 	font-family: Lora, Baskerville, Georgia, Times, serif;
 	line-height: 1.6;
 }
 
+.edit-post-visual-editor .editor-block-list__block {
+	color: #5e5853;
+}
+
 .alignleft {
 	margin: .8em 1.6em .8em 0;
 }
@@ -281,12 +284,12 @@
 	padding-left: 0;
 }
 
-.edit-post-visual-editor .editor-block-list__block .wp-block-quote p:not(.wp-block-cover-text) {
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote p {
 	color: #99908a;
 	font-size: 18px;
 }
 
-.edit-post-visual-editor .editor-block-list__block .wp-block-quote p:not(.wp-block-cover-text):last-child {
+.edit-post-visual-editor .editor-block-list__block .wp-block-quote p:last-child {
 	margin-bottom: 0;
 }
 
@@ -332,25 +335,33 @@
 	padding: .4em 0 .8em;
 }
 
-.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: 26px;
 }
 
 @media screen and ( min-width: 68em ) {
-	.edit-post-visual-editor .editor-block-list__block .wp-block-quote p:not(.wp-block-cover-text) {
+	.edit-post-visual-editor .editor-block-list__block .wp-block-quote p {
 		font-size: 26px;
 	}
 
-	.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: 36px;
 	}
 }
 
 /* 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 */
 
@@ -639,12 +650,12 @@
 	font-style: italic;
 }
 
-.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p:not(.wp-block-cover-text) {
+.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p {
 	color: #99908a;
 	font-size: 18px;
 }
 
-.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p:not(.wp-block-cover-text):last-child {
+.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p:last-child {
 	margin-bottom: 0;
 }
 
@@ -659,7 +670,7 @@
 }
 
 @media screen and ( min-width: 68em ) {
-	.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p:not(.wp-block-cover-text) {
+	.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p {
 		font-size: 26px;
 	}
 }
@@ -783,4 +794,4 @@
 
 .edit-post-visual-editor .wp-block-latest-posts.is-grid li {
 	margin-bottom: 1em;
-}
+}

+ 1 - 1
affinity/style.css

@@ -4,7 +4,7 @@ Theme URI: http://wordpress.com/themes/affinity/
 Author: Automattic
 Author URI: http://wordpress.com/themes/
 Description: Affinity is a classic one-page theme designed with weddings and family announcements in mind.
-Version: 1.1.1-wpcom
+Version: 1.1.2-wpcom
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: affinity