From 852445bdc598078a97a9a3e19f056ccc6fea82a0 Mon Sep 17 00:00:00 2001 From: russellballestrini Date: Fri, 24 Nov 2017 20:07:21 -0500 Subject: [PATCH] modified: static/theme/meta/css/diff.css modified: templates/meta-base.j2 --- .../static/theme/meta/css/diff.css | 39 ++++++++++++++----- remarkbox_theme_meta/templates/meta-base.j2 | 19 ++++----- 2 files changed, 39 insertions(+), 19 deletions(-) diff --git a/remarkbox_theme_meta/static/theme/meta/css/diff.css b/remarkbox_theme_meta/static/theme/meta/css/diff.css index 3e8ef32..ee95840 100644 --- a/remarkbox_theme_meta/static/theme/meta/css/diff.css +++ b/remarkbox_theme_meta/static/theme/meta/css/diff.css @@ -100,12 +100,11 @@ ul { /* alerts */ #alerts { - width: 60%; - right: 40%; - margin: auto; - margin-right: -20%; + width: 100%; position: fixed; + top: 150px; z-index: 100; + text-align: center; } .close { @@ -116,18 +115,38 @@ ul { .alert { text-align: center; color: #ffffff; - font-weight: bold; - border-radius: 6px; margin-bottom: 6px; padding: 6px; + + /** not sure **/ + border: 1px; + border-left: 0px; + border-right: 0px; + border-style: solid; } -.alert-warning, .alert-error { - background-color: #CB0003; +.alert-danger, .alert-error { + color: #721c24; + background-color: #f8d7da; + border-color: #f5c6cb; } -.alert-success, .alert-notice { - background-color: #517DA4; +.alert-warning { + color: #856404; + background-color: #fff3cd; + border-color: #ffeeba; +} + +.alert-info, .alert-notice { + color: #0c5460; + background-color: #d1ecf1; + border-color: #bee5eb; +} + +.alert-success { + color: #155724; + background-color: #d4edda; + border-color: #c3e6cb; } .navlogotiny { diff --git a/remarkbox_theme_meta/templates/meta-base.j2 b/remarkbox_theme_meta/templates/meta-base.j2 index b3adfc5..cdead4e 100644 --- a/remarkbox_theme_meta/templates/meta-base.j2 +++ b/remarkbox_theme_meta/templates/meta-base.j2 @@ -104,6 +104,16 @@ +
+{%- for message, level in request.session.pop_flash() %} +
+ + {{message}} +
+{%- endfor %} +
+ + {% if request.mode != 'embed' %} {% else %} @@ -114,15 +124,6 @@
-
-{%- for message, level in request.session.pop_flash() %} -
- - {{message}} -
-{%- endfor %} -
-
{% block content %} {% endblock %}