Skip to content

Commit ac86d97

Browse files
committed
Clean up stylesheet
1 parent 22f3b5f commit ac86d97

File tree

1 file changed

+6
-13
lines changed
  • projects/packages/jetpack-mu-wpcom/src/features/wpcom-blocks/code

1 file changed

+6
-13
lines changed

projects/packages/jetpack-mu-wpcom/src/features/wpcom-blocks/code/style.css

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@
7373
padding: 4px 0 !important;
7474
line-height: inherit !important;
7575

76+
/* prevent empty lines from collapsing vertically in rendered views */
77+
.cm-line:empty::after {
78+
content: "\00a0";
79+
}
80+
7681
> code {
7782
font-size: inherit !important;
7883
margin: 0 !important;
@@ -84,19 +89,10 @@
8489

8590
.cm-line::before {
8691

87-
/* These are essential for layout */
92+
/* Essential for layout */
8893
box-sizing: content-box !important;
8994
}
9095

91-
/* in the frontend */
92-
pre {
93-
94-
/* prevent empty lines from collapsing vertically */
95-
.cm-line:empty::after {
96-
content: "\00a0";
97-
}
98-
}
99-
10096
.cm-line {
10197
display: block;
10298
padding: 0 2px 0 6px;
@@ -398,6 +394,3 @@
398394
font-family: inherit !important;
399395
border: 1px solid transparent;
400396
}
401-
402-
/* vi: ts=2 sw=2 noet
403-
*/

0 commit comments

Comments
 (0)