livebs / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

[PATCH] css to avoid interference with local style #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
you blogger install include inside the html page :
<style>
....
.post div {
 line-height:1.3em;
 ...
}
...
</style>

because this rules is inside the html, and more "selective", it has higher
priority against imported SyntaxHiglighter 'css.
Then it display an ugly grey bar.

I attach a css that work for our case.
I replace :
* every selector .dp-highlighter by div.dp-highlighter
* clear style
/* clear styles */
div.dp-highlighter ol,
div.dp-highlighter ol li,
div.dp-highlighter ol li span 
{
    margin: 0;
    padding: 0;
    border: none;
}

by 
/* clear styles */
div.dp-highlighter *
{
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1em;
}

Regards

Original issue reported on code.google.com by david.bernard.31 on 10 Dec 2007 at 7:50

Attachments: