0.8.377
This commit is contained in:
@@ -598,6 +598,13 @@
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
.menu_buttons.curtain.left.open.first.filters{
|
||||||
|
left: -320px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu_buttons.curtain.left.open.filters{
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.menu_buttons.left.open{
|
.menu_buttons.left.open{
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -688,9 +695,6 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
.block_overlay.show.routes{
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
#customer>a, #mover>a{
|
#customer>a, #mover>a{
|
||||||
left: 5%;
|
left: 5%;
|
||||||
}
|
}
|
||||||
@@ -1156,6 +1160,9 @@
|
|||||||
.block_overlay.show{
|
.block_overlay.show{
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
.block_overlay.show.routes {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
/*этот стиль перекрывал блок диалога в сообщения блюром*/
|
/*этот стиль перекрывал блок диалога в сообщения блюром*/
|
||||||
.menu_buttons.right.open {
|
.menu_buttons.right.open {
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|||||||
@@ -2290,7 +2290,7 @@
|
|||||||
z-index: 998;
|
z-index: 998;
|
||||||
top: 61px;
|
top: 61px;
|
||||||
float: right;
|
float: right;
|
||||||
height: 695px;
|
/*height: 695px;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.cut_width_f_curtain.left{
|
.cut_width_f_curtain.left{
|
||||||
@@ -2301,7 +2301,7 @@
|
|||||||
z-index: 998;
|
z-index: 998;
|
||||||
top: 61px;
|
top: 61px;
|
||||||
float: left;
|
float: left;
|
||||||
height: 695px;
|
/*height: 695px;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu_buttons{
|
.menu_buttons{
|
||||||
@@ -2430,6 +2430,11 @@
|
|||||||
color: #000000;
|
color: #000000;
|
||||||
left: 272px;
|
left: 272px;
|
||||||
}
|
}
|
||||||
|
.menu_buttons.left.open.first.filters .handler_menu{
|
||||||
|
background: #FF613A;
|
||||||
|
color: #FFFFFF;
|
||||||
|
left: -49px;
|
||||||
|
}
|
||||||
.menu_buttons.right.open .handler_menu{
|
.menu_buttons.right.open .handler_menu{
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
@@ -2491,6 +2496,15 @@
|
|||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu_buttons.left.open.first.filters .btns_f_curtain{
|
||||||
|
transition: 200ms;
|
||||||
|
transform: rotate(270deg);
|
||||||
|
filter: brightness(0) saturate(100%) invert(100%) sepia(2%) saturate(0%) hue-rotate(162deg) brightness(104%) contrast(103%);
|
||||||
|
padding-left: 10px;
|
||||||
|
position: relative;
|
||||||
|
top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.text_f_curtain{
|
.text_f_curtain{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -729,7 +729,7 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
|
|||||||
}
|
}
|
||||||
if (close){
|
if (close){
|
||||||
// curtain = getOpenCurtain()
|
// curtain = getOpenCurtain()
|
||||||
|
turnOffFirst(curtain)
|
||||||
let handler_text = curtain.querySelector('.text_f_curtain')
|
let handler_text = curtain.querySelector('.text_f_curtain')
|
||||||
|
|
||||||
handler_text.innerHTML = curtain_name
|
handler_text.innerHTML = curtain_name
|
||||||
@@ -747,56 +747,71 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
let user_type = getInfoAboutUser()
|
if (curtain.classList.contains('first')){
|
||||||
if (user_type === 'mobile' || !window.location.host.includes('profile') || user_type === 'laptop' ) {
|
turnOffFirst(curtain)
|
||||||
curtain.classList.toggle("open")
|
let overlay = document.querySelector('.block_overlay.show')
|
||||||
curtain.classList.toggle("close")
|
if (!overlay){
|
||||||
newCurtainZIndex()
|
let overlay_clear = document.querySelector(".block_overlay")
|
||||||
let curtain_check = getOpenCurtain()
|
overlay_clear.classList.toggle('show')
|
||||||
if (curtain_check.length > 1){
|
overlay_clear.classList.toggle('hidden')
|
||||||
let curtain_old = getCurtainWIncreaceZindex(curtain_check,'decreace')['increace']
|
|
||||||
curtain_old.classList.toggle("close")
|
|
||||||
curtain_old.classList.toggle("open")
|
|
||||||
}
|
}
|
||||||
if (curtain_check.length > 0){
|
} else {
|
||||||
let overlay = document.querySelector('.block_overlay.show')
|
let user_type = getInfoAboutUser()
|
||||||
if (!overlay){
|
if (user_type === 'mobile' || !window.location.host.includes('profile') || user_type === 'laptop' ) {
|
||||||
let overlay_clear = document.querySelector(".block_overlay")
|
curtain.classList.toggle("open")
|
||||||
overlay_clear.classList.toggle('show')
|
curtain.classList.toggle("close")
|
||||||
overlay_clear.classList.toggle('hidden')
|
newCurtainZIndex()
|
||||||
|
let curtain_check = getOpenCurtain()
|
||||||
|
if (curtain_check.length > 1){
|
||||||
|
let curtain_old = getCurtainWIncreaceZindex(curtain_check,'decreace')['increace']
|
||||||
|
curtain_old.classList.toggle("close")
|
||||||
|
curtain_old.classList.toggle("open")
|
||||||
|
}
|
||||||
|
if (curtain_check.length > 0){
|
||||||
|
let overlay = document.querySelector('.block_overlay.show')
|
||||||
|
if (!overlay){
|
||||||
|
let overlay_clear = document.querySelector(".block_overlay")
|
||||||
|
overlay_clear.classList.toggle('show')
|
||||||
|
overlay_clear.classList.toggle('hidden')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
|
closeOverlay()
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (!window.location.href.includes('profile')){
|
||||||
closeOverlay()
|
//
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if (!window.location.href.includes('profile')){
|
|
||||||
//
|
let handler_text = curtain.querySelector('.text_f_curtain')
|
||||||
|
if (curtain.classList.contains('open')){
|
||||||
|
handler_text.innerHTML = 'Закрыть'
|
||||||
|
handler_text.style.fontSize = '13px'
|
||||||
|
} else {
|
||||||
|
handler_text.innerHTML = curtain_name
|
||||||
|
handler_text.style.fontSize = '13px'
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!curtain.classList.contains('open')){
|
||||||
|
body.style.overflowY = ''
|
||||||
|
} else {
|
||||||
|
body.style.overflowY = 'hidden'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let handler_text = curtain.querySelector('.text_f_curtain')
|
|
||||||
if (curtain.classList.contains('open')){
|
|
||||||
handler_text.innerHTML = 'Закрыть'
|
|
||||||
handler_text.style.fontSize = '13px'
|
|
||||||
} else {
|
|
||||||
handler_text.innerHTML = curtain_name
|
|
||||||
handler_text.style.fontSize = '13px'
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!curtain.classList.contains('open')){
|
|
||||||
body.style.overflowY = ''
|
|
||||||
} else {
|
|
||||||
body.style.overflowY = 'hidden'
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function turnOffFirst (el) {
|
||||||
|
if (el.classList.contains('first')){
|
||||||
|
el.classList.remove('first')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function closeOverlay () {
|
function closeOverlay () {
|
||||||
let curt = getOpenCurtain()
|
let curt = getOpenCurtain()
|
||||||
if (curt.length > 1){
|
if (curt.length > 1){
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body {% if page_type == 'routes' %}onscroll="scroll_ev(event,this)" {% endif %}>
|
<body {% if page_type == 'routes' %}onscroll="scroll_ev(event,this)" {% endif %}>
|
||||||
<div class="block_overlay {% if page_type == 'profile' %}show{% elif page_type == 'routes' %} show routes n_profile{% else %}hidden n_profile{% endif %}" onclick="open_curtain()"></div>
|
<div class="block_overlay {% if page_type == 'profile' %}show{% elif page_type == 'routes' %} routes n_profile{% else %}hidden n_profile{% endif %}" onclick="open_curtain()"></div>
|
||||||
<div class="wrapper_main">
|
<div class="wrapper_main">
|
||||||
|
|
||||||
{% include 'blocks/b_header.html' %}
|
{% include 'blocks/b_header.html' %}
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% if page_type == 'routes' %}
|
{% if page_type == 'routes' %}
|
||||||
<div class="cut_width_f_curtain left">
|
<div class="cut_width_f_curtain left">
|
||||||
<div class="menu_buttons curtain left open filters" data-name="Фильтры">
|
<div class="menu_buttons curtain left open first filters" data-name="Фильтры">
|
||||||
|
|
||||||
{% include "forms/f_find_route_filters_form.html" %}
|
{% include "forms/f_find_route_filters_form.html" %}
|
||||||
<div class="handler_menu close" onclick="open_curtain('left')">
|
<div class="handler_menu close" onclick="open_curtain('left')">
|
||||||
|
|||||||
Reference in New Issue
Block a user