blob: a5be02e462bed3ee16178408a3b33a029cee01d2 (
plain) (
blame)
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 {
background: @core-bg-color;
color: @code-color;
.label-base();
}
.code {
border-radius: @border-radius;
color: @core-grey-color;
line-height: 2rem;
position: relative;
&::before {
content: attr(data-lang);
color: @control-color;
font-size: 1.2rem;
position: absolute;
right: 1rem;
top: .2rem;
}
code {
color: inherit;
display: block;
line-height: inherit;
overflow-x: auto;
padding: 2rem;
width: 100%;
}
}
|