Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup URL Popover stylesheet #14015

Merged
merged 1 commit into from
Feb 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions packages/editor/src/components/url-popover/style.scss
Original file line number Original file line Diff line number Diff line change
@@ -1,16 +1,15 @@
.editor-url-popover { .editor-url-popover__row {
&__row {
display: flex; display: flex;
} }


// Any children of the popover-row that are not the settings-toggle // Any children of the popover-row that are not the settings-toggle
// should take up as much space as possible. // should take up as much space as possible.
&__row > :not(.editor-url-popover__settings-toggle) { .editor-url-popover__row > :not(.editor-url-popover__settings-toggle) {
flex-grow: 1; flex-grow: 1;
} }


// Mimic toolbar component styles for the icons in this popover. // Mimic toolbar component styles for the icons in this popover.
.components-icon-button { .editor-url-popover .components-icon-button {
padding: 3px; padding: 3px;


> svg { > svg {
Expand All @@ -37,7 +36,7 @@
} }
} }


&__settings-toggle { .editor-url-popover__settings-toggle {
flex-shrink: 0; flex-shrink: 0;


// Add a left divider to the toggle button. // Add a left divider to the toggle button.
Expand All @@ -50,12 +49,11 @@
} }
} }


&__settings { .editor-url-popover__settings {
padding: $panel-padding; padding: $panel-padding;
border-top: $border-width solid $light-gray-500; border-top: $border-width solid $light-gray-500;


.components-base-control:last-child .components-base-control__field { .components-base-control:last-child .components-base-control__field {
margin-bottom: 0; margin-bottom: 0;
} }
} }
}