Skip to content

Instantly share code, notes, and snippets.

@huyz
Created July 4, 2011 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huyz/1063103 to your computer and use it in GitHub Desktop.
Save huyz/1063103 to your computer and use it in GitHub Desktop.
wp-syntax.css for Twenty-Ten WP theme
#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;
}
@huyz
Copy link
Author

huyz commented Jul 4, 2011

There still remains the problem of the column for line numbers being wider than it should:

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment