From 8e9746781c0394c36b3253c95f14cc37d8961e14 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Thu, 26 Mar 2015 20:55:35 +0100 Subject: [PATCH] use Bootstrap alerts for error/warning messages; profile messages in place --- css/style.css | 18 ++++++++------ index.html | 4 ++-- js/control/Message.js | 56 ++++++++++++++++++++++++------------------- js/control/Profile.js | 3 +++ js/index.js | 14 +++++------ 5 files changed, 54 insertions(+), 41 deletions(-) diff --git a/css/style.css b/css/style.css index ef7d392..1eb35d7 100644 --- a/css/style.css +++ b/css/style.css @@ -26,7 +26,6 @@ div.elevation { top: 0px; margin-top: 10px; z-index: 1000; - box-shadow: 0 1px 5px rgba(0,0,0,0.4); } #header { @@ -52,12 +51,6 @@ div.elevation { margin-top: 0.5em; line-height: 1.4em; } -.warning { - color: darkorange; -} -.error { - color: red; -} .heading { font-weight: bold; @@ -232,6 +225,17 @@ textarea:focus { padding: 2px 15px; } +.alert { + margin-top: 3px; + margin-bottom: 0px; + padding-left: 35px; +} +.alert span.glyphicon { + position: relative; + left: -23px; + margin-right: -1em; +} + /* * DataTables */ diff --git a/index.html b/index.html index 75f8b42..4b55ee6 100644 --- a/index.html +++ b/index.html @@ -22,8 +22,7 @@
- +