Skip to content

Commit

Permalink
make changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivsasha committed Feb 11, 2025
1 parent 691881b commit e145337
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div class="logo">
<a href="#">
<img
src="./images/logo.png"
src="/src/images/logo.png"
alt="Moyo"
/>
</a>
Expand Down
36 changes: 22 additions & 14 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
* {
html {
margin: 0;
padding: 0;
box-sizing: border-box;

--color-nav: #00acdc;
}

body {
Expand Down Expand Up @@ -31,14 +33,23 @@ body {
.menu {
display: flex;
flex-grow: 1;
justify-content: flex-end; /* Центруємо меню */
justify-content: flex-end;
align-items: center;
}

.menu ul {
display: flex;
list-style: none;
gap: 25px; /* Відстань між елементами */
}

.menu li {
display: flex;
align-items: center;
margin-right: 25px;
}

.menu li:last-child {
margin-right: 0;
}

.menu a {
Expand All @@ -51,34 +62,31 @@ body {
padding: 10px 5px;
}

.menu li {
display: flex;
align-items: center;
}

.menu .blue {
color: #00acdc;
color: var(--color-nav);
}

.menu .is-active::after {
content: '';
position: absolute;
left: 50%;
bottom: -4px;
width: 18px; /* Зробити підкреслення компактним */
width: 37px;
height: 4px;
border-radius: 8px;
background-color: #00acdc;
transform: translateX(-50%);
}

.menu a:hover {
color: #00acdc;
color: var(--color-nav);
}

/* Адаптація для 1024px */
@media (max-width: 1024px) {
.menu ul {
gap: 15px;
.menu li {
margin-right: 15px;
}
.menu li:last-child {
margin-right: 0;
}
}

0 comments on commit e145337

Please sign in to comment.