This commit is contained in:
2023-11-02 17:53:51 +03:00
parent 63d5b62229
commit defce7a85c
4 changed files with 17 additions and 5 deletions

View File

@@ -434,11 +434,11 @@
.btns_f_curtain.right{ .btns_f_curtain.right{
float: right; float: right;
} }
.btns_f_curtain.open{ .menu_buttons.close .btns_f_curtain{
transform: rotate(90deg); transform: rotate(90deg);
} }
.btns_f_curtain.close{ .menu_buttons.open .btns_f_curtain{
transform: rotate(270deg); transform: rotate(92700deg);
} }
.text_f_curtain{ .text_f_curtain{

View File

@@ -632,4 +632,16 @@ function show_header_list () {
if (el) { if (el) {
el.classList.toggle("show") el.classList.toggle("show")
} }
}
function open_curtain (left,right){
let curtain = ''
if (left){
curtain = document.querySelector(".menu_buttons")
} else if (right) {
curtain = ''
}
curtain.classList.toggle("close")
curtain.classList.toggle("open")
} }

View File

@@ -4,7 +4,7 @@
<section class="profile" > <section class="profile" >
<div class="menu_buttons close"> <div class="menu_buttons close">
{% include "blocks/profile/b_buttons_menu_profile.html" %} {% include "blocks/profile/b_buttons_menu_profile.html" %}
<div class="handler_menu close"> <div class="handler_menu close" onclick="open_curtain('left')">
<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' %}">

View File

@@ -1,5 +1,5 @@
{% load static %} {% load static %}
{% csrf_token %}
<div class="menu_profile"> <div class="menu_profile">
<div> <div>
<img class="svg" src="/static/img/svg/MagnifyingGlass.svg"> <img class="svg" src="/static/img/svg/MagnifyingGlass.svg">