Skip to content

Commit 8cbec5c

Browse files
committed
Globally mark out image links
1 parent e089cd9 commit 8cbec5c

File tree

8 files changed

+14
-15
lines changed

8 files changed

+14
-15
lines changed

_sass/addon/commons.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,15 +403,15 @@ footer {
403403
color: var(--link-color);
404404
}
405405

406-
&:not(.img-hyperlink) {
406+
&:not(.img-link) {
407407
@extend %link-color;
408408
@extend %link-underline;
409409
&:hover {
410410
@extend %link-hover;
411411
}
412412
}
413413

414-
&.img-hyperlink {
414+
&.img-link {
415415
@include img;
416416
@include img-caption;
417417
}

assets/js/_commons/img-link.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* Find the image links and mark them
3+
*/
4+
5+
$(function() {
6+
const MARK = "img-link";
7+
$("#main a").has("img").addClass(MARK);
8+
});

assets/js/_utils/img-hyperlink.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

assets/js/dist/categories.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/home.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)