-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add label, relax margins, tighten help text for switch, fix color
This commit does a few things: 1. It makes the panel heading the same color as the down chevron. 2. It adds a label to the font size picker, grouping it all together 3. It tightens the margins between switch and contextual help text. 4. It relaxes the margins for base controls inside panels, to make them a bit lighter. Together with #9784 it reduces the weight of panels in the sidebar.
- Loading branch information
Showing
3 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
.components-base-control { | ||
font-family: $default-font; | ||
font-size: $default-font-size; | ||
} | ||
|
||
.components-base-control__field { | ||
margin-bottom: $grid-size; | ||
.components-base-control__field { | ||
margin-bottom: $grid-size; | ||
|
||
.components-panel__row & { | ||
margin-bottom: inherit; | ||
.components-panel__row & { | ||
margin-bottom: inherit; | ||
} | ||
} | ||
} | ||
|
||
.components-base-control__label { | ||
display: block; | ||
margin-bottom: $grid-size-small; | ||
} | ||
.components-base-control__label { | ||
display: block; | ||
margin-bottom: $grid-size-small; | ||
} | ||
|
||
.components-base-control__help { | ||
font-style: italic; | ||
margin-bottom: 0; | ||
.components-base-control__help { | ||
margin-top: -$grid-size; | ||
font-style: italic; | ||
margin-bottom: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters