Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Fix up separator styles #423

Merged
merged 6 commits into from
Oct 14, 2020
Merged
Show file tree
Hide file tree
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
9 changes: 4 additions & 5 deletions assets/css/ie-editor.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/ie-editor.css.map

Large diffs are not rendered by default.

28 changes: 24 additions & 4 deletions assets/css/ie.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/ie.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/css/style-editor.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/style-editor.css.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/sass/01-settings/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ $baseline-unit: 10px;

--separator--border-color: var(--global--color-border);
--separator--height: 1px;
--separator--width: calc(100vw - 1.2 * var(--global--spacing-horizontal));

/* Block: Table */
--table--stripes-border-color: var(--global--color-light-gray);
Expand Down
3 changes: 2 additions & 1 deletion assets/sass/05-blocks/separator/_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
hr {
border-bottom: var(--separator--height) solid var(--separator--border-color);
clear: both;
opacity: 1;

&[style*="text-align:right"],
&[style*="text-align: right"] {
border-right-color: var(--separator--border-color);
}

&:not(.is-style-wide):not(.is-style-dots) {
max-width: var(--separator--width);
max-width: inherit;
}

&.is-style-wide {
Expand Down
17 changes: 14 additions & 3 deletions assets/sass/05-blocks/separator/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,27 @@ hr {
&.wp-block-separator {
border-bottom: var(--separator--height) solid var(--separator--border-color);

&:not(.is-style-wide):not(.is-style-dots) {
max-width: var(--separator--width);
&:not(.is-style-wide):not(.is-style-dots):not(.alignwide) {
max-width: var(--responsive--aligndefault-width);

&.alignfull {
max-width: var(--responsive--alignfull-width);
}
}

/**
* Block Options
*/
&.is-style-wide {
@extend %responsive-aligndefault-width;
border-bottom-width: calc(3 * var(--separator--height));

&:not(.alignwide) {
@extend %responsive-aligndefault-width;
}

&.alignfull {
max-width: var(--responsive--alignfull-width);
}
}

&.is-style-dots {
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions style-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions style.css.map

Large diffs are not rendered by default.