diff --git a/app/static/css/site.scss b/app/static/css/site.scss index fc487df..3d36e14 100644 --- a/app/static/css/site.scss +++ b/app/static/css/site.scss @@ -52,10 +52,6 @@ html, body { } -i, em { - font-style: italic; -} - header, footer { max-width: 1000px; padding-top: 16px; diff --git a/app/static/css/style.css b/app/static/css/style.css index e772c0a..0ce29e5 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -16,6 +16,10 @@ body { outline: none; } +i, em { + font-style: italic; +} + a { color: var(--fg) } diff --git a/app/static/js/utils.js b/app/static/js/utils.js index 92d6c80..fdef11b 100644 --- a/app/static/js/utils.js +++ b/app/static/js/utils.js @@ -112,7 +112,10 @@ const clickLink = function(event) { } var href = a.attributes.href.value var prefix = document.location.protocol + '//' + document.location.hostname - if (href.startsWith(prefix)) { + if (pandoraURL && href.startsWith(pandoraURL) { + href = href.slice(pandoraURL.length) + } + if (!pandoraURL && href.startsWith(prefix)) { href = href.slice(prefix.length) } if (href.startsWith('/')) {