Skip to content

Commit

Permalink
Merge pull request #1389 from WordPress/polish/controls-floats-various
Browse files Browse the repository at this point in the history
Polish controls, floats, switches and headings
  • Loading branch information
jasmussen authored Jun 23, 2017
2 parents ddf4d65 + e28a078 commit 988f0f8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions components/form-toggle/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ $toggle-border-width: 2px;

.components-form-toggle__hint {
display: inline-block;
min-width: 24px; // This prevents a position jog when the control is right aligned, and the width of the label changes
margin-left: 10px;
font-weight: 500;
}
10 changes: 7 additions & 3 deletions components/toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,18 @@
color: $white;
}

&[data-subscript] svg {
padding: 4px 8px 4px 0px;
}

&[data-subscript]:after {
content: attr( data-subscript );
font-family: $default-font;
font-size: 10px;
font-size: $default-font-size;
font-weight: bold;
position: relative;
top: -6px;
left: -9px;
top: -5px;
left: -12px;
}
}

Expand Down
4 changes: 3 additions & 1 deletion editor/assets/stylesheets/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,6 @@
@content;
}
}
$float-margin: calc( 50% - #{ $visual-editor-max-width / 2 } );

$visual-editor-max-width-padding: $visual-editor-max-width + $block-mover-padding-visible + $block-mover-padding-visible;
$float-margin: calc( 50% - #{ $visual-editor-max-width-padding / 2 } );
2 changes: 1 addition & 1 deletion editor/assets/stylesheets/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ $text-editor-max-width: 760px;

/* Editor */
$text-editor-max-width: 760px;
$visual-editor-max-width: 636px; // previously 700
$visual-editor-max-width: 636px;
$block-controls-height: 38px;
$icon-button-size: 36px;

Expand Down
13 changes: 12 additions & 1 deletion editor/modes/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
margin-bottom: 5px;
max-width: $visual-editor-max-width + ( 2 * $block-mover-padding-visible );
position: relative;
// The block mover needs to stay inside the block to allow clicks when hovering the block
// The block mover needs to stay inside the block to allow clicks when hovering the block
padding: $block-padding $block-padding + $block-mover-padding-visible;

&:before {
Expand Down Expand Up @@ -175,13 +175,24 @@

&:before {
left: 0;
right: 0;
border-left-width: 0;
border-right-width: 0;
}

.editor-block-mover {
display: none;
}

.editor-block-settings-menu {
top: -24px;
right: 10px;
}

.editor-block-settings-menu__control {
float: left;
margin-right: 8px;
}
}

&[data-align="full"],
Expand Down

0 comments on commit 988f0f8

Please sign in to comment.