From f632cc408e50cff8714044021b683d18abe17a54 Mon Sep 17 00:00:00 2001 From: Renard Date: Sun, 31 Mar 2019 17:41:31 -0300 Subject: Selector CSS para IB --- static/css/ib.css | 1 + static/js/weabot.js | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'static') diff --git a/static/css/ib.css b/static/css/ib.css index 1609e4d..55e8012 100644 --- a/static/css/ib.css +++ b/static/css/ib.css @@ -52,6 +52,7 @@ input[type="text"],input[type="password"],textarea{background:#FFF;border:1px in .footer{clear:both;margin-top:8px;text-align:center} .managertable th,.managertable td{padding:3px} #q-p{position:absolute;border:1px dotted gray} +.selector{font-size: 10pt} @media(max-width:900px){.thread{margin-right:0}} @media(max-width:720px){ body{font-size:15px;padding:4px} diff --git a/static/js/weabot.js b/static/js/weabot.js index da0ba83..0f27075 100644 --- a/static/js/weabot.js +++ b/static/js/weabot.js @@ -361,6 +361,11 @@ function catHidden() { lbl.appendChild(shw); lbl.appendChild(document.createTextNode("]")); } +function applyTheme(){ + var newTheme = document.getElementById("styles").value; + set_stylesheet(newTheme); +} + document.addEventListener("DOMContentLoaded", function(e) { checkhighlight(); if (localStorage.hasOwnProperty("weabot")) weabot = JSON.parse(localStorage.getItem("weabot")); @@ -414,15 +419,11 @@ document.addEventListener("DOMContentLoaded", function(e) { for(var i=0;i