This commit is contained in:
SBD
2023-12-02 14:09:44 +03:00
parent b2cc7aa0e8
commit bbf5e2b21c
4 changed files with 19 additions and 2 deletions

View File

@@ -21,6 +21,10 @@ body,html{
'sans-serif';
}
body.n_scroll{
overflow-y: hidden;
}
.header{
height: 50px;
width: 100%;

View File

@@ -97,7 +97,7 @@
background: #10212B;
width: 320px;
position: fixed;
top: 40px;
top: 50px;
right: 0;
z-index: 101;
transition: 200ms;
@@ -128,6 +128,7 @@
}
.block_overlay.show{
display: block;
background: rgba(16, 33, 43, 0.70);
}
.curtain_txt_float{
float: right;
@@ -173,6 +174,10 @@
color: #000000;
padding-bottom: 15px;
border-bottom: 1px solid #D1D1D1;
text-transform: uppercase;
}
.line_go_to_sections .orange{
color: #FB6952;
}
.description_txt{
display: block;
@@ -214,6 +219,8 @@
}
.img_go_to_section{
width: 8px;
position: relative;
top: 1.6px;
}
.description_sections_buttons{
display: block;

View File

@@ -146,4 +146,10 @@ function openOverlay () {
let overlay = document.querySelector(".block_overlay")
overlay.classList.toggle("show")
overlay.classList.toggle("hide")
removeScrollBody()
}
function removeScrollBody () {
let body = document.querySelector("body")
body.classList.toggle("n_scroll")
}

View File

@@ -7,7 +7,7 @@
<div class="txt_section standart_semi_bold_txt">{{ section.name }}</div>
<div class="description_sections_buttons">
<div class="description_txt standart_txt">{{ section.description }}</div>
<div class="standart_txt line_go_to_sections">перейти в раздел <img class="img_go_to_section" src="{% static "/images/arrow_right_for_sections.svg" %}"></div>
<div class="standart_txt line_go_to_sections"><span class="orange">перейти в раздел</span> <img class="img_go_to_section" src="{% static "/images/arrow_right_for_sections.svg" %}"></div>
</div>
</a>
{% endfor %}