Skip to content

Commit

Permalink
Apply icon button centering by horizontal padding
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed May 1, 2017
1 parent 96f3957 commit b00e551
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
3 changes: 1 addition & 2 deletions editor/components/icon-button/style.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.editor-icon-button {
display: flex;
align-items: center;
min-width: 36px;
height: 36px;
padding: 8px;
border: none;
background: none;
color: $dark-gray-500;
Expand Down
7 changes: 0 additions & 7 deletions editor/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,12 @@
background: none;
cursor: pointer;
border: none;
width: 36px;
height: 36px;
outline: none;
padding: 0;
transition: color .2s ease;

&:hover {
color: $blue-medium;
}

.dashicon.insert {
margin: 0 auto; // Fixes horizontal alignment in Safari 10.
}
}

.editor-inserter__menu {
Expand Down
8 changes: 4 additions & 4 deletions editor/components/toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

.editor-toolbar__control.editor-button {
display: inline-flex;
align-items: flex-end;
margin: 3px;
margin-left: 0;
padding: 6px;
background: none;
border: 1px solid transparent;
outline: none;
Expand Down Expand Up @@ -39,9 +39,9 @@
font-family: $default-font;
font-size: 10px;
font-weight: bold;
position: absolute;
bottom: 8px;
right: 5px;
position: relative;
top: -1px;
margin-left: -3px;
}
}

Expand Down

0 comments on commit b00e551

Please sign in to comment.