-
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.
Convert all
px
values in front-facing styles to relative (em
) uni…
…ts (#24523) * Button Block: Use relative instead of absolute units * Use relative units for calendar paddings * Paragraph block: Use relative instead of absolute units * Text Columns: Prefer relative units * Quote block: Prefer relative units * Pullquote block: Prefer relative units * also apply changes to native * Latest Comments Block: Prefer relative units * Use relative units for social-icons block * Don't use $grid-unit-* vars for front-facing styles * Avoid using $default-block-margin for front-facing styles * Convert all remaining pixel values to rem * Use em instead of rem * Use the vars * restore original code block padding * Update packages/block-library/src/button/style.scss Co-authored-by: Zebulan Stanphill <zebulanstanphill@protonmail.com> * Update packages/block-library/src/latest-comments/style.scss Co-authored-by: Zebulan Stanphill <zebulanstanphill@protonmail.com> * Move vars to separate "group" and fix comments capitalization * this value is closer to the legacy one * no reason for the padding to change here since it was already using em * Update packages/base-styles/_variables.scss Co-authored-by: Zebulan Stanphill <zebulanstanphill@protonmail.com> * Value needs to change since it's now relative to the font-size * Fix calculations for relative units in the gallery block * Fix social links editor styles * Revert social-icons style mods Co-authored-by: Zebulan Stanphill <zebulanstanphill@protonmail.com>
- Loading branch information
1 parent
e6d4483
commit bc77362
Showing
24 changed files
with
83 additions
and
80 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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
th, | ||
tbody td { | ||
padding: 4px; | ||
padding: 0.25em; | ||
border: 1px solid $gray-200; | ||
} | ||
|
||
|
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
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
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
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
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
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,8 +1,8 @@ | ||
.quote { | ||
font-size: 18px; | ||
font-size: 1.125em; | ||
} | ||
|
||
.citation { | ||
font-size: 14px; | ||
margin-top: 12px; | ||
font-size: 0.875em; | ||
margin-top: 0.85em; | ||
} |
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,6 +1,6 @@ | ||
%shared { | ||
border-width: 3px 0; | ||
padding: 21px 16px; | ||
padding: 1.3125em 1em; | ||
} | ||
|
||
.light { | ||
|
Oops, something went wrong.