File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 748
748
}
749
749
750
750
.markdown-body .octicon {
751
- font : normal normal 16px octicons;
751
+ font : normal normal 16px octicons-anchor ;
752
752
line-height : 1 ;
753
753
display : inline-block;
754
754
text-decoration : none;
Original file line number Diff line number Diff line change @@ -62,6 +62,17 @@ function cleanupCss(str) {
62
62
el . selectors . shift ( ) ;
63
63
}
64
64
65
+ // rename the .octoicons font
66
+ if ( el . selectors [ 0 ] === '.octicon' ) {
67
+ el . declarations = el . declarations . map ( function ( el ) {
68
+ if ( el . property === 'font' ) {
69
+ el . value += '-anchor' ;
70
+ }
71
+
72
+ return el ;
73
+ } ) ;
74
+ }
75
+
65
76
if ( el . selectors . length === 1 && / ^ (?: h t m l | b o d y ) $ / . test ( el . selectors [ 0 ] ) ) {
66
77
el . declarations = el . declarations . filter ( function ( declaration ) {
67
78
// remove everything from body/html other than these
@@ -78,7 +89,6 @@ function cleanupCss(str) {
78
89
selector = '.markdown-body' ;
79
90
}
80
91
81
-
82
92
if ( ! / \. m a r k d o w n - b o d y / . test ( selector ) ) {
83
93
selector = '.markdown-body ' + selector ;
84
94
}
You can’t perform that action at this time.
0 commit comments