commento.js: remove logo SVG from footer

This commit is contained in:
Adhityaa Chandrasekar 2019-03-02 14:09:11 -05:00
parent e9ba79974b
commit c8a2ece0d6
2 changed files with 8 additions and 16 deletions

View File

@ -328,7 +328,6 @@
var footer = create("div"); var footer = create("div");
var aContainer = create("div"); var aContainer = create("div");
var a = create("a"); var a = create("a");
var img = create("img");
var text = create("span"); var text = create("span");
footer.id = ID_FOOTER; footer.id = ID_FOOTER;
@ -336,21 +335,18 @@
classAdd(footer, "footer"); classAdd(footer, "footer");
classAdd(aContainer, "logo-container"); classAdd(aContainer, "logo-container");
classAdd(a, "logo"); classAdd(a, "logo");
classAdd(img, "logo-svg");
classAdd(text, "logo-text"); classAdd(text, "logo-text");
attrSet(footer, "style", "display: none");
attrSet(a, "href", "https://commento.io"); attrSet(a, "href", "https://commento.io");
attrSet(a, "target", "_blank"); 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(a, text);
append(aContainer, a); append(aContainer, a);
append(footer, aContainer); append(footer, aContainer);
append(root, footer);
return footer;
} }

View File

@ -2,7 +2,6 @@
.commento-footer { .commento-footer {
margin: 36px 0px 12px 0px; margin: 36px 0px 12px 0px;
border-top: 1px solid $gray-1;
padding-right: 12px; padding-right: 12px;
.commento-logo-container { .commento-logo-container {
@ -16,19 +15,16 @@
align-items: center; align-items: center;
padding: 5px; padding: 5px;
border-radius: 3px; border-radius: 3px;
}
.commento-logo-svg { .commento-logo-text::before {
display: inline; content: "Powered by ";
width: 18px; font-weight: 400;
height: 18px;
margin-right: 8px;
outline: none;
}
} }
.commento-logo-text { .commento-logo-text {
font-size: 13px; font-size: 13px;
color: $gray-6; color: $gray-7;
display: inline; display: inline;
line-height: 24px; line-height: 24px;
position: relative; position: relative;