Skip to content

Commit

Permalink
Polish: Unify subheadings style. (#23192)
Browse files Browse the repository at this point in the history
Co-authored-by: Joen Asmussen <[email protected]>
  • Loading branch information
jasmussen and Joen Asmussen authored Jun 16, 2020
1 parent 3f65d98 commit 5a9fa09
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ $tree-item-height: 36px;
}

.block-editor-block-navigation__label {
margin: 0 0 $grid-unit-10;
color: $dark-gray-300;
margin: 0 0 $grid-unit-15;
color: $medium-gray-text;
text-transform: uppercase;
font-size: 11px;
font-weight: 500;
}

.block-editor-block-navigation__container {
Expand Down
12 changes: 9 additions & 3 deletions packages/block-editor/src/components/block-switcher/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@
}

.block-editor-block-switcher__label {
margin-bottom: $grid-unit-10;
margin-bottom: $grid-unit-15;
color: $medium-gray-text;
text-transform: uppercase;
font-size: 11px;
font-weight: 500;
}

@include break-medium {
Expand Down Expand Up @@ -136,8 +139,11 @@
}

.block-editor-block-switcher__preview-title {
margin-bottom: 10px;
color: $dark-gray-300;
margin-bottom: $grid-unit-15;
color: $medium-gray-text;
text-transform: uppercase;
font-size: 11px;
font-weight: 500;
}

// The block switcher in the contextual toolbar should be bigger.
Expand Down
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ $block-inserter-tabs-height: 44px;
}

.block-editor-inserter__panel-title {
color: $theme-color;
margin: 0 $grid-unit-15 0 0;
color: $medium-gray-text;
text-transform: uppercase;
font-size: 11px;
font-weight: 500;
margin: 0 $grid-unit-10 0 0;
}

.block-editor-inserter__block-list {
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/dropdown-menu/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
margin-top: 0;
border-top: $border-width solid $light-gray-secondary;
padding: $grid-unit-15;

.is-alternate & {
border-color: $dark-gray-primary;
}
}
}

Expand Down
7 changes: 5 additions & 2 deletions packages/components/src/menu-group/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
}

.components-menu-group__label {
margin-bottom: $grid-unit-10;
color: $medium-gray-text;
padding: 0;
margin-bottom: $grid-unit-15;
color: $medium-gray-text;
text-transform: uppercase;
font-size: 11px;
font-weight: 500;
}

0 comments on commit 5a9fa09

Please sign in to comment.