Skip to content

Commit

Permalink
fix adaptive
Browse files Browse the repository at this point in the history
  • Loading branch information
Aweiro committed Oct 16, 2024
1 parent a6cfad8 commit 9e1cc8a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
18 changes: 15 additions & 3 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1030,12 +1030,17 @@ body {
color: rgb(46, 45, 45);
}
}
@media screen and (max-width: 1024px) {
@media screen and (max-width: 1280px) {
.container {
max-width: 90%;
max-width: 95%;
padding-left: 10px;
padding-right: 10px;
}
}
@media screen and (max-width: 1024px) {
.container {
max-width: 95%;
}
.navigation-list .nav__link {
margin: 0 1rem;
}
Expand Down Expand Up @@ -1238,8 +1243,15 @@ body {
}
}
@media screen and (max-width: 480px) {
.about-us {
margin-top: 20px;
margin-bottom: 20px;
}
.about-us__row {
margin-bottom: 0px; /* Зменшено до 10px для більшої компактності */
}
.background {
background-size: auto;
background-attachment: local;
}
.about-us__text {
font-size: 0.6em;
Expand Down
Binary file modified sass/.DS_Store
Binary file not shown.
27 changes: 23 additions & 4 deletions sass/base/_media.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@

// Адаптивність для планшетів (від 768px до 1024px)
@media screen and (max-width: 1024px) {


@media screen and (max-width: 1280px) {
.container {
max-width: 90%;
max-width: 95%;
padding-left: 10px;
padding-right: 10px;
}
}

// Адаптивність для планшетів (від 768px до 1024px)
@media screen and (max-width: 1024px) {
.container {
max-width: 95%;

}

.navigation-list .nav__link {
margin: 0 1rem;
Expand Down Expand Up @@ -238,8 +247,18 @@
// Адаптивність для дуже маленьких екранів (до 480px)
@media screen and (max-width: 480px) {

.about-us {
margin-top: 20px;
margin-bottom: 20px;
}

.about-us__row {
margin-bottom: 0px; /* Зменшено до 10px для більшої компактності */
}

.background {
background-size: auto;
background-attachment: local;

}

.about-us__text {
Expand Down

0 comments on commit 9e1cc8a

Please sign in to comment.