clickthrough of alert banners, some more positioning, move them to front.
This commit is contained in:
@ -1,3 +1,3 @@
|
|||||||
#flash.fixed_error_messages data-message-failure=t('shared.message_failure')
|
#flash.fixed_error_messages.clickthrough data-message-failure=t('shared.message_failure')
|
||||||
- %w[alert danger info notice success warning].each do |severity|
|
- %w[alert danger info notice success warning].each do |severity|
|
||||||
p.alert.flash class="alert-#{{'alert' => 'warning', 'notice' => 'success'}.fetch(severity, severity)}" id="flash-#{severity}" = flash[severity]
|
p.alert.flash class="alert-#{{'alert' => 'warning', 'notice' => 'success'}.fetch(severity, severity)}" id="flash-#{severity}" = flash[severity]
|
||||||
|
@ -4,10 +4,16 @@
|
|||||||
|
|
||||||
.fixed_error_messages {
|
.fixed_error_messages {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
z-index: 1000;
|
||||||
|
top: 110px;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-left: 10%;
|
padding-left: 10%;
|
||||||
padding-right: 10%;
|
padding-right: 10%;
|
||||||
padding-top: 2%;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.clickthrough {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user