rebuilding the scripts and classes running book panel to be not so flaky

pull/1/head
eric 2011-11-30 21:06:27 -05:00
parent a83586b981
commit 9f32a8c3c5
4 changed files with 418 additions and 431 deletions

View File

@ -133,16 +133,10 @@
display: none;
}
/* switch to/from hover state when jquery swaps class names */
span.panelview.panelback.side1, span.panelview.panelback.side1 div {
div.panelview.side1 {
display: visible;
}
span.panelview.panelback.side2, span.panelview.panelback.side2 div {
display: none;
}
div.panelview.side1 > div {
display: visible;
}
div.panelview.side2 > div {
div.panelview.side2 {
display: none;
}
/* styling of hover state */

View File

@ -1,3 +1,4 @@
/* variables and mixins used in multiple less files go here */
.header-text {
height: 36px;
line-height: 36px;

View File

@ -1,14 +1,14 @@
$(document).ready(function(){
$('.book-list').bind("mouseenter", (function()
{
$(this).removeClass('side1').addClass('side2');
$(this).children('.panelfront').removeClass('side1').addClass('side2');
$(this).children('.panelback').removeClass('side2').addClass('side1');
}));
$('.book-list').bind("mouseleave", (function()
{
$(this).children('.panelback').removeClass('side1').addClass('side2');
$(this).removeClass('side2').addClass('side1');
$(this).children('.panelfront').removeClass('side2').addClass('side1');
}));
});

View File

@ -172,19 +172,11 @@
/* switch to/from hover state when jquery swaps class names */
span.panelview.panelback.side1, span.panelview.panelback.side1 div {
display:visible;
}
span.panelview.panelback.side2, span.panelview.panelback.side2 div {
display:none;
}
div.panelview.side1 > div {
div.panelview.side1 {
display: visible;
}
div.panelview.side2 > div {
div.panelview.side2 {
display: none;
}