add a shadow on overflowing notifications popover

and fix the title in chrome vs FF
This commit is contained in:
Felix Niklas 2015-01-20 14:31:05 +01:00
parent 3b2ff7103a
commit 03e615bcc9
2 changed files with 15 additions and 4 deletions

View file

@ -259,8 +259,9 @@
}, offset), 0)
var maxHeight = $('#app').height() - 18
if(height > maxHeight)
$tip.height(maxHeight)
if(height > maxHeight){
$tip.height(maxHeight).addClass('is-overflowing')
}
$tip.addClass('in')

View file

@ -2725,13 +2725,23 @@ footer {
&.is-visible {
@extend .vertical;
}
.popover-content {
@extend .flex;
}
&.is-overflowing .popover-notificationsHeader {
box-shadow:
0 1px hsla(240,4%,95%,.5),
0 2px hsla(240,4%,95%,.2);
}
}
.popover-notificationsHeader {
@extend .horizontal;
@extend .end;
@extend .popover-title;
padding-bottom: 29px;
padding-bottom: 22px;
margin: 21px 17px 0;
.popover-title {
@extend h1;