Permalink
Browse files

Swap out CodeRay for Pygments styling

* Still needs some tweaking.

Signed-off-by: Alex Coles <alex@alexcolesportfolio.com>
  • Loading branch information...
1 parent 6f27760 commit 2d01d61e11ac4e8fb7e133b5991b5e3354f36c88 @myabc myabc committed Nov 15, 2009
Showing with 69 additions and 31 deletions.
  1. +65 −0 css/code.css
  2. +0 −27 css/coderay.css
  3. +4 −4 css/site.css
View
@@ -0,0 +1,65 @@
+div.highlight pre .hll { background-color: #ffffcc }
+div.highlight pre {
+ margin: 0;
+ padding: 0;
+ }
+div.highlight pre .c { color:#BC9358; font-style: italic; } /* Comment */
+div.highlight pre .err { border: 1px solid #FF0000 } /* Error */
+div.highlight pre .k { color: #CB7832; font-weight: bold } /* Keyword */
+div.highlight pre .o { color: #666666 } /* Operator */
+div.highlight pre .cm { color: #BC9358; font-style: italic } /* Comment.Multiline */
+div.highlight pre .cp { color: #007020 } /* Comment.Preproc */
+div.highlight pre .c1 { color: #BC9358; font-style: italic } /* Comment.Single */
+div.highlight pre .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
+div.highlight pre .gd { color: #A00000 } /* Generic.Deleted */
+div.highlight pre .ge { font-style: italic } /* Generic.Emph */
+div.highlight pre .gr { color: #FF0000 } /* Generic.Error */
+div.highlight pre .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+div.highlight pre .gi { color: #00A000 } /* Generic.Inserted */
+div.highlight pre .go { color: #808080 } /* Generic.Output */
+div.highlight pre .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+div.highlight pre .gs { font-weight: bold } /* Generic.Strong */
+div.highlight pre .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+div.highlight pre .gt { color: #0040D0 } /* Generic.Traceback */
+div.highlight pre .kc { color: #CB7832; font-weight: bold } /* Keyword.Constant */
+div.highlight pre .kd { color: #CB7832; font-weight: bold } /* Keyword.Declaration */
+div.highlight pre .kn { color: #CB7832; font-weight: bold } /* Keyword.Namespace */
+div.highlight pre .kp { color: #CB7832 } /* Keyword.Pseudo */
+div.highlight pre .kr { color: #CB7832; font-weight: bold } /* Keyword.Reserved */
+div.highlight pre .kt { color: #902000 } /* Keyword.Type */
+div.highlight pre .m { color: #40a070 } /* Literal.Number */
+div.highlight pre .s { color: #4070a0 } /* Literal.String */
+div.highlight pre .na { color: #4070a0 } /* Name.Attribute */
+div.highlight pre .nb { color: #fff } /* Name.Builtin */
+div.highlight pre .nc { color: #fff; font-weight: bold } /* Name.Class */
+div.highlight pre .no { color: #fff } /* Name.Constant */
+div.highlight pre .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+div.highlight pre .ni { color: #d55537; font-weight: bold } /* Name.Entity */
+div.highlight pre .ne { color: #007020 } /* Name.Exception */
+div.highlight pre .nf { color: #06287e } /* Name.Function */
+div.highlight pre .nl { color: #002070; font-weight: bold } /* Name.Label */
+div.highlight pre .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+div.highlight pre .nt { color: #062873; font-weight: bold } /* Name.Tag */
+div.highlight pre .nv { color: #D0CFFE } /* Name.Variable */
+div.highlight pre .ow { color: #007020; font-weight: bold } /* Operator.Word */
+div.highlight pre .w { color: #bbbbbb } /* Text.Whitespace */
+div.highlight pre .mf { color: #A4C260 } /* Literal.Number.Float */
+div.highlight pre .mh { color: #A4C260 } /* Literal.Number.Hex */
+div.highlight pre .mi { color: #A4C260 } /* Literal.Number.Integer */
+div.highlight pre .mo { color: #A4C260 } /* Literal.Number.Oct */
+div.highlight pre .sb { color: #A4C260 } /* Literal.String.Backtick */
+div.highlight pre .sc { color: #A4C260 } /* Literal.String.Char */
+div.highlight pre .sd { color: #A4C260; font-style: italic } /* Literal.String.Doc */
+div.highlight pre .s2 { color: #A4C260 } /* Literal.String.Double */
+div.highlight pre .se { color: #A4C260; font-weight: bold } /* Literal.String.Escape */
+div.highlight pre .sh { color: #A4C260 } /* Literal.String.Heredoc */
+div.highlight pre .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
+div.highlight pre .sx { color: #c65d09 } /* Literal.String.Other */
+div.highlight pre .sr { color: #A4C260 } /* Literal.String.Regex */
+div.highlight pre .s1 { color: #4070a0 } /* Literal.String.Single */
+div.highlight pre .ss { color: #6C9CBD } /* Literal.String.Symbol */
+div.highlight pre .bp { color: #007020 } /* Name.Builtin.Pseudo */
+div.highlight pre .vc { color: #D0CFFE } /* Name.Variable.Class */
+div.highlight pre .vg { color: #D0CFFE } /* Name.Variable.Global */
+div.highlight pre .vi { color: #D0CFFE } /* Name.Variable.Instance */
+div.highlight pre .il { color: #40a070 } /* Literal.Number.Integer.Long */
View
@@ -1,27 +0,0 @@
-/*
- Taken from http://railscasts.com/stylesheets/coderay.css
- Thanks! :)
-*/
-.CodeRay pre {
- margin: 0px;
- padding: 0px;
-}
-
-.CodeRay .an { color:#E7BE69 } /* html attribute */
-.CodeRay .c { color:#BC9358; font-style: italic; } /* comment */
-.CodeRay .ch { color:#509E4F } /* escaped character */
-.CodeRay .cl { color:#FFF } /* class */
-.CodeRay .co { color:#FFF } /* constant */
-.CodeRay .fl { color:#A4C260 } /* float */
-.CodeRay .fu { color:#FFC56D } /* function */
-.CodeRay .gv { color:#D0CFFE } /* global variable */
-.CodeRay .i { color:#A4C260 } /* integer */
-.CodeRay .il { background:#151515 } /* inline code */
-.CodeRay .iv { color:#D0CFFE } /* instance variable */
-.CodeRay .pp { color:#E7BE69 } /* doctype */
-.CodeRay .r { color:#CB7832 } /* keyword */
-.CodeRay .rx { color:#A4C260 } /* regex */
-.CodeRay .s { color:#A4C260 } /* string */
-.CodeRay .sy { color:#6C9CBD } /* symbol */
-.CodeRay .ta { color:#E7BE69 } /* html tag */
-.CodeRay .pc { color:#6C9CBD } /* boolean */
View
@@ -81,7 +81,7 @@ h1,
h2,
h3,
p,
-.CodeRay,
+.highlight,
.puff,
ul,
dl,
@@ -113,7 +113,7 @@ a:link {
a:visited {
color:#cccccc;
}
-.CodeRay {
+.highlight {
background:#0C182A;
border:1px solid #26518A;
padding:1em 15px;
@@ -144,7 +144,7 @@ blockquote {
#home h2,
#home h3,
#home p,
-#home .CodeRay,
+#home .highlight,
#home .puff {
margin-right:240px;
}
@@ -483,7 +483,7 @@ table tr td.pointer {
width: 358px;
padding-top: 1em;
}
-.changeSummary .CodeRay {
+.changeSummary .highlight {
width: 298px;
margin: 0 30px 0 0;
}

0 comments on commit 2d01d61

Please sign in to comment.