This commit is contained in:
2023-11-06 14:10:17 +03:00
parent 93cf3aa695
commit 3aa4b774bd
6 changed files with 40 additions and 9 deletions

View File

@@ -20,7 +20,7 @@
width: 100%;
}
.text-align-left{
.text-align-left {
text-align: -webkit-left;
width: 100%;
@@ -37,10 +37,29 @@
display: none;
}
.block_overlay.n_profile{
height: 100vh;
width: 100vw;
background: rgba(39, 53, 62, 0.7);
backdrop-filter: blur(15px);
z-index: 100;
position: fixed;
top: 86px;
}
.block_overlay.n_profile.show{
display: block;
}
.block_overlay.hidden{
display: none;
}
.block_overlay.n_profile.hidden{
display: none;
}
.w-68{
width: 68%;
}
@@ -2213,10 +2232,11 @@
.menu_buttons.right.open{
right: 0;
transition: 200ms;
position: unset;
position: absolute;
display: block;
padding-top: 10px;
width: 320px;
top: 0;
}
.menu_buttons.left.open{

View File

@@ -142,7 +142,7 @@ html, body{
.wrapper_content {
margin: 55px auto;
max-width: 1280px;
position: relative;
}
/*.wrapper_main{*/
@@ -1119,7 +1119,7 @@ h2.title_new_route{
.menu_profile {
width: 31%;
/*margin-right: 40px;*/
float: left;
/*float: left;*/
}
.menu_profile>div {

View File

@@ -43,7 +43,7 @@
// });
// }
// });
function init_arrival_DT (date,single=true,hour=true){
function init_arrival_DT (date=null,single=true,hour=true){
let minDate = null
if (date){
minDate = date

View File

@@ -699,7 +699,8 @@ function editRoute(id) {
changeTextButton.innerText = 'Сохранить изменения'
}
init_departure_DT()
init_arrival_DT()
sliderInit();

View File

@@ -58,6 +58,10 @@ function select_tab_profile (el,url,owner_type=null) {
let user_type = getInfoAboutUser()
if (user_type === 'mobile') {
closeCurtain()
} else {
if (!window.location.href.includes('profile')){
closeCurtain()
}
}
},
@@ -659,6 +663,7 @@ function closeCurtain () {
function open_curtain (left=null,right=null,overlay=null,close=null){
let page_profile = true
let curtain_name = ''
let curtain = ''
if (left || right){
@@ -686,13 +691,16 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
curtain.classList.add("close")
let overlay = document.querySelector(".block_overlay")
overlay.classList.add('hidden')
overlay.classList.remove('show')
} else {
if (overlay){
overlay.classList.toggle("hidden")
overlay.classList.toggle("show")
} else {
let overlay = document.querySelector(".block_overlay")
if (overlay){
overlay.classList.toggle("hidden")
overlay.classList.toggle("show")
}
}

View File

@@ -53,10 +53,12 @@
</head>
<body>
<div class="block_overlay hidden" onclick="open_curtain()"></div>
<div class="wrapper_main">
{% include 'blocks/b_header.html' %}
<div class="wrapper_content">
<div class="block_overlay hidden {% if not page.type == 'profile' %}n_profile{% endif %}" onclick="open_curtain()"></div>
<div class="menu_buttons curtain left close" data-name="Меню">
{# {% include "blocks/profile/b_buttons_menu_profile.html" %}#}
<div class="handler_menu close" onclick="open_curtain('left')">
@@ -68,11 +70,11 @@
</div>
{% block content %}
{% endblock %}
<div class="menu_buttons curtain right open" data-name="Пользователи">
<div class="menu_buttons curtain right open" data-name="Меню кнопок">
{% include "blocks/profile/b_buttons_menu_profile.html" %}
<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' %}">
<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' %}">
<div class="clear_both"></div>
</div>