diff --git a/components/AdCard/AdCard.hbs b/components/AdCard/AdCard.hbs index ebe164b4..1233ea0f 100644 --- a/components/AdCard/AdCard.hbs +++ b/components/AdCard/AdCard.hbs @@ -80,7 +80,6 @@

{{cityName}}

{{address}}

- Показать на карте '; + burgerWrapper.classList.add('burger-button'); + burgerWrapper.onclick = () => { + menu.classList.toggle('menu-active'); + }; + + this.#menuContainer.appendChild(burgerWrapper); + this.#renderHrefs(); this.#renderMainText(); this.#renderSigns(); diff --git a/components/MapPage/MapPage.sass b/components/MapPage/MapPage.sass index 24a47aa9..61191ea5 100644 --- a/components/MapPage/MapPage.sass +++ b/components/MapPage/MapPage.sass @@ -21,4 +21,12 @@ height: calc(100vh - 110px) [class*="copyrights-pane"] - display: none !important \ No newline at end of file + display: none !important + +@media screen and (max-width: 900px) + .map-page + display: block + .people-list + display: none + .ymaps + width: 100% \ No newline at end of file diff --git a/components/ProfileData/ProfileData.sass b/components/ProfileData/ProfileData.sass index 17a458c2..c51f10e7 100644 --- a/components/ProfileData/ProfileData.sass +++ b/components/ProfileData/ProfileData.sass @@ -19,7 +19,6 @@ height: 100% &__img - position: absolute width: 100% height: 87% @@ -348,3 +347,12 @@ .none display: none + + +@media screen and (max-width: 900px) + .profile__data-container + width: 80% + .edit-form + padding: 0 + &__buttons + margin-top: 20px \ No newline at end of file diff --git a/components/ProfileInfo/ProfileInfo.scss b/components/ProfileInfo/ProfileInfo.scss index bd625901..e9fc341c 100644 --- a/components/ProfileInfo/ProfileInfo.scss +++ b/components/ProfileInfo/ProfileInfo.scss @@ -128,34 +128,42 @@ .js-graphic-href { position: relative; - + &:hover { - &::after { - content: "Следить за изменением рейтинга"; - font-size: 14px; - font-style: normal; - position: absolute; - bottom: calc(100% + 5px); - left: 50%; - transform: translateX(-50%); - background-color: rgba(0, 0, 0, 0.5); - color: white; - padding: 5px 10px; - border-radius: 5px; - white-space: nowrap; - z-index: 10; - opacity: 1; - visibility: visible; - transition: opacity 0.2s ease-in-out; - } + &::after { + content: 'Следить за изменением рейтинга'; + font-size: 14px; + font-style: normal; + position: absolute; + bottom: calc(100% + 5px); + left: 50%; + transform: translateX(-50%); + background-color: rgba(0, 0, 0, 0.5); + color: white; + padding: 5px 10px; + border-radius: 5px; + white-space: nowrap; + z-index: 10; + opacity: 1; + visibility: visible; + transition: opacity 0.2s ease-in-out; + } } &::after { - opacity: 0; - visibility: hidden; - transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out; + opacity: 0; + visibility: hidden; + transition: + opacity 0.2s ease-in-out, + visibility 0.2s ease-in-out; + } +} + +@media screen and (max-width: 600px) { + .mobile-hidden { + display: none; } - } +} @media screen and (max-width: 900px) { #profile-content { @@ -165,17 +173,12 @@ align-items: center; } - .mobile-hidden { - display: none; - } - .profile { &__profile-container { width: 80%; } &__data-container { - width: 90%; height: min-content; } } @@ -208,6 +211,7 @@ .edit-form__input-line { flex-direction: column; + align-items: flex-start; } } @@ -221,6 +225,7 @@ .profile-container { margin: 0; + min-height: fit-content; box-sizing: border-box; max-width: none; } diff --git a/components/ProfilePopup/ProfilePopup.scss b/components/ProfilePopup/ProfilePopup.scss index b0e16d4f..c5d4ab6a 100644 --- a/components/ProfilePopup/ProfilePopup.scss +++ b/components/ProfilePopup/ProfilePopup.scss @@ -12,7 +12,7 @@ .profile-list { position: relative; - top: 120px; + top: 70px; left: 88%; min-width: min-content; max-width: 120px; @@ -39,7 +39,7 @@ @media screen and (max-width: 900px) { .profile-list { - left: 80%; - transform: translateX(-50%); + left: 100%; + transform: translateX(-100%); } }