Browse Source

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

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

+ 20 - 6
rebalance/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: #555;
 	font-family: "Rubik", "Helvetica Neue", sans-serif;
 	font-size: 17px;
 	line-height: 1.5;
 }
 
+.edit-post-visual-editor .editor-block-list__block {
+	color: #555;
+}
+
 .alignleft,
 .editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit {
 	display: inline;
@@ -373,7 +376,7 @@
 	padding-right: 40px;
 }
 
-.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: "Libre Baskerville", Georgia, serif;
 	font-style: italic;
 	font-size: 18px;
@@ -441,6 +444,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 {
@@ -537,13 +551,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: 45px;
 }
 
-.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: 18px;
 	line-height: 34px;
 }

+ 1 - 1
rebalance/style.css

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/rebalance/
 Author: Automattic
 Author URI: http://wordpress.com/themes/
 Description: Rebalance is a new spin on the classic Imbalance 2 portfolio theme. It is a simple, modern theme for photographers, artists, and graphic designers looking to showcase their work.
-Version: 1.1.9-wpcom
+Version: 1.1.10-wpcom
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: rebalance