blob: bdb73eebd3ebb414e067184d736d7b717e6a23eb (
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
|
// Codes
code {
.label-base();
.label-variant(@code-color, lighten(@code-color, 33%));
}
.code {
border-radius: @border-radius;
color: @body-font-color;
line-height: 2rem;
position: relative;
&::before {
content: attr(data-lang);
color: @gray-color;
font-size: @font-size-sm;
position: absolute;
right: 1rem;
top: .2rem;
}
code {
background: @bg-color;
color: inherit;
display: block;
line-height: inherit;
overflow-x: auto;
padding: 2rem;
width: 100%;
}
}
|