File tree Expand file tree Collapse file tree 2 files changed +21
-31
lines changed
packages/block-library/src/separator Expand file tree Collapse file tree 2 files changed +21
-31
lines changed Original file line number Diff line number Diff line change 2
2
// Prevent margin collapsing so the area to select the separator is bigger.
3
3
padding-top : 0.1px ;
4
4
padding-bottom : 0.1px ;
5
-
6
- // This is also set in style.scss, but needs a higher specificity in editor
7
- // due to the way that color block supports adds additional background color styles.
8
- & .wp-block-separator.is-style-dots {
9
- background : none !important ;
10
- border : none ;
11
- }
12
5
}
Original file line number Diff line number Diff line change 1
1
.wp-block-separator {
2
- // Dots style
3
- & .is-style-dots {
4
- // Override any background themes often set on the hr tag for this style.
5
- // also override the color set in the editor since it's intented for normal HR
6
- background : none !important ;
7
- border : none ;
8
- text-align : center ;
9
- line-height : 1 ;
10
- height : auto ;
11
-
12
- & ::before {
13
- content : " \00b7 \00b7 \00b7 " ;
14
- color : currentColor ;
15
- font-size : 1.5em ;
16
- letter-spacing : 2em ;
17
- /* rtl:ignore*/
18
- padding-left : 2em ;
19
- font-family : serif ;
20
- }
21
- }
22
- }
23
-
24
- // Lowest specificity to avoid overriding global styles.
25
- :where(.wp-block-separator ) {
26
2
border-top : 2px solid currentColor ;
27
3
// Default, thin style, is stored in theme.scss so it can be opted out of
28
4
31
7
border-right : none ;
32
8
border-bottom : none ;
33
9
}
10
+
11
+ // Dots block style variation
12
+ :root :where(.wp-block-separator.is-style-dots ) {
13
+ // Override any background themes often set on the hr tag for this style.
14
+ // also override the color set in the editor since it's intended for normal HR
15
+ background : none !important ;
16
+ border : none ;
17
+ text-align : center ;
18
+ line-height : 1 ;
19
+ height : auto ;
20
+
21
+ & ::before {
22
+ content : " \00b7 \00b7 \00b7 " ;
23
+ color : currentColor ;
24
+ font-size : 1.5em ;
25
+ letter-spacing : 2em ;
26
+ /* rtl:ignore*/
27
+ padding-left : 2em ;
28
+ font-family : serif ;
29
+ }
30
+ }
You can’t perform that action at this time.
0 commit comments