Skip to content

Commit

Permalink
Polish headings
Browse files Browse the repository at this point in the history
This tunes the margins a bit. It also resizes headings 1-6 a bit, so they are differentiated and all different. This fixes #625
  • Loading branch information
jasmussen committed May 4, 2017
1 parent 88fc11f commit cf17980
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions blocks/library/heading/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Internal dependencies
*/
import './style.scss';
import { registerBlock, query } from 'api';
import Editable from 'components/editable';

Expand Down
34 changes: 34 additions & 0 deletions blocks/library/heading/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.editor-visual-editor__block {
h1,
h2,
h3,
h4,
h5,
h6 {
margin: .5em 0 0 0; // this is a little artificially deflated by block padding
}

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;
}
}

0 comments on commit cf17980

Please sign in to comment.