浏览代码

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

Laurel Fulford 6 年之前
父节点
当前提交
b99ef999a8
共有 2 个文件被更改,包括 20 次插入6 次删除
  1. 19 5
      libretto/css/editor-blocks.css
  2. 1 1
      libretto/style.css

+ 19 - 5
libretto/css/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: #363431;
 	font-family: "Libre Baskerville", Baskerville, "Book Antiqua", Georgia, Times, serif;
 	font-size: 17px;
 	line-height: 2;
 }
 
+.edit-post-visual-editor .editor-block-list__block {
+	color: #363431;
+}
+
 .alignleft,
 .editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit {
 	display: inline;
@@ -312,7 +315,7 @@ See: https://stackoverflow.com/questions/16348489/is-there-a-css-hack-for-safari
 	z-index: 2;
 }
 
-.wp-block-freeform.block-library-rich-text__tinymce blockquote p:not(.wp-block-cover-text) {
+.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
 	line-height: 1.4;
 }
 
@@ -556,7 +559,7 @@ See: https://stackoverflow.com/questions/16348489/is-there-a-css-hack-for-safari
 	z-index: 2;
 }
 
-.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: "Playfair Display", Georgia, serif;
 	color: #a09a92;
 	font-size: 26px;
@@ -637,6 +640,17 @@ See: https://stackoverflow.com/questions/16348489/is-there-a-css-hack-for-safari
 	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__textlink {
@@ -729,7 +743,7 @@ See: https://stackoverflow.com/questions/16348489/is-there-a-css-hack-for-safari
 	border: 0;
 }
 
-.edit-post-visual-editor .wp-block-pullquote p:not(.wp-block-cover-text) {
+.edit-post-visual-editor .wp-block-pullquote p {
 	font-size: 24px;
 }
 

+ 1 - 1
libretto/style.css

@@ -4,7 +4,7 @@ Theme URI: http://wordpress.com/themes/libretto
 Author: Automattic
 Author URI: http://wordpress.com/themes/
 Description: Libretto is a responsive one-column theme with classic styling and careful typographic details. It’s ideally suited to showcasing longform writing interspersed with beautiful images and inspiring quotes.
-Version: 1.0.10-wpcom
+Version: 1.0.11-wpcom
 License: GNU General Public License
 License URI: http://www.gnu.org/licenses/gpl.html
 Text Domain: libretto