_code.scss
854 Bytes
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
code,
kbd,
pre,
samp {
font-family: $font-fam-mono;
}
code {
background-color: $white-bg;
border: 1px solid $black-bg;
border-radius: 4px;
color: $palette-red-dark;
font-size: 75%;
line-height: 1;
padding: 2px 4px;
}
kbd {
background-color: $black-text;
border-radius: 4px;
color: $white;
font-size: 75%;
padding: 2px 4px;
kbd {
font-size: 100%;
font-weight: 700;
padding: 0;
}
}
pre {
background-color: $white-bg;
border: 1px solid $black-bg;
border-radius: 2px;
color: $black-text;
display: block;
font-size: $font-size-h6;
line-height: $line-height-h6;
margin: $line-height 0 ;
padding: ($line-height / 2) ($grid-gutter / 2);
word-break: break-all;
word-wrap: break-word;
code {
background-color: transparent;
border-radius: 0;
color: inherit;
font-size: inherit;
padding: 0;
white-space: pre-wrap;
}
}