Sha256: 1138b17b107035bff263b461ed4e9833413d5ad9e34d1fdc01c7bc5210f2d396

Contents?: true

Size: 839 Bytes

Versions: 11

Compression:

Stored size: 839 Bytes

Contents

<style>
.alerts {
  position: absolute;
  top: 1em !important;
  bottom: auto !important;
  right: 2.5em !important;
  width: auto !important;
}
.alert {
  z-index: 9999 !important; 
  border-radius: 2em !important;
  animation: hideMe 5s 1;
  animation-fill-mode: forwards;
  animation-delay: 2s;
}
.close {
  background-color: transparent;
  border: none;
}
@keyframes hideMe {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
</style>

<div class="alerts">
<% flash.each do |type, message| %>
  <%-unless [true, "true", :true].include? message%>
    <div class="alert <%= bootstrap_class_for(type) %> alert-dismissible fade-out show" role="alert">
      <button class="close" data-dismiss="alert">×</button>
      <span class="sr-only"><%= type.capitalize%>:</span>
      <%= message %>
    </div>
  <%-end%>
<% end %>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
thecore_ui_commons-3.0.12 app/views/shared/_flash.html.erb
thecore_ui_commons-3.0.11 app/views/shared/_flash.html.erb
thecore_ui_commons-3.0.10 app/views/shared/_flash.html.erb
thecore_ui_commons-3.0.9 app/views/shared/_flash.html.erb
thecore_ui_commons-3.0.8 app/views/shared/_flash.html.erb
thecore_ui_commons-3.0.7 app/views/shared/_flash.html.erb
thecore_ui_commons-3.0.6 app/views/shared/_flash.html.erb
thecore_ui_commons-3.0.5 app/views/shared/_flash.html.erb
thecore_ui_commons-3.0.4 app/views/shared/_flash.html.erb
thecore_ui_commons-3.0.3 app/views/shared/_flash.html.erb
thecore_ui_commons-3.0.0 app/views/shared/_flash.html.erb