Skip to content

Commit 7993c77

Browse files
committed
fix (blocks) css between FO/BO
1 parent d60f3a0 commit 7993c77

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

src/scss/base/_text.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ figure {
109109
----------------------------------------------------------------------------------------------------*/
110110
hr {
111111
clear: both;
112-
border: 0;
113-
height: 1px;
114-
background: $maingrey;
115112
margin: $base-spacing 0;
116113
}
117114
blockquote {

src/scss/wp/_gutenberg.scss

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,52 +42,53 @@
4242

4343
// Block Separator (<hr/>)
4444
&-separator{
45+
46+
&:not(.is-style-dots) {
47+
border-bottom: 2px solid $maingrey;
48+
margin-left: auto;
49+
margin-right: auto;
50+
}
51+
4552
&:not(.is-style-wide):not(.is-style-dots) {
46-
max-width: 100px;
53+
// Custom CSS for native Separator Block
4754
}
4855
}
4956

5057
// Block Quote (<blockquote/>)
5158
&-quote {
52-
border-left: 4px solid currentColor;
53-
5459
p {
55-
margin-bottom: $half-base-spacing;
60+
// Custom CSS for inner paragraph
5661
}
5762

5863
cite,
5964
&__citation {
60-
font-size: 13px;
61-
font-style: normal;
62-
color: $maingrey;
65+
// Custom CSS for Block Quote citation
6366
}
6467

6568
&.is-large {
66-
padding: $base-spacing*1.5;
67-
margin-bottom: $base-spacing*1.5;
69+
// Custom CSS for large Block Quote option
6870
}
6971
}
7072

7173
&-pullquote {
72-
border-top: 4px solid currentColor;
73-
border-bottom: 4px solid currentColor;
74+
blockquote {
75+
margin-bottom: 0;
76+
}
7477

7578
cite,
7679
&__citation {
77-
text-transform: uppercase;
78-
font-size: 13px;
79-
font-style: normal;
80-
color: $maingrey;
81-
}
82-
83-
blockquote {
84-
margin-bottom: 0;
80+
// Custom CSS for Block Quote citation
8581
}
8682
}
8783

8884
// Block Table
8985
&-table {
9086
// Actually WordPress handle overflow scroll x on mobile
87+
td,
88+
th {
89+
padding: $half-base-spacing;
90+
border: 1px solid $base-border-color;
91+
}
9192
}
9293
}
9394

0 commit comments

Comments
 (0)