Skip to content

Commit accca1c

Browse files
authored
Merge pull request #222 from Automattic/fix/line-alignment
Fix line alignment for bootstrap themes
2 parents ebdd9b8 + c2ee481 commit accca1c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

syntaxhighlighter3/styles/shCore.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @version
99
* 3.0.83 (July 02 2010)
10-
*
10+
*
1111
* @copyright
1212
* Copyright (C) 2004-2010 Alex Gorbatchev.
1313
*
@@ -95,6 +95,14 @@
9595
.syntaxhighlighter table td.code .container {
9696
position: relative !important;
9797
}
98+
/**
99+
* Resolve conflict with Bootstrap CSS-based themes.
100+
*/
101+
.syntaxhighlighter table td.code .container:after,
102+
.syntaxhighlighter table td.code .container:before {
103+
display: block !important;
104+
content: "";
105+
}
98106
.syntaxhighlighter table td.code .container textarea {
99107
box-sizing: border-box !important;
100108
position: absolute !important;

0 commit comments

Comments
 (0)