Skip to content

Commit

Permalink
Canard: Fix display of dotted separator (#7980)
Browse files Browse the repository at this point in the history
The dotted separator wasn't displaying because the height of the
separator was too small. This change overrides the height for the dotted
separator only.
  • Loading branch information
dsas committed Jul 31, 2024
1 parent 083d413 commit a4e2762
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion canard/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,14 @@ hr.wp-block-separator {
.wp-block-separator {
background-color: #ddd;
border: 0;
height: 1px;
margin-bottom: 30px;
max-width: 66%;
}

.wp-block-separator:not(.is-style-dots) {
height: 1px;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
margin-left: auto;
margin-right: auto;
Expand Down
8 changes: 6 additions & 2 deletions canard/editor-blocks.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

`
/*
* Theme Name: Canard
* Description: Gutenberg Block Editor Styles
Expand Down Expand Up @@ -747,14 +747,18 @@
}

/* Separator */

.wp-block-separator {
background-color: #ddd;
border: 0;
height: 1px;
margin-bottom: 30px;
max-width: 66%;
}

.wp-block-separator:not(.is-style-dots) {
height: 1px;
}

.wp-block-separator.is-wide {
max-width: 100%;
}
Expand Down

0 comments on commit a4e2762

Please sign in to comment.