-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split core blocks assets loading for FSE themes (#25220)
* Poorly split css files * Add style & editorStyle in block.json for all blocks * change prefix from "core" to "wp" * Enqueue core block styles * Only load styles for rendered blocks * remove is_feed() condition * Enqueue outside the is_registered() check * Use register_block_type_from_metadata function to register site-logo * Add separate style for no-blocks * PHPCS fixes * Try splitting block-styles compiling * bugfixes * these will now be taken care of in webpack * rename file * tweak paths & add editor styles * resolve merge conflict * Add styles that were recently added * Bugfix: styles now get properly loaded only when used * Add recently introduced stylesheet for the query loop * code block styles were recently moved from editor to styles * Add verse styles * "classic" is called "freeform" * add stylesTransform
- Loading branch information
Showing
68 changed files
with
365 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,6 @@ | |
"supports": { | ||
"align": true, | ||
"html": false | ||
} | ||
}, | ||
"editorStyle": "wp-block-archives-editor" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ | |
"customClassName": false, | ||
"html": false, | ||
"inserter": false | ||
} | ||
}, | ||
"editorStyle": "wp-block-editor" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,6 @@ | |
}, | ||
"supports": { | ||
"align": true | ||
} | ||
}, | ||
"style": "wp-block-calendar" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,6 @@ | |
"supports": { | ||
"anchor": true, | ||
"fontSize": true | ||
} | ||
}, | ||
"style": "wp-block-code" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,7 @@ | |
"gradients": true, | ||
"link": true | ||
} | ||
} | ||
}, | ||
"editorStyle": "wp-block-columns-editor", | ||
"style": "wp-block-columns" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// The following selectors have increased specificity (using the :root prefix) | ||
// to assure colors take effect over another base class color, mainly to let | ||
// the colors override the added specificity by link states such as :hover. | ||
|
||
:root { | ||
// Background colors. | ||
@include background-colors(); | ||
|
||
// Foreground colors. | ||
@include foreground-colors(); | ||
|
||
// Gradients | ||
@include gradient-colors(); | ||
|
||
.has-link-color a { | ||
color: var(--wp--style--color--link, #00e); | ||
} | ||
} | ||
|
||
// 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-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 { | ||
font-size: 2.625em; | ||
} | ||
|
||
// Text alignments. | ||
.has-text-align-center { | ||
text-align: center; | ||
} | ||
|
||
.has-text-align-left { | ||
/*rtl:ignore*/ | ||
text-align: left; | ||
} | ||
|
||
.has-text-align-right { | ||
/*rtl:ignore*/ | ||
text-align: right; | ||
} | ||
|
||
// This tag marks the end of the styles that apply to editing canvas contents and need to be manipulated when we resize the editor. | ||
#end-resizable-editor-section { | ||
display: none; | ||
} | ||
|
||
// Block alignments. | ||
.aligncenter { | ||
clear: both; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,5 +57,7 @@ | |
"spacing": { | ||
"padding": true | ||
} | ||
} | ||
}, | ||
"editorStyle": "wp-block-cover-editor", | ||
"style": "wp-block-cover" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,5 +25,7 @@ | |
"spacing": { | ||
"padding": true | ||
} | ||
} | ||
}, | ||
"editorStyle": "wp-block-group-editor", | ||
"style": "wp-block-group" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,6 @@ | |
"customClassName": false, | ||
"className": false, | ||
"html": false | ||
} | ||
}, | ||
"editorStyle": "wp-block-html-editor" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,5 +72,7 @@ | |
}, | ||
"supports": { | ||
"anchor": true | ||
} | ||
}, | ||
"editorStyle": "wp-block-image-editor", | ||
"style": "wp-block-image" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.