Skip to content

Commit

Permalink
fix the header
Browse files Browse the repository at this point in the history
  • Loading branch information
bhoriunov committed Apr 29, 2024
1 parent ea2fc1a commit 16f6a78
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
18 changes: 9 additions & 9 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,53 +40,53 @@
/>
</a>
<nav class="nav">
<ul class="bar">
<ul class="nav__list">
<a
href="#"
class="bar__link is-active"
class="nav__link is-active"
>
Apple
</a>
<a
href="#"
class="bar__link"
class="nav__link"
>
Samsung
</a>
<a
href="#"
class="bar__link"
class="nav__link"
>
Smartphones
</a>
<a
href="#"
class="bar__link"
class="nav__link"
data-qa="hover"
>
Laptops &amp Computers
</a>
<a
href="#"
class="bar__link"
class="nav__link"
>
Gadgets
</a>
<a
href="#"
class="bar__link"
class="nav__link"
>
Tablets
</a>
<a
href="#"
class="bar__link"
class="nav__link"
>
Photo
</a>
<a
href="#"
class="bar__link"
class="nav__link"
>
Video
</a>
Expand Down
26 changes: 11 additions & 15 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
html {
:root {
--active-color: #00acdc;
}

.logo {
padding-left: 50px;
margin-top: 10px;
html {
font-family: Roboto, sans-serif;
font-weight: 500;
}

body {
margin: 0;
font-family: Roboto, sans-serif;
font-weight: 500;
font-style: normal;
}

header {
.header {
display: flex;
justify-content: space-between;
padding-right: 50px;
flex-direction: row;
padding: 0 50px;
align-items: center;
}

.bar {
.nav__list {
display: flex;
margin: 0;
padding: 0;
}

.bar__link {
.nav__link {
line-height: 60px;
text-decoration: none;
font-style: normal;
Expand All @@ -37,11 +34,11 @@ header {
text-transform: uppercase;
}

.bar__link:last-child {
.nav__link:last-child {
margin-right: 0;
}

.bar__link:hover {
.nav__link:hover {
color: var(--active-color);
}

Expand All @@ -52,7 +49,6 @@ header {

.is-active::after {
position: absolute;
top: 56px;
bottom: 0;
display: block;
content: '';
Expand Down

0 comments on commit 16f6a78

Please sign in to comment.