File tree Expand file tree Collapse file tree 3 files changed +43
-34
lines changed Expand file tree Collapse file tree 3 files changed +43
-34
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @primer/css " : patch
3
+ ---
4
+
5
+ Fix ` <sup><a> ` from getting wrapped with ` [ ] `
Original file line number Diff line number Diff line change 1
1
// stylelint-disable selector-max-type
2
2
// stylelint-disable selector-max-compound-selectors
3
3
4
- .markdown-body .footnotes {
5
- font-size : $h6-size ;
6
- color : var (--color-fg-muted );
7
- border-top : $border ;
4
+ .markdown-body {
5
+ [data-footnote-ref ] {
6
+ & ::before {
7
+ content : ' [' ;
8
+ }
8
9
9
- ol {
10
- padding-left : $spacer-3 ;
10
+ & ::after {
11
+ content : ' ]' ;
12
+ }
11
13
}
12
14
13
- li {
14
- position : relative ;
15
- }
15
+ .footnotes {
16
+ font-size : $h6-size ;
17
+ color : var (--color-fg-muted );
18
+ border-top : $border ;
16
19
17
- li :target ::before {
18
- position : absolute ;
19
- top : - $spacer-2 ;
20
- right : - $spacer-2 ;
21
- bottom : - $spacer-2 ;
22
- left : - $spacer-4 ;
23
- pointer-events : none ;
24
- content : ' ' ;
25
- // stylelint-disable-next-line primer/borders
26
- border : 2px $border-style var (--color-accent-emphasis );
27
- border-radius : $border-radius ;
28
- }
20
+ ol {
21
+ padding-left : $spacer-3 ;
22
+ }
29
23
30
- li :target {
31
- color : var (--color-fg-default );
32
- }
24
+ li {
25
+ position : relative ;
26
+ }
27
+
28
+ li :target ::before {
29
+ position : absolute ;
30
+ top : - $spacer-2 ;
31
+ right : - $spacer-2 ;
32
+ bottom : - $spacer-2 ;
33
+ left : - $spacer-4 ;
34
+ pointer-events : none ;
35
+ content : ' ' ;
36
+ // stylelint-disable-next-line primer/borders
37
+ border : 2px $border-style var (--color-accent-emphasis );
38
+ border-radius : $border-radius ;
39
+ }
40
+
41
+ li :target {
42
+ color : var (--color-fg-default );
43
+ }
33
44
34
- .data-footnote-backref g-emoji {
35
- font-family : monospace ;
45
+ .data-footnote-backref g-emoji {
46
+ font-family : monospace ;
47
+ }
36
48
}
37
49
}
Original file line number Diff line number Diff line change 93
93
margin-bottom : 0 ;
94
94
}
95
95
}
96
-
97
- sup > a ::before {
98
- content : ' [' ;
99
- }
100
-
101
- sup > a ::after {
102
- content : ' ]' ;
103
- }
104
96
}
You can’t perform that action at this time.
0 commit comments