-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sage 10 editor scripts & styles (#2351)
* adds alternate button style and super basic starter css * Adds transition variable * Add bootstrap max-width to editor-styles * updates button scss, editor wrapper scss, and registration * rename is-style-ghost to is-style-outline * simplify structure and cleanup css * Protect Ben Word's typographic holdings * Remove scoping from .has-xyz-color classes * Restore scss partial import structure * rename partials, move color util, apply bootstrap font * alphabetical selectors ¯\_(ツ)_/¯
- Loading branch information
1 parent
36b2c28
commit fdbe712
Showing
7 changed files
with
73 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import '@wordpress/edit-post'; | ||
import domReady from '@wordpress/dom-ready'; | ||
import { | ||
unregisterBlockStyle, | ||
registerBlockStyle, | ||
} from '@wordpress/blocks'; | ||
|
||
domReady(() => { | ||
unregisterBlockStyle('core/button', 'outline'); | ||
|
||
registerBlockStyle('core/button', { | ||
name: 'outline', | ||
label: 'Outline', | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
@import 'button'; |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
*/ | ||
|
||
$theme-colors: ( | ||
primary: #525ddc | ||
primary: #525ddc, | ||
); |
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