This commit is contained in:
2023-11-10 19:14:00 +03:00
parent ae9902965a
commit 405cae84fe
4 changed files with 19 additions and 11 deletions

View File

@@ -2207,6 +2207,7 @@
position: absolute; position: absolute;
width: 320px; width: 320px;
opacity: 0; opacity: 0;
/*display: none;*/
} }
/* for curtain right*/ /* for curtain right*/
@@ -2218,6 +2219,8 @@
margin: auto; margin: auto;
z-index: 10002; z-index: 10002;
top: 61px; top: 61px;
float: right;
height: 695px;
} }
.menu_buttons{ .menu_buttons{
@@ -2266,6 +2269,8 @@
padding-top: 10px; padding-top: 10px;
float: left; float: left;
width: 33%; width: 33%;
background: #FFFFFF;
border-radius: 10px;
} }
.handler_menu.left.close{ .handler_menu.left.close{
background: #FF613A; background: #FF613A;
@@ -2354,6 +2359,7 @@
overflow-y: auto; overflow-y: auto;
height: calc(100vh - 120px); height: calc(100vh - 120px);
max-height: 667px; max-height: 667px;
background: #F8F8F8;
} }
.menu_profile.background{ .menu_profile.background{

View File

@@ -13,7 +13,7 @@ function middleWareJS(){
let footer = document.querySelector("footer") let footer = document.querySelector("footer")
let body = document.querySelector("body") let body = document.querySelector("body")
if (document.querySelector(".block-list-of-users")){ if (document.querySelector(".menu_buttons.curtain.left")){
footer.style.display = "none" footer.style.display = "none"
body.style.overflow = "hidden" body.style.overflow = "hidden"

View File

@@ -755,7 +755,7 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
} }
//тут боди по неведомой для меня причне получал перманентный оверфлоу в значении hidden и вырубал все блоки кроме Новое Сообщение, вероятно для него эта проверка и делалась //тут боди по неведомой для меня причне получал перманентный оверфлоу в значении hidden и вырубал все блоки кроме Новое Сообщение, вероятно для него эта проверка и делалась
if (body.style.overflowY === 'hidden'){ if (!curtain.classList.contains('show')){
body.style.overflowY = '' body.style.overflowY = ''
} else { } else {
body.style.overflowY = 'hidden' body.style.overflowY = 'hidden'

View File

@@ -57,16 +57,18 @@
<div class="wrapper_main"> <div class="wrapper_main">
{% include 'blocks/b_header.html' %} {% include 'blocks/b_header.html' %}
<div class="block_overlay {% if page_type == 'profile' %}show{% else %}hidden n_profile{% endif %}" onclick="open_curtain()"></div> <div class="cut-width">
<div class="cut_width_f_curtain"> <div class="block_overlay {% if page_type == 'profile' %}show{% else %}hidden n_profile{% endif %}" onclick="open_curtain()"></div>
<div class="menu_buttons curtain right {% if page_type == 'profile' %}open{% else %} close{% endif %}" data-name="Меню"> <div class="cut_width_f_curtain">
<div class="menu_buttons curtain right {% if page_type == 'profile' %}open{% else %} close{% endif %}" data-name="Меню">
{% include "blocks/profile/b_buttons_menu_profile.html" %} {% include "blocks/profile/b_buttons_menu_profile.html" %}
<div class="handler_menu close" onclick="open_curtain(null,'right')"> <div class="handler_menu close" onclick="open_curtain(null,'right')">
<img class="btns_f_curtain close left" src="{% static 'img/svg/arrow_f_curtain.svg' %}"> <img class="btns_f_curtain close left" src="{% static 'img/svg/arrow_f_curtain.svg' %}">
<div class="text_f_curtain left">Меню</div> <div class="text_f_curtain left">Меню</div>
<img class="btns_f_curtain close right" src="{% static 'img/svg/arrow_f_curtain.svg' %}"> <img class="btns_f_curtain close right" src="{% static 'img/svg/arrow_f_curtain.svg' %}">
<div class="clear_both"></div> <div class="clear_both"></div>
</div>
</div> </div>
</div> </div>
</div> </div>