blob: fbd2d167d9c6046f708c3be5e6127963709d0cd8 (
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
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
|
// stylelint-disable selector-max-type
.markdown-body {
// Inline code snippets
code,
tt {
// stylelint-disable-next-line primer/spacing
padding: 0.2em 0.4em;
margin: 0;
// stylelint-disable-next-line primer/typography
font-size: 85%;
// stylelint-disable-next-line primer/colors
background-color: rgba($black, 0.05);
border-radius: $border-radius;
br { display: none; }
}
del code { text-decoration: inherit; }
pre {
word-wrap: normal;
// Code tags within code blocks (<pre>s)
> code {
padding: 0;
margin: 0;
// stylelint-disable-next-line primer/typography
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
}
.highlight {
margin-bottom: $spacer-3;
pre {
margin-bottom: 0;
word-break: normal;
}
}
.highlight pre,
pre {
padding: $spacer-3;
overflow: auto;
// stylelint-disable-next-line primer/typography
font-size: 85%;
// stylelint-disable-next-line primer/typography
line-height: 1.45;
background-color: $bg-gray;
border-radius: $border-radius;
}
pre code,
pre tt {
display: inline;
max-width: auto;
padding: 0;
margin: 0;
overflow: visible;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
}
|