projects
/
hamn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7ec6be
)
Highlight code/pre blocks in planet posts.
author
Magnus Hagander
<magnus@hagander.net>
Thu, 2 Sep 2010 20:24:31 +0000
(22:24 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Thu, 2 Sep 2010 20:24:31 +0000
(22:24 +0200)
Joshua Drake
www/css/planet.css
patch
|
blob
|
blame
|
history
diff --git
a/www/css/planet.css
b/www/css/planet.css
index f2b4d23b8252d8108cab5edb4a01730bd09e43e6..0a59bce4a7c194b8c536abb9fbe40119f06f71de 100644
(file)
--- a/
www/css/planet.css
+++ b/
www/css/planet.css
@@
-175,3
+175,21
@@
pre {
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
+
+/* Add pretty boxes for code */
+
+div.planetPostContent code {
+ background-color: #ECF1EF;
+ border-width: 5px;
+ border-radius: 5px;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px
+}
+
+div.planetPostContent pre {
+ background-color: #ECF1EF;
+ border-width: 5px;
+ border-radius: 5px;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px
+}