From ab312bfe20c9e78b0a441f301a06e2b347383fdc Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Fri, 3 May 2019 19:38:23 -0400 Subject: [PATCH] commento.scss: have root-font take precedence --- frontend/js/commento.js | 7 +++---- frontend/sass/commento.scss | 12 ++++++------ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index dc7f940..7bfdb73 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -1805,6 +1805,9 @@ } classAdd(root, "root"); + if (noFonts !== "true") { + classAdd(root, "root-font"); + } loginBoxCreate(); @@ -1815,10 +1818,6 @@ var footer = footerLoad(); cssLoad(cdn + "/css/commento.css", "window.commento.loadCssOverride()"); - if (noFonts !== "true") { - classAdd(root, "root-font"); - } - selfGet(function() { commentsGet(function() { modToolsCreate(); diff --git a/frontend/sass/commento.scss b/frontend/sass/commento.scss index 774e0ff..c8a4cb8 100644 --- a/frontend/sass/commento.scss +++ b/frontend/sass/commento.scss @@ -4,12 +4,6 @@ min-height: 430px; } -.commento-root-font { - * { - font-family: 'Source Sans Pro', sans-serif !important; - } -} - .commento-root { overflow-x: hidden; padding: 0px; @@ -64,3 +58,9 @@ margin-top: 16px; } } + +.commento-root-font { + * { + font-family: 'Source Sans Pro', sans-serif; + } +}