From 63b981cae2e7ee35c1c932f8dd24a603e53c1e13 Mon Sep 17 00:00:00 2001 From: clsr Date: Tue, 22 Aug 2017 11:56:06 +0200 Subject: Change external link indicator to an arrow icon --- extlink-arrow.svg | 215 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ static/style.css | 23 ++++-- 2 files changed, 230 insertions(+), 8 deletions(-) create mode 100644 extlink-arrow.svg diff --git a/extlink-arrow.svg b/extlink-arrow.svg new file mode 100644 index 0000000..00d4faf --- /dev/null +++ b/extlink-arrow.svg @@ -0,0 +1,215 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/static/style.css b/static/style.css index 752d538..e389e50 100644 --- a/static/style.css +++ b/static/style.css @@ -30,24 +30,31 @@ section h4, section h5, section h6 { display: inline; } -a.cnp-external:after { +a.cnp-external { + background-position: right center; + background-repeat: no-repeat; + background-size: 0.8em; + padding-right: 0.85em; + background-image: linear-gradient(transparent, transparent), url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20width%3D%2280%22%20height%3D%2280%22%20version%3D%221.1%22%20viewBox%3D%220%200%2021.167%2021.167%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20transform%3D%22translate%280%20-275.83%29%22%3E%3Cg%20transform%3D%22matrix%281.0164%200%200%201.0164%201.0366%20-5.9055%29%22%20stroke-width%3D%222.0825%22%3E%3Crect%20x%3D%221.3229%22%20y%3D%22284.56%22%20width%3D%2211.112%22%20height%3D%2211.112%22%20fill%3D%22none%22%20stroke%3D%22%2308f%22%2F%3E%3Cpath%20d%3D%22m4.1425%20288.86%203.996%203.996%206.66-6.66%202.664%202.664v-9.324h-9.324l2.664%202.664z%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20stroke%3D%22%230af%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E'); +} + +a.cnp-external:hover:after { text-decoration: none; color: gray; display: inline-block; font-size: 0.8em; - content: '\01f517'; } -a.cnp-external-cnp:after { - content: '[cnp]'; +a.cnp-external-http:hover:after { + content: 'http'; } -a.cnp-external-http:after { - content: '[http]'; +a.cnp-external-https:hover:after { + content: 'https'; } -a.cnp-external-https:after { - content: '[https]'; +a.cnp-external-cnp:hover:after { + content: 'cnp'; } main { -- cgit