diff options
author | clsr <clsr@clsr.net> | 2017-08-22 11:56:06 +0200 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2017-08-22 11:56:06 +0200 |
commit | 63b981cae2e7ee35c1c932f8dd24a603e53c1e13 (patch) | |
tree | a4e189cc13b7ebf35ad06f25b2f31a95d61b5c36 /static | |
parent | 1c15fe67c72b4591feaceeffec0951e34a6c2e46 (diff) | |
download | cn-http-63b981cae2e7ee35c1c932f8dd24a603e53c1e13.tar.gz cn-http-63b981cae2e7ee35c1c932f8dd24a603e53c1e13.zip |
Change external link indicator to an arrow icon
Diffstat (limited to 'static')
-rw-r--r-- | static/style.css | 23 |
1 files changed, 15 insertions, 8 deletions
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 { |