From aa3b2f588ce684739f688363dc05911cecf56adc Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 24 Nov 2016 14:26:10 +0800 Subject: webui: Update modal box styles --- fg21sim/webui/static/css/main.css | 53 +++++++++++++++++++++++++-------------- fg21sim/webui/static/js/main.js | 18 ++++++------- 2 files changed, 43 insertions(+), 28 deletions(-) (limited to 'fg21sim/webui/static') diff --git a/fg21sim/webui/static/css/main.css b/fg21sim/webui/static/css/main.css index aecb48d..1c81268 100644 --- a/fg21sim/webui/static/css/main.css +++ b/fg21sim/webui/static/css/main.css @@ -439,27 +439,17 @@ button, /** - * Logging messages styles + * Modal box styles */ -p.log { - font-size: 1.3rem; - margin-bottom: 0; -} -p.log span { - margin-right: 0.8rem; -} -p.log.log-debug { - color: inherit; -} -p.log.log-info { - color: #398439; -} -p.log.log-warning { - color: #d58512; +.modal .icon { + font-size: 200%; + vertical-align: middle; + margin-right: 0.5rem; } -p.log.log-error, -p.log.log-critical { - color: #ac2925; +.modal .title { + font-size: 120%; + font-weight: bold; + vertical-align: middle; } @@ -491,6 +481,31 @@ hr.hr-dotted { } +/** + * Logging messages styles + */ +p.log { + font-size: 1.3rem; + margin-bottom: 0; +} +p.log span { + margin-right: 0.8rem; +} +p.log.log-debug { + color: inherit; +} +p.log.log-info { + color: #398439; +} +p.log.log-warning { + color: #d58512; +} +p.log.log-error, +p.log.log-critical { + color: #ac2925; +} + + /** * "products" page specific styles */ diff --git a/fg21sim/webui/static/js/main.js b/fg21sim/webui/static/js/main.js index f0755c2..e6e68c4 100644 --- a/fg21sim/webui/static/js/main.js +++ b/fg21sim/webui/static/js/main.js @@ -187,7 +187,7 @@ var showModal = function (modalBox, data) { modalBox.html(""); var p = $("

"); if (data.icon) { - $("").addClass("icon fa fa-2x") + $("").addClass("icon fa") .addClass("fa-" + data.icon).appendTo(p); } if (data.title) { @@ -204,16 +204,16 @@ var showModal = function (modalBox, data) { } } if (data.code) { - modalBox.append($("

Error Code:

") - .append($("") - .addClass("label label-warning") - .text(data.code))); + modalBox.append($("

") + .append($("").text("Code:") + .addClass("label label-warning")) + .append($("").text(data.code))); } if (data.reason) { - modalBox.append($("

Reason:

") - .append($("") - .addClass("label label-warning") - .text(data.reason))); + modalBox.append($("

") + .append($("").text("Reason:") + .addClass("label label-warning")) + .append($("").text(data.reason))); } if (data.buttons) { p = $("

").addClass("button-group"); -- cgit v1.2.2