Преглед изворни кода

HUE-6077 [frontend] Unified jHueNotify alerts with CUI

Enrico Berti пре 8 година
родитељ
комит
691df45

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 3 - 0
desktop/core/src/desktop/static/desktop/ext/css/cui/bootstrap2.css

@@ -5527,6 +5527,9 @@ a.badge:focus {
   border-radius: 0;
   text-shadow: none;
 }
+.alert .close {
+  right: 0;
+}
 .table th,
 .table td {
   padding: 7px 8px 8px 8px;

+ 0 - 32
desktop/core/src/desktop/static/desktop/less/components/hue-notify.less

@@ -45,36 +45,4 @@
   max-height: 100%;
   width: auto;
   word-break: normal;
-}
-
-.jHueNotify .close {
-  right: 2px;
-  opacity: 1;
-}
-
-.jHueNotify.alert {
-  border: none;
-  border-left: 5px solid #f0c36d;
-}
-
-.jHueNotify.alert .close {
-  color: #f0c36d;
-}
-
-.jHueNotify.alert-error {
-  border: none;
-  border-left: 5px solid #b94a48;
-}
-
-.jHueNotify.alert-error .close {
-  color: #b94a48;
-}
-
-.jHueNotify.alert-info {
-  border: none;
-  border-left: 5px solid #bce8f1;
-}
-
-.jHueNotify.alert-info .close {
-  color: #bce8f1;
 }

+ 6 - 3
desktop/core/src/desktop/templates/common_header.mako

@@ -523,7 +523,10 @@ ${ hueIcons.symbols() }
   </script>
 % endif
 
-<div id="jHueNotify" class="alert hide">
-    <button class="close">&times;</button>
-    <div class="message"></div>
+<div id="jHueNotify" class="alert alert-dismissible alert-warning">
+  <button type="button" class="close" data-dismiss="alert">
+    <span aria-hidden="true">&times;</span>
+    <span class="sr-only">${ _('Close') }</span>
+  </button>
+  <p class="message"></p>
 </div>

Неке датотеке нису приказане због велике количине промена