Improve styling of notice boxes to match new sidebar styling
This commit is contained in:
parent
be585d1403
commit
66caf92bd9
4 changed files with 13 additions and 31 deletions
|
@ -121,16 +121,18 @@ h2 {
|
|||
* donation drives.
|
||||
*/
|
||||
|
||||
.notice {
|
||||
width: 170px;
|
||||
margin: 5px;
|
||||
padding: 5px;
|
||||
border: 1px solid #ccc;
|
||||
.sidebar-notice {
|
||||
padding: 0px 5px 0.1px 5px;
|
||||
border-top: 1px solid #ccc;
|
||||
margin-top: 4px;
|
||||
margin-bottom: -4px;
|
||||
background: #ea0;
|
||||
line-height: 20px;
|
||||
font-size: 14px;
|
||||
border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
font-size: 13px;
|
||||
line-height: 17px;
|
||||
|
||||
p {
|
||||
margin: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Rules for the menu displayed in the left sidebar */
|
||||
|
|
|
@ -6,16 +6,6 @@ html body {
|
|||
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
|
||||
* donation drives.
|
||||
*/
|
||||
|
||||
.notice {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Rules for the menu displayed in the left sidebar */
|
||||
|
||||
.left_menu {
|
||||
|
|
|
@ -6,16 +6,6 @@ html body {
|
|||
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
|
||||
* donation drives.
|
||||
*/
|
||||
|
||||
.notice {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* Rules for the menu displayed in the left sidebar */
|
||||
|
||||
.left_menu {
|
||||
|
|
|
@ -96,8 +96,8 @@
|
|||
<% end %>
|
||||
|
||||
<% if false %>
|
||||
<div id="donate" class="notice">
|
||||
<%= raw t 'layouts.donate', :link => "<a href=\"http://donate.openstreetmap.org/\">#{t('layouts.donate_link_text')}</a>" %>
|
||||
<div class="sidebar-notice">
|
||||
<p><%= raw t 'layouts.donate', :link => "<a href=\"http://donate.openstreetmap.org/\">#{t('layouts.donate_link_text')}</a>" %></p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue