From e8f9bf608ff85324d2e113b47b48f19ee146c4a1 Mon Sep 17 00:00:00 2001 From: bouncepaw Date: Thu, 17 Dec 2020 18:33:07 +0500 Subject: [PATCH] Draw rocketlink arrows with svg --- templates/asset.qtpl.go | 4 ++-- templates/default.css | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/asset.qtpl.go b/templates/asset.qtpl.go index dc09918..0be6bb6 100644 --- a/templates/asset.qtpl.go +++ b/templates/asset.qtpl.go @@ -56,8 +56,8 @@ article pre.codeblock {background-color:#eee; padding:.5rem; white-space: pre-wr .transclusion__link {display: block; text-align: right; font-style: italic; margin-top: .5rem; margin-right: .25rem; color: black; text-decoration: none;} .transclusion__link::before {content: "⇐ ";} -.launchpad { position: relative; list-style: none; } -.launchpad li::before { content: '⇒'; position: absolute; left: 0; } +/* Derived from https://commons.wikimedia.org/wiki/File:U%2B21D2.svg */ +.launchpad__entry { list-style-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.0' width='25' height='12'%3E%3Cg transform='scale(0.7,0.8) translate(-613.21429,-421)'%3E%3Cpath d='M 638.06773,429.49751 L 631.01022,436.87675 L 630.1898,436.02774 L 632.416,433.30375 L 613.46876,433.30375 L 613.46876,431.66382 L 633.82089,431.66382 L 635.57789,429.5261 L 633.79229,427.35979 L 613.46876,427.35979 L 613.46876,425.71985 L 632.416,425.71985 L 630.1898,422.99587 L 631.01022,422.08788 L 638.06773,429.49751 z '/%3E%3C/g%3E%3C/svg%3E"); } .binary-container_with-img img, .binary-container_with-video video, diff --git a/templates/default.css b/templates/default.css index bc1c814..edddd1a 100644 --- a/templates/default.css +++ b/templates/default.css @@ -31,8 +31,8 @@ article pre.codeblock {background-color:#eee; padding:.5rem; white-space: pre-wr .transclusion__link {display: block; text-align: right; font-style: italic; margin-top: .5rem; margin-right: .25rem; color: black; text-decoration: none;} .transclusion__link::before {content: "⇐ ";} -.launchpad { position: relative; list-style: none; } -.launchpad li::before { content: '⇒'; position: absolute; left: 0; } +/* Derived from https://commons.wikimedia.org/wiki/File:U%2B21D2.svg */ +.launchpad__entry { list-style-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.0' width='25' height='12'%3E%3Cg transform='scale(0.7,0.8) translate(-613.21429,-421)'%3E%3Cpath d='M 638.06773,429.49751 L 631.01022,436.87675 L 630.1898,436.02774 L 632.416,433.30375 L 613.46876,433.30375 L 613.46876,431.66382 L 633.82089,431.66382 L 635.57789,429.5261 L 633.79229,427.35979 L 613.46876,427.35979 L 613.46876,425.71985 L 632.416,425.71985 L 630.1898,422.99587 L 631.01022,422.08788 L 638.06773,429.49751 z '/%3E%3C/g%3E%3C/svg%3E"); } .binary-container_with-img img, .binary-container_with-video video,