blob: 78612741024b281ccff7caf918359e36b882b3c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
code, pre {
padding: 0 3px 2px;
color: #333;
.font-monospace();
.border-radius(3px);
}
// Inline code
code {
padding: 2px 4px;
color: @adjacent-color;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
.reset-code() {
padding: 0;
color: inherit;
background-color: transparent;
border: 0;
}
// Blocks of code
pre {
display: block;
padding: 8px;
margin: 0 0 9px;
word-break: break-all;
word-wrap: break-word;
white-space: pre;
white-space: pre-wrap;
background-color: #f5f5f5;
border: 1px solid #ccc; // IE8-
border: 1px solid rgba(0,0,0,.15);
.border-radius(4px);
&.prettyprint { margin-bottom: 20px; }
code {
.reset-code();
}
}
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}
blockquote code {
.reset-code();
}
//Pretty print
.com { color: #93a1a1; }
.lit { color: #195f91; }
.pun, .opn, .clo { color: #93a1a1; }
.fun { color: #dc322f; }
.str, .atv { color: #da3f47; }
.kwd, .linenums .tag { color: #1e347b; }
.typ, .atn, .dec, .var { color: teal; }
.pln { color: #48484c; }
.prettyprint {
padding: 8px;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
.prettyprint.linenums {
@linenums-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
.box-shadow(@linenums-shadow);
}
ol.linenums {
margin: 0 0 0 33px; /* IE indents via margin-left */
li {
padding-left: 12px;
color: #bebec5;
line-height: 18px;
text-shadow: 0 1px 0 #fff;
}
}
|