Permalink
Browse files

Minor fixes

  • Loading branch information...
1 parent d2b8f59 commit 7dcfb54a3a59d8a58a533e8f6a7e72e3fab05e03 @cgst cgst committed Jul 13, 2010
Showing with 4 additions and 1 deletion.
  1. +1 −0 lib/popover.sass
  2. +2 −1 popover.css
  3. +1 −0 popover.js
View
@@ -42,6 +42,7 @@
color: white
background-color: black
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.6)), color-stop(0.2, rgba(255, 255, 255, 0.4)), color-stop(0.5, rgba(255, 255, 255, 0.2)), color-stop(0.5, transparent), to(transparent) )
+ text-align: center
& > .content
min-width: 200px
View
@@ -38,7 +38,8 @@
height: 40px;
color: white;
background-color: black;
- background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.6)), color-stop(0.2, rgba(255, 255, 255, 0.4)), color-stop(0.5, rgba(255, 255, 255, 0.2)), color-stop(0.5, transparent), to(transparent) ); }
+ background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.6)), color-stop(0.2, rgba(255, 255, 255, 0.4)), color-stop(0.5, rgba(255, 255, 255, 0.2)), color-stop(0.5, transparent), to(transparent) );
+ text-align: center; }
.popover > .content {
min-width: 200px;
overflow-x: hidden;
View
@@ -93,6 +93,7 @@ $.fn.popover = function(options) {
var button = $(this);
button.addClass("popover-button");
button.bind('click', function() { showPopover(button) });
+ button.bind('showPopover', function() { showPopover(button) });
button.bind('hidePopover', function() {
button.removeClass('popover-on');
floater.removeClass("active");

0 comments on commit 7dcfb54

Please sign in to comment.