Merge pull request #3887 from evazion/fix-3439
Fix #3439: Identify external links in DText.
This commit is contained in:
@@ -87,6 +87,18 @@ div.prose {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://fontawesome.com/how-to-use/on-the-web/advanced/css-pseudo-elements
|
||||||
|
a.dtext-external-link::after {
|
||||||
|
display: none;
|
||||||
|
font: 900 1em "Font Awesome 5 Free";
|
||||||
|
content: "\f35d"; // https://fontawesome.com/icons/external-link-alt?style=solid
|
||||||
|
}
|
||||||
|
|
||||||
|
a.dtext-external-link svg {
|
||||||
|
width: 0.75em;
|
||||||
|
padding-left: 0.25em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dtext-preview {
|
div.dtext-preview {
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
"url" : "<%= root_url %>"
|
"url" : "<%= root_url %>"
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script>
|
<script defer data-search-pseudo-elements src="https://use.fontawesome.com/releases/v5.3.1/js/all.js" integrity="sha384-kW+oWsYx3YpxvjtZjFXqazFpA7UP/MbiY4jvs+RWZo2+N94PFZ36T6TFkc9O3qoB" crossorigin="anonymous"></script>
|
||||||
<script>
|
<script>
|
||||||
if (typeof window.Danbooru !== "object") {
|
if (typeof window.Danbooru !== "object") {
|
||||||
window.Danbooru = {};
|
window.Danbooru = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user