Highlight code/pre blocks in planet posts.
authorMagnus Hagander <magnus@hagander.net>
Thu, 2 Sep 2010 20:24:31 +0000 (22:24 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 2 Sep 2010 20:24:31 +0000 (22:24 +0200)
Joshua Drake

www/css/planet.css

index f2b4d23b8252d8108cab5edb4a01730bd09e43e6..0a59bce4a7c194b8c536abb9fbe40119f06f71de 100644 (file)
@@ -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
+}