From 9c953583054da26b25c70454ad93c5d871616bab Mon Sep 17 00:00:00 2001 From: borissedw Date: Fri, 20 Oct 2023 21:40:27 +0300 Subject: [PATCH] 0.0.286 --- static/css/styles(boris).css | 6 ++++++ static/js/global_js.js | 6 +++--- static/js/user_profile.js | 3 ++- templates/blocks/b_header.html | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index c2c0b4c..d068b25 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -23,6 +23,9 @@ .f-r{ float: right; } +.f-l{ + float: left; +} .font-base{ font-size: 16px; @@ -913,6 +916,8 @@ color: #FFFFFF; background: #FF613A; height: 60px; + font-size: 18px; + font-weight: 500; } .cont-el-form-search-carrier > a{ @@ -1919,6 +1924,7 @@ .subscribe_type_txt{ color: #000; font-size: 14px; + width: 100%; } .header_big_background{ diff --git a/static/js/global_js.js b/static/js/global_js.js index 7739560..0d169aa 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -11,15 +11,15 @@ window.onload = function (){ function middleWareJS(){ let footer = document.querySelector("footer") - let body = document.body.style; + let body = document.querySelector("body") if (document.querySelector(".block-list-of-users")){ footer.style.display = "none" - + body.style.overflow = "hidden" } else { footer.style.display = "" - + body.style.overflow = "" } } diff --git a/static/js/user_profile.js b/static/js/user_profile.js index f551918..a9e4172 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -17,7 +17,8 @@ function writeMessage(el){ let list_div = document.querySelectorAll('.menu_profile div'); list_div.forEach(el=>{ el.classList.remove('selected'); }); el.classList.add('selected') - + let body = document.querySelector("body") + body.style.overflow = "hidden" //updating the url without reloading window.history.pushState(null, null, '/ru/profile/page/chat/') middleWareJS() diff --git a/templates/blocks/b_header.html b/templates/blocks/b_header.html index d9c4b14..aa340cf 100644 --- a/templates/blocks/b_header.html +++ b/templates/blocks/b_header.html @@ -58,7 +58,7 @@