From 9075d69cbd450bcd61318da3ca92c5517ea62f45 Mon Sep 17 00:00:00 2001 From: jonahmania Date: Tue, 1 May 2018 22:01:44 -0400 Subject: [PATCH] Fix book icon styles --- frontend/templates/home.html | 1 - static/js/greenpanel.js | 14 -------------- static/scss/book_panel2.scss | 15 ++++++++------- static/scss/home.scss | 8 ++++++++ 4 files changed, 16 insertions(+), 22 deletions(-) delete mode 100644 static/js/greenpanel.js diff --git a/frontend/templates/home.html b/frontend/templates/home.html index 16ae11f9..92b31fa7 100755 --- a/frontend/templates/home.html +++ b/frontend/templates/home.html @@ -38,7 +38,6 @@ function put_un_in_cookie2(){ - diff --git a/static/js/greenpanel.js b/static/js/greenpanel.js deleted file mode 100644 index c7a129c1..00000000 --- a/static/js/greenpanel.js +++ /dev/null @@ -1,14 +0,0 @@ -var $j = jQuery.noConflict(); - -$j().ready(function(){ - var contentblock = $j('#content-block, .user-block-hide'); - contentblock.on('mouseenter', '.panelview', function() { - $j(this).children('.panelfront').removeClass('side1').addClass('side2'); - $j(this).children('.panelback').removeClass('side2').addClass('side1'); - }); - - contentblock.on('mouseleave', '.panelview', function() { - $j(this).children('.panelback').removeClass('side1').addClass('side2'); - $j(this).children('.panelfront').removeClass('side2').addClass('side1'); - }); -}); diff --git a/static/scss/book_panel2.scss b/static/scss/book_panel2.scss index ebdcca64..2c4fa592 100644 --- a/static/scss/book_panel2.scss +++ b/static/scss/book_panel2.scss @@ -190,15 +190,16 @@ span.grey { } /* switch to/from hover state when jquery swaps class names */ - -div.panelview.side1 { - display: visible; -} - div.panelview.side2 { - display: none; + visibility: hidden; } +div.panelview:hover .side2 { + visibility: visible !important; + z-index: 1; +} + + /* styling of hover state */ .panelback { position: relative; @@ -419,4 +420,4 @@ div.panelview.side2 { height:auto; } -} \ No newline at end of file +} diff --git a/static/scss/home.scss b/static/scss/home.scss index 2755e313..5eaac7a5 100644 --- a/static/scss/home.scss +++ b/static/scss/home.scss @@ -6,6 +6,10 @@ margin-left: auto; margin-right: auto; max-width: 960px; + + div { + box-sizing: content-box; + } } #user-block1 { @@ -102,3 +106,7 @@ display: flex; } + +.thewholebook { + border: none !important; +}