annotate static/css/code/borland.less @ 104:7d753658dc0e

Add line-number alignment for snippet display Now, the line number lines up with the line itself, even if the line is longer than the width of the box and even if you zoom in. Since this change removes the need for the toggle-wordwrap feature, that has been removed. Also, the line numbers are now right-aligned, and the pre tags have been removed, allowing for neater indentation in the template file. (The useful attributes of <pre> are now being applied via CSS.) There is one minor cosmetic issue: the corners of the snippet display box look a bit fuzzy when the background of the box is dark. Not quite sure how to fix it at the moment.
author dellsystem <ilostwaldo@gmail.com>
date Tue, 11 Sep 2012 17:42:32 -0400
parents f872c643b056
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
104
7d753658dc0e Add line-number alignment for snippet display
dellsystem <ilostwaldo@gmail.com>
parents: 102
diff changeset
1 .snippet &.borland {
102
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
2 .hll { background-color: #ffffcc }
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
3 .c { color: #008800; font-style: italic } /* Comment */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
4 .err { color: #a61717; background-color: #e3d2d2 } /* Error */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
5 .k { color: #000080; font-weight: bold } /* Keyword */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
6 .cm { color: #008800; font-style: italic } /* Comment.Multiline */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
7 .cp { color: #008080 } /* Comment.Preproc */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
8 .c1 { color: #008800; font-style: italic } /* Comment.Single */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
9 .cs { color: #008800; font-weight: bold } /* Comment.Special */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
10 .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
11 .ge { font-style: italic } /* Generic.Emph */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
12 .gr { color: #aa0000 } /* Generic.Error */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
13 .gh { color: #999999 } /* Generic.Heading */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
14 .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
15 .go { color: #888888 } /* Generic.Output */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
16 .gp { color: #555555 } /* Generic.Prompt */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
17 .gs { font-weight: bold } /* Generic.Strong */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
18 .gu { color: #aaaaaa } /* Generic.Subheading */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
19 .gt { color: #aa0000 } /* Generic.Traceback */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
20 .kc { color: #000080; font-weight: bold } /* Keyword.Constant */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
21 .kd { color: #000080; font-weight: bold } /* Keyword.Declaration */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
22 .kn { color: #000080; font-weight: bold } /* Keyword.Namespace */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
23 .kp { color: #000080; font-weight: bold } /* Keyword.Pseudo */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
24 .kr { color: #000080; font-weight: bold } /* Keyword.Reserved */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
25 .kt { color: #000080; font-weight: bold } /* Keyword.Type */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
26 .m { color: #0000FF } /* Literal.Number */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
27 .s { color: #0000FF } /* Literal.String */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
28 .na { color: #FF0000 } /* Name.Attribute */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
29 .nt { color: #000080; font-weight: bold } /* Name.Tag */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
30 .ow { font-weight: bold } /* Operator.Word */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
31 .w { color: #bbbbbb } /* Text.Whitespace */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
32 .mf { color: #0000FF } /* Literal.Number.Float */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
33 .mh { color: #0000FF } /* Literal.Number.Hex */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
34 .mi { color: #0000FF } /* Literal.Number.Integer */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
35 .mo { color: #0000FF } /* Literal.Number.Oct */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
36 .sb { color: #0000FF } /* Literal.String.Backtick */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
37 .sc { color: #800080 } /* Literal.String.Char */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
38 .sd { color: #0000FF } /* Literal.String.Doc */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
39 .s2 { color: #0000FF } /* Literal.String.Double */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
40 .se { color: #0000FF } /* Literal.String.Escape */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
41 .sh { color: #0000FF } /* Literal.String.Heredoc */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
42 .si { color: #0000FF } /* Literal.String.Interpol */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
43 .sx { color: #0000FF } /* Literal.String.Other */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
44 .sr { color: #0000FF } /* Literal.String.Regex */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
45 .s1 { color: #0000FF } /* Literal.String.Single */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
46 .ss { color: #0000FF } /* Literal.String.Symbol */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
47 .il { color: #0000FF } /* Literal.Number.Integer.Long */
f872c643b056 Updates to snippet functionality (see details)
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
48 }