Varia: Make sure separator is always visible with background colour

This commit is contained in:
Takashi Irie 2019-09-26 13:04:28 +01:00
parent 31b1f6acf2
commit 6c101d7801
5 changed files with 23 additions and 2 deletions

View file

@ -1,7 +1,7 @@
.wp-block-separator,
hr {
border-bottom: #{map-deep-get($config-separator, "height")} solid #{map-deep-get($config-global, "color", "border", "default")};
clear: both;
border-bottom: #{map-deep-get($config-separator, "height")} solid #{map-deep-get($config-global, "color", "border", "default")};
clear: both;
&[style*="text-align:right"],
&[style*="text-align: right"] {
@ -20,4 +20,8 @@ hr {
color: #{map-deep-get($config-global, "color", "border", "default")};
}
}
[class*="has-background"] & {
border-color: currentColor;
}
}

View file

@ -27,5 +27,9 @@ hr {
padding-left: #{map-deep-get($config-global, "font", "size", "sm")};
}
}
[class*="has-background"] & {
border-color: currentColor;
}
}
}

View file

@ -582,6 +582,11 @@ hr.is-style-dots:before {
color: #DDDDDD;
}
[class*="has-background"] .wp-block-separator, [class*="has-background"]
hr {
border-color: currentColor;
}
table th,
.wp-block-table th {
font-family: sans-serif;

View file

@ -1887,6 +1887,10 @@ hr.wp-block-separator.is-style-dots:before {
padding-right: 0.83333rem;
}
[class*="has-background"] hr.wp-block-separator {
border-color: currentColor;
}
.wp-block-jetpack-slideshow ul {
margin-right: 0;
margin-left: 0;

View file

@ -1887,6 +1887,10 @@ hr.wp-block-separator.is-style-dots:before {
padding-left: 0.83333rem;
}
[class*="has-background"] hr.wp-block-separator {
border-color: currentColor;
}
.wp-block-jetpack-slideshow ul {
margin-left: 0;
margin-right: 0;