Commit 927dbcf0 authored by dagalkova's avatar dagalkova

update

parent 3f9524d9
...@@ -759,21 +759,40 @@ ...@@ -759,21 +759,40 @@
let secondSubmenus = document.querySelectorAll('.second-submenu'); let secondSubmenus = document.querySelectorAll('.second-submenu');
for (let i = 0; i < menuItems.length; i++) { for (let i = 0; i < menuItems.length; i++) {
menuItems[i].addEventListener('click', () => { menuItems[i].addEventListener('click', () => {
//for (let j = 0; j < menuItems.length; j++) { if (submenus[i].classList.contains('submenu--active')) {
if (submenus[i].classList.contains('submenu--active')) { submenus[i].classList.remove('submenu--active');
submenus[i].classList.remove('submenu--active'); for (let submenu of submenus) {
if (submenu.classList.contains('submenu--active')) {
submenu.classList.remove('submenu--active');
}
} }
else { }
//} else {
submenus[i].classList.add('submenu--active'); for (let submenu of submenus) {
if (submenu.classList.contains('submenu--active')) {
submenu.classList.remove('submenu--active');
}
} }
submenus[i].classList.add('submenu--active');
}
}); });
} }
for (let i = 0; i < secondMenuItems.length; i++) { for (let i = 0; i < secondMenuItems.length; i++) {
secondMenuItems[i].addEventListener('click', () => { secondMenuItems[i].addEventListener('click', () => {
if (secondSubmenus[i-1].classList.contains('submenu--active')) { if (secondSubmenus[i-1].classList.contains('submenu--active')) {
secondSubmenus[i-1].classList.remove('submenu--active'); secondSubmenus[i-1].classList.remove('submenu--active');
} else { for (let submenu of submenus) {
if (submenu.classList.contains('submenu--active')) {
submenu.classList.remove('submenu--active');
}
}
}
else {
for (let submenu of submenus) {
if (submenu.classList.contains('submenu--active')) {
submenu.classList.remove('submenu--active');
}
}
secondSubmenus[i-1].classList.add('submenu--active'); secondSubmenus[i-1].classList.add('submenu--active');
} }
}); });
......
...@@ -1003,7 +1003,7 @@ body { ...@@ -1003,7 +1003,7 @@ body {
.company-button { .company-button {
display: inline-block; display: inline-block;
position: absolute; position: absolute;
left: 45%; left: 46%;
bottom: 310px; bottom: 310px;
-webkit-transform: translate(-50%, 50%); -webkit-transform: translate(-50%, 50%);
transform: translate(-50%, 50%); transform: translate(-50%, 50%);
...@@ -2161,6 +2161,7 @@ body { ...@@ -2161,6 +2161,7 @@ body {
} }
.company-button { .company-button {
bottom: 255px; bottom: 255px;
left: 46.3%;
} }
.company-button img { .company-button img {
height: 154px; height: 154px;
...@@ -2372,6 +2373,9 @@ body { ...@@ -2372,6 +2373,9 @@ body {
.point { .point {
display: none; display: none;
} }
.company-button {
left: 45.5%;
}
} }
@media (max-width: 1100px) { @media (max-width: 1100px) {
...@@ -2415,6 +2419,9 @@ body { ...@@ -2415,6 +2419,9 @@ body {
.ecology-text { .ecology-text {
width: calc(100% - 550px); width: calc(100% - 550px);
} }
.company-button {
left: 45%;
}
} }
@media (max-width: 950px) { @media (max-width: 950px) {
...@@ -2434,6 +2441,9 @@ body { ...@@ -2434,6 +2441,9 @@ body {
.press-content-media-wrapper__link { .press-content-media-wrapper__link {
margin-right: 15px; margin-right: 15px;
} }
.company-button {
left: 44.5%;
}
.footer { .footer {
padding: 24px 16px; padding: 24px 16px;
height: 105px; height: 105px;
...@@ -2826,12 +2836,9 @@ body { ...@@ -2826,12 +2836,9 @@ body {
.company-video { .company-video {
width: 100%; width: 100%;
} }
.company-video__button {
display: block;
z-index: 10;
}
.company-button { .company-button {
display: none; bottom: 980px;
left: 41%;
} }
.company-button img { .company-button img {
height: 128px; height: 128px;
...@@ -3149,7 +3156,18 @@ body { ...@@ -3149,7 +3156,18 @@ body {
} }
} }
@media (max-width: 430px) { @media (max-width: 600px) {
.company-button {
bottom: 960px;
left: 38%;
}
}
@media (max-width: 450px) {
.company-button {
bottom: 940px;
left: 31%;
}
.footer-info-dev { .footer-info-dev {
margin: 0; margin: 0;
margin-top: 16px; margin-top: 16px;
......
This diff is collapsed.
...@@ -745,7 +745,7 @@ body { ...@@ -745,7 +745,7 @@ body {
&-button { &-button {
display: inline-block; display: inline-block;
position: absolute; position: absolute;
left: 45%; left: 46%;
bottom: 310px; bottom: 310px;
transform: translate(-50%, 50%); transform: translate(-50%, 50%);
animation: 10s linear 0s normal none infinite running company-button; animation: 10s linear 0s normal none infinite running company-button;
...@@ -1630,6 +1630,7 @@ body { ...@@ -1630,6 +1630,7 @@ body {
} }
&-button { &-button {
bottom: 255px; bottom: 255px;
left: 46.3%;
} }
&-button img { &-button img {
height: 154px; height: 154px;
...@@ -1866,6 +1867,9 @@ body { ...@@ -1866,6 +1867,9 @@ body {
.point { .point {
display: none; display: none;
} }
.company-button {
left: 45.5%;
}
} }
@media (max-width: 1100px) { @media (max-width: 1100px) {
...@@ -1902,6 +1906,9 @@ body { ...@@ -1902,6 +1906,9 @@ body {
.ecology-text { .ecology-text {
width: calc(100% - 550px); width: calc(100% - 550px);
} }
.company-button {
left: 45%;
}
} }
@media (max-width: 950px) { @media (max-width: 950px) {
...@@ -1920,6 +1927,9 @@ body { ...@@ -1920,6 +1927,9 @@ body {
.press-content-media-wrapper__link { .press-content-media-wrapper__link {
margin-right: 15px; margin-right: 15px;
} }
.company-button {
left: 44.5%;
}
.footer { .footer {
padding: 24px 16px; padding: 24px 16px;
height: 105px; height: 105px;
...@@ -2245,13 +2255,10 @@ body { ...@@ -2245,13 +2255,10 @@ body {
} }
&-video { &-video {
width: 100%; width: 100%;
&__button {
display: block;
z-index: 10;
}
} }
&-button { &-button {
display: none; bottom: 980px;
left: 41%;
} }
&-button img { &-button img {
height: 128px; height: 128px;
...@@ -2540,8 +2547,18 @@ body { ...@@ -2540,8 +2547,18 @@ body {
} }
} }
} }
@media (max-width: 600px) {
.company-button {
bottom: 960px;
left: 38%;
}
}
@media (max-width: 430px) { @media (max-width: 450px) {
.company-button {
bottom: 940px;
left: 31%;
}
.footer { .footer {
&-info { &-info {
&-dev { &-dev {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment