Skip to content

Commit 841a247

Browse files
committed
clean up the css
1 parent 44aa1f0 commit 841a247

2 files changed

Lines changed: 19 additions & 16 deletions

File tree

_posts/2015-02-20-test-markdown.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,12 @@ var foo = function(x) {
3939
}
4040
foo(3)
4141
```
42+
43+
And here is some more with line numbers
44+
45+
{% highlight python linenos %}
46+
def bar(x):
47+
return x * 2
48+
49+
print bar(2)
50+
{% endhighlight %}

css/main.css

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,9 @@ table tr td :last-child {
586586
}
587587

588588
/* --- Code blocks --- */
589+
589590
pre {
590-
font-size: 16px;
591+
font-size: 16px !important;
591592
line-height: 1.5em;
592593
}
593594
pre code {
@@ -601,27 +602,20 @@ pre.highlight, .highlight > pre, td.code pre {
601602
background-position: 0px 10px;
602603
border-left: 7px solid #444;
603604
}
605+
code table, code table td, code table th, code table tbody, code table tr,
606+
td.gutter pre {
607+
padding: 0;
608+
border: none;
609+
}
604610
.highlight > pre {
605611
padding: 0;
606-
margin: 0;
607612
}
608613
td.code pre {
609-
border: none;
610-
border-left: 2px solid #444;
614+
border-width: 0 0 0 2px;
615+
border-style: solid;
616+
border-color: #444;
611617
border-radius: 0;
612-
background: transparent!;
613-
}
614-
td.gutter pre {
615-
border: none;
616618
}
617619
td.gutter {
618620
padding-top: 3px;
619621
}
620-
code table {
621-
border-collapse: collapse;
622-
border: none;
623-
}
624-
code table td, code table th, code table tbody, code table tr {
625-
padding: 0;
626-
border: none;
627-
}

0 commit comments

Comments
 (0)