blob: a19c57707c5bb3ed4c32d56b044d52f41f06610c (
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
|
// ==============================
// Post code
// ==============================
// normal <code> style
code {
padding: 3px 7px;
background: $code-background;
border-radius: 4px;
color: $code-color;
}
code, pre {
font-size: $code-font-size;
font-family: $code-font-family;
}
// chroma code block style
.highlight > .chroma {
margin: 1em 0;
overflow-x: auto;
position: relative;
border: 2px solid #dddddd;
line-height: 1.6;
code {
padding: 0; /* remove normal code padding */
color: inherit;
}
pre {
margin: 0; /* remove normal pre margin */
}
table {
position: relative;
padding: 0.8em 0;
&::after {
position: absolute;
top: 0;
right: 0;
padding: 0 7px;
font-size: 0.8em;
font-weight: bold;
color: darken($gray, 10%);
// background: darken($code-background, 3%);
content: 'Code';
}
}
> table::after {
content: attr(data-lang);
text-transform: capitalize;
}
.lnt {
color: $gray;
}
}
@import '_chroma_highlight';
|