Merge pull request #29 from ifraimka1/navbar

Внесла изменения в навбар, рут, и main scss. Убрала скролл
This commit is contained in:
Ifraim Solomonov authored and GitHub committed 2025-03-06 14:58:17 +03:00
commit d63ae96b63
3 files changed
+10 -9

No files matched your search

+1 -2
View File
@@ -4,8 +4,7 @@
#navbar { #navbar {
position: fixed; position: fixed;
top: 0; top: 0;
width: 100vw; width: 100%;
max-width: 100vw;
height: 108px; height: 108px;
padding: $navbar-padding-tb 10%; padding: $navbar-padding-tb 10%;
background-color:rgb(255, 255, 255); background-color:rgb(255, 255, 255);
+6 -4
View File
@@ -2,6 +2,10 @@
$news-card-gap: 1em; $news-card-gap: 1em;
body {
overflow-x: hidden; // Скрываем горизонтальный скролл
}
#react-page:has(> #mainpageheader) { #react-page:has(> #mainpageheader) {
margin-top: 0; margin-top: 0;
@@ -148,13 +152,11 @@ $news-card-gap: 1em;
} }
.project-list { .project-list {
position: relative; position: relative;
&::before { &::before {
content: ""; content: "";
position: absolute; position: absolute;
top: 0; top: 35%;
left: 0; left: 0;
width: 100%; // Увеличиваем ширину на 10%, чтобы занять отступ width: 100%; // Увеличиваем ширину на 10%, чтобы занять отступ
height: 465px; height: 465px;
@@ -162,13 +164,13 @@ $news-card-gap: 1em;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right center; background-position: right center;
background-size: contain; // Или cover, если нужно заполнить область background-size: contain; // Или cover, если нужно заполнить область
z-index: -1; z-index: -1;
transform: translateX(11.3%); // Смещаем влево, компенсируя padding transform: translateX(11.3%); // Смещаем влево, компенсируя padding
@media (max-width: 768px) { @media (max-width: 768px) {
display: none; // Скрываем картинку на мобильных display: none; // Скрываем картинку на мобильных
} }
} }
} }
+3 -3
View File
@@ -97,8 +97,8 @@
.scroll-to-top { .scroll-to-top {
position: fixed; position: fixed;
right: 2%; right: 2vw; // Используем vw для адаптивности
bottom: 15%; bottom: 5vh; // Используем vh для адаптивности
background-color: white; background-color: white;
border-radius: 50%; border-radius: 50%;
width: 61px; width: 61px;
@@ -108,7 +108,7 @@
@media (max-width: 768px) { @media (max-width: 768px) {
width: 45px; width: 45px;
height: 45px; height: 45px;
bottom: 24px; bottom: 5vh; // Можно также использовать vh для мобильных устройств
padding: 0; padding: 0;
} }
border: none; border: none;