Browse Source

Remove the wrappers for editor styles

Ben Dwyer 4 years ago
parent
commit
2ef0c37ccd
2 changed files with 18 additions and 18 deletions
  1. 17 17
      altofocus/assets/stylesheets/editor-blocks.css
  2. 1 1
      altofocus/functions.php

+ 17 - 17
altofocus/assets/stylesheets/editor-blocks.css

@@ -19,7 +19,7 @@ Description: Used to style Gutenberg Blocks in the editor.
 1.0 General Typography
 --------------------------------------------------------------*/
 
-.edit-post-visual-editor .block-editor-block-list__block,
+.block-editor-block-list__block,
 .editor-default-block-appender textarea.editor-default-block-appender__content {
 	font-size: 13.875px;
 	font-family: "Libre Baskerville", "Georgia", Georgia, "Times New Roman", Times, serif;
@@ -27,15 +27,15 @@ Description: Used to style Gutenberg Blocks in the editor.
 	line-height: 1.75em;
 }
 
-.edit-post-visual-editor .block-editor-block-list__block {
+.block-editor-block-list__block {
 	color: #111;
 }
 
-.edit-post-visual-editor .block-editor-block-list__block p {
+.block-editor-block-list__block p {
 	font-size: 13.875px;
 }
 
-.edit-post-visual-editor .block-editor-block-list__block p:not(:last-child) {
+.block-editor-block-list__block p:not(:last-child) {
 	margin-bottom: 1.75em
 }
 
@@ -92,8 +92,8 @@ Description: Used to style Gutenberg Blocks in the editor.
 }
 
 @media screen and (min-width: 37.5em) {
-	.edit-post-visual-editor .block-editor-block-list__block,
-	.edit-post-visual-editor .block-editor-block-list__block p,
+	.block-editor-block-list__block,
+	.block-editor-block-list__block p,
 	.editor-default-block-appender textarea.editor-default-block-appender__content  {
 		font-size: 16.875px;
 	}
@@ -155,7 +155,7 @@ Description: Used to style Gutenberg Blocks in the editor.
 
 /* Link styles */
 
-.edit-post-visual-editor a,
+a,
 .block-editor-block-list__block a,
 .wp-block-freeform.block-library-rich-text__tinymce a {
 	color: #e38900;
@@ -272,32 +272,32 @@ p.has-drop-cap:not(:focus)::first-letter {
 
 /* List */
 
-.edit-post-visual-editor ul:not(.wp-block-gallery),
+ul:not(.wp-block-gallery),
 .block-editor-block-list__block ul:not(.wp-block-gallery),
 .block-library-list ul {
 	list-style: disc;
 }
 
-.edit-post-visual-editor ol,
+ol,
 .block-editor-block-list__block ol,
 .block-library-list ol.editor-rich-text__tinymce {
 	list-style: decimal;
 }
 
-.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
+ul:not(.wp-block-gallery) li > ul,
 .block-editor-block-list__block ul:not(.wp-block-gallery) li > ul,
 .block-library-list li > ul,
-.edit-post-visual-editor li > ol,
+li > ol,
 .block-editor-block-list__block li > ol,
 .block-library-list li > ol {
 	margin-bottom: 0;
 	margin-left: 1.5em;
 }
 
-.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
+.rtl ul:not(.wp-block-gallery),
 .rtl .block-editor-block-list__block ul:not(.wp-block-gallery),
 .rtl .block-library-list ul,
-.rtl .edit-post-visual-editor ol,
+.rtl ol,
 .rtl .block-editor-block-list__block ol,
 .rtl .block-library-list ol.editor-rich-text__tinymce {
 	margin-left: 0;
@@ -332,7 +332,7 @@ p.has-drop-cap:not(:focus)::first-letter {
 
 /* Cover */
 
-.edit-post-visual-editor .block-editor-block-list__block p.wp-block-cover-text {
+.block-editor-block-list__block p.wp-block-cover-text {
 	font-size: 24px;
 }
 
@@ -500,9 +500,9 @@ p.has-drop-cap:not(:focus)::first-letter {
 	list-style: disc;
 }
 
-.edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
-.edit-post-visual-editor [data-align="center"] .wp-block-archives,
-.edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
+[data-align="center"] .wp-block-categories__list,
+[data-align="center"] .wp-block-archives,
+[data-align="center"] .wp-block-lastest-posts {
 	list-style-position: inside;
 }
 

+ 1 - 1
altofocus/functions.php

@@ -119,9 +119,9 @@ function altofocus_setup() {
 
 	add_theme_support( 'editor-styles' );
 	add_editor_style( array(
+		get_template_directory_uri() . '/assets/stylesheets/editor-blocks.css',
 		altofocus_libre_baskerville_url(),
 		altofocus_karla_url(),
-		get_template_directory_uri() . '/assets/stylesheets/editor-blocks.css',
 	) );
 }
 endif;