From 7d986e0f2e78ca70afafaafe8e45a968240746f2 Mon Sep 17 00:00:00 2001 From: Dmitry Merkushin Date: Tue, 16 Nov 2021 11:47:38 +0300 Subject: [PATCH 1/3] Fix line alignment for bootstrap themes Remove styling for the code container that Bootstrap accidentally adds. --- syntaxhighlighter3/styles/shCore.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/syntaxhighlighter3/styles/shCore.css b/syntaxhighlighter3/styles/shCore.css index 802b2f7..717202d 100644 --- a/syntaxhighlighter3/styles/shCore.css +++ b/syntaxhighlighter3/styles/shCore.css @@ -7,7 +7,7 @@ * * @version * 3.0.83 (July 02 2010) - * + * * @copyright * Copyright (C) 2004-2010 Alex Gorbatchev. * @@ -95,6 +95,11 @@ .syntaxhighlighter table td.code .container { position: relative !important; } +.syntaxhighlighter table td.code .container:after, +.syntaxhighlighter table td.code .container:before { + display: block !important; + content: ""; +} .syntaxhighlighter table td.code .container textarea { box-sizing: border-box !important; position: absolute !important; From 04c28838ebc1563271857250fa1569dd47e9d04a Mon Sep 17 00:00:00 2001 From: Dmitry Merkushin Date: Fri, 19 Nov 2021 16:54:04 +0300 Subject: [PATCH 2/3] Add a doc-block to describe purpose of the added rule --- syntaxhighlighter3/styles/shCore.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syntaxhighlighter3/styles/shCore.css b/syntaxhighlighter3/styles/shCore.css index 717202d..f148ad9 100644 --- a/syntaxhighlighter3/styles/shCore.css +++ b/syntaxhighlighter3/styles/shCore.css @@ -95,6 +95,9 @@ .syntaxhighlighter table td.code .container { position: relative !important; } +/** + * The following rule was added to resolve conflict with themes that use Bootstrap CSS. + */ .syntaxhighlighter table td.code .container:after, .syntaxhighlighter table td.code .container:before { display: block !important; From c2ee4815811d5593ac409f32897cd6475d73e42e Mon Sep 17 00:00:00 2001 From: Dmitry Merkushin Date: Fri, 19 Nov 2021 18:03:32 +0300 Subject: [PATCH 3/3] Rephrase doc-block --- syntaxhighlighter3/styles/shCore.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntaxhighlighter3/styles/shCore.css b/syntaxhighlighter3/styles/shCore.css index f148ad9..fc96a13 100644 --- a/syntaxhighlighter3/styles/shCore.css +++ b/syntaxhighlighter3/styles/shCore.css @@ -96,7 +96,7 @@ position: relative !important; } /** - * The following rule was added to resolve conflict with themes that use Bootstrap CSS. + * Resolve conflict with Bootstrap CSS-based themes. */ .syntaxhighlighter table td.code .container:after, .syntaxhighlighter table td.code .container:before {