Skip to content

Commit ab815bb

Browse files
committed
update css for external links
1 parent 8bcf3cb commit ab815bb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

assets/css/global.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ pre > .hljs {
115115
}
116116

117117
/* External link */
118-
.u-exlink::after {
118+
a[href^="http://"]:after,
119+
a[href^="https://"]:after {
119120
content: '';
120121
position: relative;
121122
display: inline-block;
@@ -127,14 +128,16 @@ pre > .hljs {
127128
background: url(http://github.com/..%3Cspan%20class=pl-c1%3E/%3C/span%3Eimg/link-external.svg) no-repeat top right;
128129
background-size: auto 100%;
129130
}
130-
.u-exlink:hover,
131-
.u-exlink:focus {
131+
132+
a[href^="http://"]:hover,
133+
a[href^="https://"]:hover,
134+
a[href^="http://"]:focus,
135+
a[href^="https://"]:focus {
132136
cursor: pointer;
133137
text-decoration: underline;
134138
outline: none;
135139
}
136140

137-
138141
/* Content ------------------ */
139142

140143
.content {

0 commit comments

Comments
 (0)