From c8a2ece0d699d1b3848666c7ca4fb38f25641d6e Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Sat, 2 Mar 2019 14:09:11 -0500 Subject: [PATCH] commento.js: remove logo SVG from footer --- frontend/js/commento.js | 10 +++------- frontend/sass/commento-footer.scss | 14 +++++--------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index 98c5906..a291aca 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -328,7 +328,6 @@ var footer = create("div"); var aContainer = create("div"); var a = create("a"); - var img = create("img"); var text = create("span"); footer.id = ID_FOOTER; @@ -336,21 +335,18 @@ classAdd(footer, "footer"); classAdd(aContainer, "logo-container"); classAdd(a, "logo"); - classAdd(img, "logo-svg"); classAdd(text, "logo-text"); - attrSet(footer, "style", "display: none"); attrSet(a, "href", "https://commento.io"); attrSet(a, "target", "_blank"); - attrSet(img, "src", cdn + "/images/logo.svg"); - text.innerText = "Powered by Commento"; + text.innerText = "Commento"; - append(a, img); append(a, text); append(aContainer, a); append(footer, aContainer); - append(root, footer); + + return footer; } diff --git a/frontend/sass/commento-footer.scss b/frontend/sass/commento-footer.scss index 7a4a063..1f2b291 100644 --- a/frontend/sass/commento-footer.scss +++ b/frontend/sass/commento-footer.scss @@ -2,7 +2,6 @@ .commento-footer { margin: 36px 0px 12px 0px; - border-top: 1px solid $gray-1; padding-right: 12px; .commento-logo-container { @@ -16,19 +15,16 @@ align-items: center; padding: 5px; border-radius: 3px; + } - .commento-logo-svg { - display: inline; - width: 18px; - height: 18px; - margin-right: 8px; - outline: none; - } + .commento-logo-text::before { + content: "Powered by "; + font-weight: 400; } .commento-logo-text { font-size: 13px; - color: $gray-6; + color: $gray-7; display: inline; line-height: 24px; position: relative;