-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathfootnotes.scss
59 lines (50 loc) · 1.45 KB
/
footnotes.scss
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
// stylelint-disable selector-max-type
// stylelint-disable selector-max-compound-selectors
.markdown-body {
[data-footnote-ref] {
&::before {
content: '[';
}
&::after {
content: ']';
}
}
.footnotes {
// stylelint-disable-next-line primer/typography
font-size: $h6-size;
color: var(--fgColor-muted, var(--color-fg-muted));
// stylelint-disable-next-line primer/borders, primer/colors
border-top: $border;
ol {
padding-left: var(--base-size-16);
ul {
display: inline-block;
padding-left: var(--base-size-16);
margin-top: var(--base-size-16);
}
}
li {
position: relative;
}
li:target::before {
position: absolute;
top: calc(var(--base-size-8) * -1);
right: calc(var(--base-size-8) * -1);
bottom: calc(var(--base-size-8) * -1);
left: calc(var(--base-size-24) * -1);
pointer-events: none;
content: '';
// stylelint-disable-next-line primer/borders, primer/colors, declaration-property-value-no-unknown
border: 2px $border-style var(--borderColor-accent-emphasis, var(--color-accent-emphasis));
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
}
li:target {
color: var(--fgColor-default, var(--color-fg-default));
}
.data-footnote-backref g-emoji {
// stylelint-disable-next-line primer/typography
font-family: monospace;
}
}
}