-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
border: 1px → $border-width #64680
border: 1px → $border-width #64680
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ | |
|
||
|
||
.block-editor-global-styles-background-panel__inspector-media-replace-container { | ||
border: 1px solid $gray-300; | ||
border: $border-width solid $gray-300; | ||
border-radius: 2px; | ||
// Full width. ToolsPanel lays out children in a grid. | ||
grid-column: 1 / -1; | ||
|
@@ -101,7 +101,7 @@ | |
} | ||
|
||
.block-editor-global-styles-background-panel__image-tools-panel-item { | ||
border: 1px solid $gray-300; | ||
border: $border-width solid $gray-300; | ||
border-radius: 2px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same radius question here. |
||
|
||
// Full width. ToolsPanel lays out children in a grid. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,7 @@ $components-custom-gradient-picker__padding: $grid-unit-20; // 48px container, 1 | |
&.is-pressed { | ||
> svg { | ||
background: $white; | ||
border: 1px solid $gray-600; | ||
border: $border-width solid $gray-600; | ||
border-radius: 2px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another radius. |
||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,7 +86,7 @@ | |
} | ||
|
||
.copy-button__container--secondary { | ||
border: 1px #c6c6c8; | ||
border: $border-width #c6c6c8; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Speaking of rabbit holes, what's this color? 😱 |
||
background-color: $white; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ | |
} | ||
background: $white; | ||
border-radius: $radius-block-ui; | ||
border: 1px solid $gray-900; | ||
padding: $grid-unit-15 - 1px; // Subtract the border width. | ||
max-height: calc(100vh - 2px); // Subtract the border width (both top and bottom). | ||
border: $border-width solid $gray-900; | ||
padding: $grid-unit-15 - $border-width; | ||
max-height: calc(100vh - #{ $border-width } - #{ $border-width }); | ||
overflow-y: scroll; | ||
|
||
.wp-block-legacy-widget__edit-form-title { | ||
|
@@ -57,7 +57,7 @@ | |
font-family: system-ui; | ||
background-color: transparent; | ||
box-sizing: border-box; | ||
border: 1px solid $gray-700; | ||
border: $border-width solid $gray-700; | ||
border-radius: 3px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also unrelated, but I cannot help myself. Should this be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe, I'm not too familiar with the legacy widget editor. |
||
box-shadow: none; | ||
color: $black; | ||
|
@@ -96,7 +96,7 @@ | |
|
||
&:hover::after { | ||
border-radius: $radius-block-ui; | ||
border: 1px solid $gray-600; | ||
border: $border-width solid $gray-600; | ||
bottom: 0; | ||
content: ""; | ||
left: 0; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rabbit hole is endless. Should these 2px be
$radius-block-ui;
? Or even the new scale, small?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next steps for radius is a bit tricky, we need to:
border-radius
overrides (there are quite a few in the editor)So potential next steps would be:
$radius-block-ui
$radius-block-ui
as a to-do list; manually go through and replace instances of it with the appropriate values from the new scale.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zero rush. Doesn't have to be here, or now, or you. Just wanted to mention it as I saw it.