Last active
December 20, 2015 21:59
-
-
Save abahgat/4464280 to your computer and use it in GitHub Desktop.
CSS to make source code on wordpress.com display like the code examples in the Python documentation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.syntaxhighlighter { | |
border-radius: 3px; | |
border: 1px solid #AC9!important; | |
} | |
div.syntaxhighlighter, div.syntaxhighlighter div, div.syntaxhighlighter code, div.syntaxhighlighter table, div.syntaxhighlighter table td, div.syntaxhighlighter table tr, div.syntaxhighlighter table tbody { | |
font: 13px "Courier 10 Pitch", Courier, monospace!important; | |
} | |
div.syntaxhighlighter .line.alt1 { | |
background-color: #EFC!important; | |
} | |
div.syntaxhighlighter .line.alt2 { | |
background-color: #EFC!important; | |
} | |
div.syntaxhighlighter .line.highlighted.alt1, div.syntaxhighlighter .line.highlighted.alt2 { | |
background-color: #EFC!important; | |
} | |
div.syntaxhighlighter .keyword { | |
color: #007020!important; | |
} | |
div.syntaxhighlighter .value { | |
color: #208050!important; | |
} | |
div.syntaxhighlighter .string,div.syntaxhighlighter .string a { | |
color: #4070A0!important; | |
} | |
div.syntaxhighlighter .comments,div.syntaxhighlighter .comments a { | |
color: #408090!important; | |
font-style: italic!important; | |
} | |
div.syntaxhighlighter .functions { | |
color: #06287e!important; | |
} | |
div.syntaxhighlighter .plain,div.syntaxhighlighter .plain a { | |
color: #333!important; | |
} | |
div.syntaxhighlighter .line.highlighted .content { | |
border-left-color: #c65d09!important; | |
} | |
div.syntaxhighlighter .line.highlighted .content code { | |
font-weight: bold!important; | |
} | |
div.syntaxhighlighter .color1, div.syntaxhighlighter .color1 a { | |
color: #007020!important; | |
} | |
/* add a proper padding to sources */ | |
div.syntaxhighlighter .line:first-child td { | |
padding-top: .3em!important; | |
} | |
div.syntaxhighlighter .line:last-child td { | |
padding-bottom: .3em!important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment