Skip to content

Commit

Permalink
Polish and makes space.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joen Asmussen authored and gziolo committed May 17, 2018
1 parent e4969b7 commit 37e7434
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 6 deletions.
7 changes: 5 additions & 2 deletions components/toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ div.components-toolbar {
display: inline-flex;
align-items: flex-end;
margin: 0;
padding: 3px;
outline: none;
cursor: pointer;
position: relative;
width: $icon-button-size;
height: $icon-button-size;
padding: 3px 1px;

@include break-small() {
padding: 3px;
}

// unset icon button styles
&:active,
Expand Down
30 changes: 28 additions & 2 deletions core-blocks/heading/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,42 @@

.core-blocks-heading__icon {
height: 20px;
position: relative;
width: 20px;
display: inline-flex;
position: relative;

&:after {
/*&:after {
content: attr( data-subscript );
font-family: $default-font;
font-size: $default-font-size;
font-weight: 600;
position: absolute;
bottom: 0;
left: 16px;
}*/

// subscript for numbered icon buttons, like headings
/*&[data-subscript] svg {
padding: 4px 8px 4px 0;
}*/

&[data-subscript]:after {
content: attr( data-subscript );
font-family: $default-font;
font-size: $default-font-size;
font-weight: 600;
position: absolute;
right: -5px;
bottom: 0;
}
}

.core-blocks-heading__styles-toolbar {
.components-icon-button {
padding: 8px 4px;

@include break-small() {
padding: 8px;
}
}
}
2 changes: 1 addition & 1 deletion core-blocks/heading/styles-toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const HeadingStylesToolbar = ( { value, onChange } ) => (
<span
className="core-blocks-heading__styles-toolbar-menu-title"
>
{ __( 'Transform into:' ) }
{ __( 'Heading style:' ) }
</span>
<NavigableMenu
role="menu"
Expand Down
6 changes: 5 additions & 1 deletion editor/components/block-switcher/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
.editor-block-switcher__toggle {
width: auto;
margin: 0;
padding: 8px;
border-radius: 0;
padding: 8px 4px;

@include break-small() {
padding: 8px;
}

&:focus:before {
top: -3px;
Expand Down

0 comments on commit 37e7434

Please sign in to comment.