* undergoing maintenance.
*/
-#alert {
- width: 170px;
- margin: 5px;
- padding: 5px;
- border: 1px solid #ccc;
- background: #d00;
- line-height: 1.2em;
- font-size: 14px;
- border-radius: 5px;
- -moz-border-radius: 5px;
+.sidebar-alert {
+ padding: 0px 5px 0.1px 5px;
+ border-top: 1px solid #ccc;
+ margin-top: 4px;
+ margin-bottom: -4px;
+ background: #e00;
+ font-size: 13px;
+ font-weight: bold;
+ line-height: 17px;
+
+ p {
+ margin: 5px;
+ }
}
/*
text-align: left;
}
-/*
- * Rules for alert boxes shown in the left sidebar when important
- * information needs to be conveyed such as when the site is
- * undergoing maintenance.
- */
-
-#alert {
- text-align: left;
-}
-
/*
* Rules for notice boxes shown in the left sidebar when important, but
* non-critical information needs to be conveyed such as notices about
text-align: right;
}
-/*
- * Rules for alert boxes shown in the left sidebar when important
- * information needs to be conveyed such as when the site is
- * undergoing maintenance.
- */
-
-#alert {
- text-align: right;
-}
-
/*
* Rules for notice boxes shown in the left sidebar when important, but
* non-critical information needs to be conveyed such as notices about
<% end %>
<% if STATUS == :database_offline or STATUS == :api_offline %>
- <div id="alert">
- <%= t 'layouts.osm_offline' %>
+ <div class="sidebar-alert">
+ <p><%= t 'layouts.osm_offline' %></p>
</div>
<% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
- <div id="alert">
- <%= t 'layouts.osm_read_only' %>
+ <div id="sidebar-alert">
+ <p><%= t 'layouts.osm_read_only' %></p>
</div>
<% end %>