Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Consolidate editor styles #262

Merged
merged 9 commits into from
Nov 2, 2018
Merged

Consolidate editor styles #262

merged 9 commits into from
Nov 2, 2018

Conversation

kjellr
Copy link
Collaborator

@kjellr kjellr commented Oct 24, 2018

❗️ This shouldn't be merged until WordPress/gutenberg#10956 is officially part of Gutenberg (Planned for the Gutenberg 4.2 Release)❗️


A followup to #22.

This PR removes our secondary style-editor-frame.css file, and consolidates all of our editor styles into style-editor.css. Initially, the standard editor stylesheet was limited in scope to individual blocks, which meant we were unable to style the general alignment of the page, as well as items like the page title and default appender.

The scope of style-editor.css is being expanded in WordPress/gutenberg#10956 , so we're now able to style those elements in a single stylesheet.

Some minor style tweaks were necessary to make our original styles work in this context, but for the most part this is identical to #22.

A followup to #22.

This PR removes our secondary `style-editor-frame.css` file, and consolidates all of our editor styles into `style-editor.css`. Initially, the standard editor stylesheet was limited in scope to individual blocks, which meant we were unable to style the general alignment of the page, as well as items like the page title and default appender.

The scope of `style-editor.css` is being expanded in WordPress/gutenberg#10956 , so we're now able to style those elements in a single stylesheet.

Some minor style tweaks were necessary to make our original styles work in this context, but for the most part this is identical to #22.
Use of [data-align] selectors appears to be here to stay, so no need to point this out in the header.
@kjellr kjellr requested a review from allancole November 1, 2018 15:43
@kjellr
Copy link
Collaborator Author

kjellr commented Nov 1, 2018

@allancole This should be good to go, and should be included in Beta 3, alongside Gutenberg 4.2.

To test:

  • Install Gutenberg 4.2-RC1
  • Make sure the editor alignment styles are still in place, as well as the editor post title + default appender font styles.
  • Make sure changing the color still works via the customizer (since I renamed that stylesheet).

@allancole allancole merged commit 334803f into master Nov 2, 2018
@kjellr kjellr deleted the update/editor-styles branch November 2, 2018 16:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants