Skip to content

Commit ab3848a

Browse files
committed
Twenty-Twenty: Alignment fix on Separator Block editor styles.
This changeset fixes an issue with some CSS rules of the "Wide Line" variation of the Separator Block’s editor stylesheet, for small, medium and large screens. Props umesh84, iamjaydip, mukesh27, larrach. Fixes #55896. git-svn-id: https://develop.svn.wordpress.org/trunk@53459 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f2697ea commit ab3848a

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,8 +1392,8 @@ hr.wp-block-separator.is-style-dots::before {
13921392
}
13931393

13941394
hr.wp-block-separator.is-style-wide {
1395-
margin-right: -70px;
1396-
margin-left: -70px;
1395+
margin-right: auto;
1396+
margin-left: auto;
13971397
}
13981398

13991399

@@ -1430,8 +1430,8 @@ hr.wp-block-separator.is-style-dots::before {
14301430
/* BLOCK: SEPARATOR */
14311431

14321432
hr.wp-block-separator.is-style-wide {
1433-
margin-right: -150px;
1434-
margin-left: -150px;
1433+
margin-right: auto;
1434+
margin-left: auto;
14351435
}
14361436

14371437
}
@@ -1465,8 +1465,8 @@ hr.wp-block-separator.is-style-dots::before {
14651465
/* BLOCK: SEPARATOR */
14661466

14671467
hr.wp-block-separator.is-style-wide {
1468-
margin-right: -200px;
1469-
margin-left: -200px;
1468+
margin-right: auto;
1469+
margin-left: auto;
14701470
}
14711471

14721472

src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,8 +1392,8 @@ hr.wp-block-separator.is-style-dots::before {
13921392
}
13931393

13941394
hr.wp-block-separator.is-style-wide {
1395-
margin-left: -70px;
1396-
margin-right: -70px;
1395+
margin-left: auto;
1396+
margin-right: auto;
13971397
}
13981398

13991399

@@ -1430,8 +1430,8 @@ hr.wp-block-separator.is-style-dots::before {
14301430
/* BLOCK: SEPARATOR */
14311431

14321432
hr.wp-block-separator.is-style-wide {
1433-
margin-left: -150px;
1434-
margin-right: -150px;
1433+
margin-left: auto;
1434+
margin-right: auto;
14351435
}
14361436

14371437
}
@@ -1465,8 +1465,8 @@ hr.wp-block-separator.is-style-dots::before {
14651465
/* BLOCK: SEPARATOR */
14661466

14671467
hr.wp-block-separator.is-style-wide {
1468-
margin-left: -200px;
1469-
margin-right: -200px;
1468+
margin-left: auto;
1469+
margin-right: auto;
14701470
}
14711471

14721472

0 commit comments

Comments
 (0)