Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
KOleksandrivna committed Dec 28, 2024
1 parent e17b79e commit d4d3b28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 5 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
rel="stylesheet"
href="./style.css"
/>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<header class="header">
Expand Down Expand Up @@ -57,7 +61,7 @@
<li class="nav__items">
<a
href="#laptops&computers"
class="nav__link color__words"
class="nav__link"
data-qa="hover"
>
Laptops & Computers
Expand Down
11 changes: 4 additions & 7 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ body {
width: 40px;
height: 40px;
padding: 10px 0;
cursor: pointer;
}
.nav__list {
display: flex;
Expand All @@ -46,13 +45,11 @@ body {
font-weight: 500;
text-align: center;
height: 60px;
display: block;
display: flex;
line-height: 60px;
}
.nav__link:hover {
text-decoration-line: underline;
text-decoration-color: var(--blue);
font-weight: 500px;
color: var(--blue);
}
.nav__items {
margin-left: 20px;
Expand Down Expand Up @@ -82,6 +79,6 @@ body {
background-color: var(--blue);
border-radius: 8px;
}
.color__words {
color: var(--blue);
.header__link {
display: flex;
}

0 comments on commit d4d3b28

Please sign in to comment.