Created
July 4, 2011 08:59
-
-
Save huyz/1063103 to your computer and use it in GitHub Desktop.
wp-syntax.css for Twenty-Ten WP theme
This file contains hidden or 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
#content .wp_syntax { | |
color: #100; | |
background-color: #f9f9f9; | |
border: 1px solid silver; | |
margin: 0 0 1.5em 0; | |
overflow: auto; | |
} | |
/* IE FIX */ | |
#content .wp_syntax { | |
overflow-x: auto; | |
overflow-y: hidden; | |
padding-bottom: expression(this.scrollWidth > this.offsetWidth ? 15 : 0); | |
width: 100%; | |
} | |
#content .wp_syntax table { | |
border-collapse: collapse; | |
margin: 0; | |
} | |
#content .wp_syntax div, #content .wp_syntax td { | |
vertical-align: top; | |
padding: 2px 4px; | |
} | |
#content .wp_syntax .line_numbers { | |
text-align: right; | |
background-color: #def; | |
overflow: visible; | |
} | |
#content .wp_syntax .line_numbers pre { | |
background-color: #def; | |
color: gray; | |
} | |
/* potential overrides for other styles */ | |
#content .wp_syntax pre { | |
margin: 0; | |
padding: 0; | |
width: auto; | |
float: none; | |
clear: none; | |
overflow: visible; | |
font-size: 12px; | |
line-height: 1.333; | |
white-space: pre; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There still remains the problem of the column for line numbers being wider than it should: