Skip to content

Commit

Permalink
Remove font size classes that are enqueued in the global stylesheet (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal authored Oct 13, 2021
1 parent 2cf54e2 commit 0afabe4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 34 deletions.
20 changes: 3 additions & 17 deletions packages/block-library/src/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,12 @@
@include gradient-colors-deprecated();
}

// Font sizes.
.has-small-font-size {
font-size: 0.8125em;
}

.has-regular-font-size, // Not used now, kept because of backward compatibility.
.has-normal-font-size {
// Font sizes (not used now, kept because of backward compatibility).
.has-regular-font-size {
font-size: 1em;
}

.has-medium-font-size {
font-size: 1.25em;
}

.has-large-font-size {
font-size: 2.25em;
}

.has-larger-font-size, // Not used now, kept because of backward compatibility.
.has-huge-font-size {
.has-larger-font-size {
font-size: 2.625em;
}

Expand Down
21 changes: 4 additions & 17 deletions packages/block-library/src/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,15 @@
@include gradient-colors-deprecated();
}

// Font sizes.
// Font sizes (not used now, kept because of backward compatibility).
//
// The reason we add the editor class wrapper here is
// to avoid enqueing the classes twice: here and in ./editor.scss
.editor-styles-wrapper .has-small-font-size {
font-size: 13px;
}

.editor-styles-wrapper .has-regular-font-size, // Not used now, kept because of backward compatibility.
.editor-styles-wrapper .has-normal-font-size {
.editor-styles-wrapper .has-regular-font-size {
font-size: 16px;
}

.editor-styles-wrapper .has-medium-font-size {
font-size: 20px;
}

.editor-styles-wrapper .has-large-font-size {
font-size: 36px;
}

.editor-styles-wrapper .has-larger-font-size, // Not used now, kept because of backward compatibility.
.editor-styles-wrapper .has-huge-font-size {
.editor-styles-wrapper .has-larger-font-size {
font-size: 42px;
}

Expand Down

0 comments on commit 0afabe4

Please sign in to comment.