Skip to content

Commit

Permalink
Remove unneeded selectors from editor-blocks.css
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Feb 18, 2021
1 parent 35f1d2f commit 43a5bcf
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions independent-publisher-2/css/editor-blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@ Description: Used to style Gutenberg Blocks in the editor.
1.0 General Typography
--------------------------------------------------------------*/

.edit-post-visual-editor .editor-block-list__block,
.block-editor-block-list__block,
.editor-default-block-appender textarea.editor-default-block-appender__content {
font-family: Georgia, "Times New Roman", serif;
}

.edit-post-visual-editor .editor-block-list__block,
.edit-post-visual-editor .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: 18px;
line-height: 1.75;
}

@media screen and (min-width: 32.375em) {
.edit-post-visual-editor .editor-block-list__block,
.edit-post-visual-editor .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: 19px;
}
}

.edit-post-visual-editor .editor-block-list__block {
.block-editor-block-list__block {
color: #383838;
}

Expand All @@ -58,81 +58,81 @@ Description: Used to style Gutenberg Blocks in the editor.

/* Headings */

.edit-post-visual-editor h1,
h1,
.wp-block-freeform.block-library-rich-text__tinymce h1,
.edit-post-visual-editor h2,
h2,
.wp-block-freeform.block-library-rich-text__tinymce h2,
.edit-post-visual-editor h3,
h3,
.wp-block-freeform.block-library-rich-text__tinymce h3,
.edit-post-visual-editor h4,
h4,
.wp-block-freeform.block-library-rich-text__tinymce h4,
.edit-post-visual-editor h5,
h5,
.wp-block-freeform.block-library-rich-text__tinymce h5,
.edit-post-visual-editor h6,
h6,
.wp-block-freeform.block-library-rich-text__tinymce h6 {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
line-height: 1.1;
color: #333332;
font-weight: bold;
}

.edit-post-visual-editor h1,
h1,
.wp-block-freeform.block-library-rich-text__tinymce h1 {
font-size: 32px;
}

.edit-post-visual-editor h2,
h2,
.wp-block-freeform.block-library-rich-text__tinymce h2 {
font-size: 24px;
}

.edit-post-visual-editor h3,
h3,
.wp-block-freeform.block-library-rich-text__tinymce h3 {
font-size: 19px;
}

.edit-post-visual-editor h4,
h4,
.wp-block-freeform.block-library-rich-text__tinymce h4 {
font-size: 15px;
}

.edit-post-visual-editor h5,
h5,
.wp-block-freeform.block-library-rich-text__tinymce h5 {
font-size: 14px;
}

.edit-post-visual-editor h6,
h6,
.wp-block-freeform.block-library-rich-text__tinymce h6 {
font-size: 13px;
}

@media screen and (min-width: 32.375em) {
.edit-post-visual-editor h1,
h1,
.wp-block-freeform.block-library-rich-text__tinymce h1 {
font-size: 47px;
}

.edit-post-visual-editor h2,
h2,
.wp-block-freeform.block-library-rich-text__tinymce h2 {
font-size: 32px;
}

.edit-post-visual-editor h3,
h3,
.wp-block-freeform.block-library-rich-text__tinymce h3 {
font-size: 24px;
}

.edit-post-visual-editor h4,
h4,
.wp-block-freeform.block-library-rich-text__tinymce h4 {
font-size: 19px;
}

.edit-post-visual-editor h5,
h5,
.wp-block-freeform.block-library-rich-text__tinymce h5 {
font-size: 15px;
}

.edit-post-visual-editor h6,
h6,
.wp-block-freeform.block-library-rich-text__tinymce h6 {
font-size: 14px;
}
Expand Down Expand Up @@ -160,8 +160,8 @@ Description: Used to style Gutenberg Blocks in the editor.

/* Link styles */

.edit-post-visual-editor a,
.editor-block-list__block a,
a,
.block-editor-block-list__block a,
.wp-block-freeform.block-library-rich-text__tinymce a {
color: #0087be;
text-decoration: none;
Expand Down Expand Up @@ -358,12 +358,12 @@ p.has-drop-cap:not(:focus)::first-letter {

/* 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 {
.block-editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
.block-editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
.block-editor-block-list__block .wp-block-cover-image h2,
.block-editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
.block-editor-block-list__block .wp-block-cover .wp-block-cover-text,
.block-editor-block-list__block .wp-block-cover h2 {
font-size: 1.5em;
}

Expand Down Expand Up @@ -575,9 +575,9 @@ p.has-drop-cap:not(:focus)::first-letter {

/* General Widget styles */

.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;
}

Expand Down

0 comments on commit 43a5bcf

Please sign in to comment.