diff --git a/openy_home_branch/modules/ws_home_branch/assets/css/ws-header-selector.css b/openy_home_branch/modules/ws_home_branch/assets/css/ws-header-selector.css index 6722c929..cf6f1c99 100644 --- a/openy_home_branch/modules/ws_home_branch/assets/css/ws-header-selector.css +++ b/openy_home_branch/modules/ws_home_branch/assets/css/ws-header-selector.css @@ -28,7 +28,10 @@ box-shadow: 0 6px 6px -6px rgba(0, 0, 0, 0.15) !important; } [data-once*="home-branch-cookies-storage"] .mobile .hb-selector { position: absolute; + display: block; top: 150px; left: 10px; } +[data-once*="home-branch-cookies-storage"] .mobile.open .hb-selector { + display: none; } -/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndzLWhlYWRlci1zZWxlY3Rvci5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxpQkFBaUIsRUFBRTtFQUNuQjtJQUNFLCtDQUErQyxFQUFFO0VBQ25EO0lBQ0UscUJBQXFCO0lBQ3JCLDhDQUE4QztJQUM5QyxlQUFlO0lBQ2Ysc0RBQXNEO0lBQ3RELGlCQUFpQjtJQUNqQixnQkFBZ0I7SUFDaEIsK0JBQStCLEVBQUU7RUFDbkM7SUFDRSxnQkFBZ0I7SUFDaEIsa0JBQWtCO0lBQ2xCLGtCQUFrQjtJQUNsQixXQUFXLEVBQUU7RUFDZjtJQUNFLG1CQUFtQixFQUFFO0VBQ3ZCO0lBQ0UsYUFBYSxFQUFFOztBQUVuQjtFQUNFLG1CQUFtQixFQUFFO0VBQ3JCO0lBQ0UseURBQXlELEVBQUU7RUFDN0Q7SUFDRSx5REFBeUQsRUFBRTtFQUM3RDtJQUNFLGtCQUFrQjtJQUNsQixVQUFVO0lBQ1YsVUFBVSxFQUFFIiwiZmlsZSI6IndzLWhlYWRlci1zZWxlY3Rvci5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuaGItc2VsZWN0b3Ige1xuICBtYXJnaW4tbGVmdDogMTBweDsgfVx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qPVwiaG9tZS1icmFuY2gtY29va2llcy1zdG9yYWdlXCJdIC5tb2JpbGUgLmhlYWRlci0tdG9wIHtcbiAgICBib3gtc2hhZG93OiAwIDZweCA2cHggLTZweCByZ2JhKDAsIDAsIDAsIDAuMTUpICFpbXBvcnRhbnQ7IH1cbiAgW2RhdGEtb25jZSo9XCJob21lLWJyYW5jaC1jb29raWVzLXN0b3JhZ2VcIl0gLm1vYmlsZSAuaGVhZGVyLS1ib3R0b20ge1xuICAgIGJveC1zaGFkb3c6IDAgNnB4IDZweCAtNnB4IHJnYmEoMCwgMCwgMCwgMC4xNSkgIWltcG9ydGFudDsgfVxuICBbZGF0YS1vbmNlKj1cImhvbWUtYnJhbmNoLWNvb2tpZXMtc3RvcmFnZVwiXSAubW9iaWxlIC5oYi1zZWxlY3RvciB7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgIHdpZHRoOiAxNTAlO1xuICAgIHRvcDogMTUwcHg7XG4gICAgbGVmdDogMTBweDsgfVxuICBbZGF0YS1vbmNlKj1cImhvbWUtYnJhbmNoLWNvb2tpZXMtc3RvcmFnZVwiXSAubW9iaWxlLm9wZW4gLmhiLXNlbGVjdG9yIHtcbiAgICBkaXNwbGF5OiBub25lOyB9XG4iXX0= */ \ No newline at end of file diff --git a/openy_home_branch/modules/ws_home_branch/assets/scss/ws-header-selector.scss b/openy_home_branch/modules/ws_home_branch/assets/scss/ws-header-selector.scss index a576c55f..848c4f15 100644 --- a/openy_home_branch/modules/ws_home_branch/assets/scss/ws-header-selector.scss +++ b/openy_home_branch/modules/ws_home_branch/assets/scss/ws-header-selector.scss @@ -49,9 +49,16 @@ } .hb-selector { + display: block; position: absolute; - top: 150px; left: 10px; + top: 150px; + } + + &.open { + .hb-selector { + display: none; + } } } } diff --git a/openy_home_branch/modules/ws_home_branch/ws_home_branch.libraries.yml b/openy_home_branch/modules/ws_home_branch/ws_home_branch.libraries.yml index 0bdfff14..2cfedf0a 100644 --- a/openy_home_branch/modules/ws_home_branch/ws_home_branch.libraries.yml +++ b/openy_home_branch/modules/ws_home_branch/ws_home_branch.libraries.yml @@ -5,7 +5,7 @@ ws_checkbox: assets/css/ws-checkbox.css: {} hb_header_lb_selector: - version: 0.7 + version: 0.8 js: assets/js/ws-header-lb-selector.js: {} css: