Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix line alignment for bootstrap themes #222

Merged
merged 3 commits into from
Nov 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion syntaxhighlighter3/styles/shCore.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @version
* 3.0.83 (July 02 2010)
*
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for documentation purposes:

I thought it was a vendor file, but it seems there are some other changes that were applied to this file already, like this one: 9fc4a58

So probably it's not a big deal to change this file. Also, since that lib is not being maintained anymore, probably we won't have new versions to update this file. :)

* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
Expand Down Expand Up @@ -95,6 +95,14 @@
.syntaxhighlighter table td.code .container {
position: relative !important;
}
/**
* Resolve conflict with Bootstrap CSS-based themes.
*/
.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;
Expand Down