Browse code

added styles for syntax highlighting

B Mathis authored on 12/11/2009 at 02:18:37
Showing 2 changed files
... ...
@@ -1,4 +1,5 @@
1 1
 @import partials/blog.sass
2
+@import partials/syntax.sass
2 3
 @import partials/search.sass
3 4
 @import partials/sidebar.sass
4 5
 @import partials/twitter.sass
5 6
\ No newline at end of file
6 7
new file mode 100644
... ...
@@ -0,0 +1,240 @@
0
+pre
1
+  color: #ccc
2
+  font-size: 13px
3
+  background: #222
4
+  padding: 0 15px 0 0
5
+  line-height: 1.625em
6
+  border: #aaa 1px solid
7
+  overflow-x: auto
8
+  .lineno
9
+    color: #888
10
+    background: #e3e3e3
11
+    position: relative
12
+    line-height: 180%
13
+    display: inline-block
14
+    padding: 0 10px
15
+    &:first-child
16
+      padding-top: 12px
17
+    &:last-child
18
+      padding-bottom: 12px
19
+
20
+// based on: http://github.com/mojombo/tpw/raw/master/css/syntax.css
21
+.editor
22
+  background: rgb(0,22,41)
23
+  line-height: 1.25
24
+
25
+pre.console
26
+  background-color: black
27
+  color= lighten(#008000, 25)
28
+  letter-spacing: 1px
29
+  padding: 0.5em
30
+  .prompt
31
+    color= lighten(#000080, 50)
32
+    &:before
33
+      :color white
34
+      content: "["
35
+    &:after
36
+      :color white
37
+      content: "]"
38
+  .stdin
39
+    font-weight: bold
40
+    color= lighten(#008000, 75)
41
+
42
+.highlight
43
+  padding: 0.5em
44
+  color: white
45
+  // Comment
46
+  .c
47
+    color: #999988
48
+    font-style: italic
49
+  // Error
50
+  .err
51
+    color: #a61717
52
+    background-color: #e3d2d2
53
+  // Name
54
+  .n
55
+    color: white
56
+  // Keyword
57
+  .k
58
+    color: rgb(255, 157, 0)
59
+  // Paren
60
+  .p
61
+    color= darken(#FF9D00, 33)
62
+  // Operator
63
+  .o
64
+    color: rgb(255, 157, 0)
65
+  // Comment.Multiline
66
+  .cm
67
+    color: #999988
68
+    font-style: italic
69
+  // Comment.Preproc
70
+  .cp
71
+    color: #999999
72
+  // Comment.Single
73
+  .c1
74
+    color: #999988
75
+    font-style: italic
76
+  // Comment.Special
77
+  .cs
78
+    color: #999999
79
+    font-style: italic
80
+  // Generic.Deleted
81
+  .gd
82
+    color: #000000
83
+    background-color: #ffdddd
84
+  // Generic.Deleted.Specific
85
+  .gd .x
86
+    color: #000000
87
+    background-color: #ffaaaa
88
+  // Generic.Emph
89
+  .ge
90
+    font-style: italic
91
+  // Generic.Error
92
+  .gr
93
+    color: #aa0000
94
+  // Generic.Heading
95
+  .gh
96
+    color: #999999
97
+  // Generic.Inserted
98
+  .gi
99
+    color: #000000
100
+    background-color: #ddffdd
101
+  // Generic.Inserted.Specific
102
+  .gi .x
103
+    color: #000000
104
+    background-color: #aaffaa
105
+  // Generic.Output
106
+  .go
107
+    color: #888888
108
+  // Generic.Prompt
109
+  .gp
110
+    color: #555555
111
+  // Generic.Strong
112
+  .gs
113
+    color: white
114
+  // Generic.Subheading
115
+  .gu
116
+    color: #aaaaaa
117
+  // Generic.Traceback
118
+  .gt
119
+    color: #aa0000
120
+  // Keyword.Constant
121
+  .kc
122
+    color: white
123
+  // Keyword.Declaration
124
+  .kd
125
+    color: white
126
+  // Keyword.Pseudo
127
+  .kp
128
+    color: white
129
+  // Keyword.Reserved
130
+  .kr
131
+    color: white
132
+  // Keyword.Type
133
+  .kt
134
+    color: #445588
135
+  // Literal.Number
136
+  .m
137
+    color: rgb(255, 98, 140)
138
+  // Literal.String
139
+  .s
140
+    color: #d14
141
+  // Name.Attribute
142
+  .na
143
+    color: #008080
144
+  // Name.Builtin
145
+  .nb
146
+    color= darken(rgb(128, 255, 187), 20)
147
+  // Name.Class
148
+  .nc
149
+    color= darken(rgb(128, 255, 187), 20)
150
+  // Name.Constant
151
+  .no
152
+    color: rgb(128, 255, 187)
153
+  // Name.Entity
154
+  .ni
155
+    color: #800080
156
+  // Name.Exception
157
+  .ne
158
+    color: rgb(255,221, 0)
159
+  // Name.Function
160
+  .nf
161
+    color: rgb(255,221, 0)
162
+  // Name.Namespace
163
+  .nn
164
+    color: #555555
165
+  // Name.Tag
166
+  .nt
167
+    color: white
168
+  // Name.Variable
169
+  .nv
170
+    color: #008080
171
+  // Operator.Word
172
+  .ow
173
+    color: white
174
+  // Text.Whitespace
175
+  .w
176
+    color: #bbbbbb
177
+  // Literal.Number
178
+  .nl
179
+    color: rgb(255, 98, 140)
180
+  // Literal.Number.Float
181
+  .mf
182
+    color: rgb(255, 98, 140)
183
+  // Literal.Number.Hex
184
+  .mh
185
+    color: rgb(255, 98, 140)
186
+  // Literal.Number.Integer
187
+  .mi
188
+    color: rgb(255, 98, 140)
189
+  // Literal.Number.Oct
190
+  .mo
191
+    color: rgb(255, 98, 140)
192
+  // Literal.String.Backtick
193
+  .sb
194
+    color: rgb(58,217,0)
195
+  // Literal.String.Char
196
+  .sc
197
+    color: rgb(58,217,0)
198
+  // Literal.String.Doc
199
+  .sd
200
+    color: rgb(58,217,0)
201
+  // Literal.String.Double
202
+  .s2
203
+    color: rgb(58,217,0)
204
+  // Literal.String.Escape
205
+  .se
206
+    color: rgb(58,217,0)
207
+  // Literal.String.Heredoc
208
+  .sh
209
+    color: rgb(58,217,0)
210
+  // Literal.String.Interpol
211
+  .si
212
+    color: rgb(158,255,128)
213
+  // Literal.String.Other
214
+  .sx
215
+    color: rgb(58,217,0)
216
+  // Literal.String.Regex
217
+  .sr
218
+    color: #009926
219
+  // Literal.String.Single
220
+  .s1
221
+    color: rgb(58,217,0)
222
+  // Literal.String.Symbol
223
+  .ss
224
+    color: rgb(255, 98, 140)
225
+  // Name.Builtin.Pseudo
226
+  .bp
227
+    color: #999999
228
+  // Name.Variable.Class
229
+  .vc
230
+    color: #008080
231
+  // Name.Variable.Global
232
+  .vg
233
+    color: #008080
234
+  // Name.Variable.Instance
235
+  .vi
236
+    color: #008080
237
+  // Literal.Number.Integer.Long
238
+  .il
239
+    color: rgb(255, 98, 140)