style submenu popup on firefox

This commit is contained in:
did 2011-11-25 10:56:56 +01:00
parent 76ef0cb28d
commit 80c9d5091f
3 changed files with 10 additions and 4 deletions

View File

@ -30,9 +30,9 @@ class Locomotive.Views.ApplicationView extends Backbone.View
$('#submenu ul li.hoverable').each -> $('#submenu ul li.hoverable').each ->
timer = null timer = null
link = $(@) link = $(@)
popup = link.find('.popup').removeClass('popup').addClass('submenu-popup').css( (popup = link.find('.popup')).removeClass('popup').addClass('submenu-popup').css(
top: link.offset().top + link.height() - 1 top: link.offset().top + link.height() - 2
left: link.offset().left left: link.offset().left - parseInt(popup.css('padding-left'))
).bind('show', -> ).bind('show', ->
link.find('a').addClass('hover') & popup.show() link.find('a').addClass('hover') & popup.show()
).bind('hide', -> ).bind('hide', ->

View File

@ -3,6 +3,8 @@
.CodeMirror { .CodeMirror {
@include default-input-style; @include default-input-style;
margin-top: 13px;
font-size: 12px; font-size: 12px;
font-weight: normal; font-weight: normal;

View File

@ -169,13 +169,17 @@
min-width: 250px; min-width: 250px;
z-index: 999; z-index: 999;
overflow: hidden;
padding: 0px 12px 12px 12px;
background: transparent; background: transparent;
.wrapper { .wrapper {
background: #fff; background: #fff;
@include box-shadow(rgba(0, 0, 0, 0.5) 0px 8px 10px 0px); @include box-shadow(rgba(0, 0, 0, 0.5) 0px 0px 8px 0px);
@include border-radius(16px); @include border-radius(16px);
@include border-top-left-radius(0px); @include border-top-left-radius(0px);