rebuilding the scripts and classes running book panel to be not so flaky
parent
a83586b981
commit
9f32a8c3c5
|
@ -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 */
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* variables and mixins used in multiple less files go here */
|
||||
.header-text {
|
||||
height: 36px;
|
||||
line-height: 36px;
|
||||
|
|
|
@ -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');
|
||||
}));
|
||||
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue