-
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.
Polish paddings, margins, headings (#651)
* Darken mover. * Rearrange CSS, and lighten save state. This commit moves some CSS from the button component to the tools stylesheet. It's a better place. It also lightens the save state so it's the same color as everything else in the editor bar. * Normalize block boundary paddings. There were some offset here and there. This commit makes them 1:1 with the mockups, and also moves to using variables and a little SCSS math that should hopefully make the resulting positioning stuff a little easier to work with. * Fix regression that hid the first blocks toolbar. * Polish headings This tunes the margins a bit. It also resizes headings 1-6 a bit, so they are differentiated and all different. This fixes #625 * Use padding instead of margin for heading. * Move to tabs. * Relabel a margin variable.
- Loading branch information
Showing
9 changed files
with
67 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.editor-visual-editor__block[data-type="core/heading"] { | ||
padding-top: 0; | ||
padding-bottom: 0; | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
// for this block only we change the block padding to reflect margin instead | ||
margin: 0; | ||
padding: .5em 0; | ||
} | ||
|
||
h1 { | ||
font-size: 2em; | ||
} | ||
|
||
h2 { | ||
font-size: 1.6em; | ||
} | ||
|
||
h3 { | ||
font-size: 1.4em; | ||
} | ||
|
||
h4 { | ||
font-size: 1.2em; | ||
} | ||
|
||
h5 { | ||
font-size: 1.1em; | ||
} | ||
|
||
h6 { | ||
font-size: 1em; | ||
} | ||
} |
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
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