-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #5857
base: master
Are you sure you want to change the base?
Develop #5857
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,68 @@ | |
content="ie=edge" | ||
/> | ||
<title>Moyo header</title> | ||
<link | ||
rel="preconnect" | ||
href="https://fonts.googleapis.com" | ||
/> | ||
<link | ||
rel="preconnect" | ||
href="https://fonts.gstatic.com" | ||
/> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="./style.css" | ||
/> | ||
</head> | ||
<body> | ||
<h1>Moyo header</h1> | ||
<header class="header"> | ||
<a | ||
href="http://mateacademy.com" | ||
class="logo-link" | ||
> | ||
<img | ||
src="images/logo.png" | ||
alt="logo" | ||
class="logo" | ||
/> | ||
</a> | ||
<nav class="nav"> | ||
<ul class="list"> | ||
<li class="list-item"> | ||
<a class="item-link is-active"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
Apple | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a class="item-link">Samsung</a> | ||
</li> | ||
<li class="list-item"> | ||
<a class="item-link">Smartphones</a> | ||
</li> | ||
<li class="list-item"> | ||
<a class="item-link" data-qa="hover"> | ||
Laptops & Computers | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a class="item-link">Gadgets</a> | ||
</li> | ||
<li class="list-item"> | ||
<a class="item-link">Tablets</a> | ||
</li> | ||
<li class="list-item"> | ||
<a class="item-link">Photo</a> | ||
</li> | ||
<li class="list-item"> | ||
<a class="item-link">Video</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,86 @@ | ||
body { | ||
margin: 0; | ||
background-color: #e4e4e4; | ||
|
||
--blue-color: #00acdc; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
background-color: white; | ||
} | ||
|
||
.nav { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
height: 60px; | ||
} | ||
|
||
.list { | ||
position: relative; | ||
display: flex; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.list-item { | ||
list-style: none; | ||
margin: 0 10px; | ||
|
||
} | ||
|
||
.list-item:first-child { | ||
margin: 0; | ||
} | ||
|
||
.list-item:last-child { | ||
margin: 0; | ||
} | ||
|
||
.list a { | ||
display: block; | ||
height: 60px; | ||
line-height: 60px; | ||
font-family: Roboto, Arial, Helvetica, sans-serif; | ||
font-size: 12px; | ||
text-decoration: none; | ||
color: black; | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
} | ||
|
||
.list a:hover { | ||
text-decoration: underline; | ||
text-decoration-color: var(--blue-color); | ||
text-decoration-thickness: 2px; | ||
} | ||
|
||
.list .is-active { | ||
color: var(--blue-color); | ||
} | ||
|
||
.list .is-active::after { | ||
position: absolute; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
content: ""; | ||
width: 36px; | ||
height: 4px; | ||
left: 0; | ||
bottom: 0; | ||
background: var(--blue-color); | ||
border-radius: 8px; | ||
} | ||
Comment on lines
+66
to
+75
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
|
||
.logo { | ||
width: 40px; | ||
height: 40px; | ||
display: block; | ||
margin-right: 50px; | ||
} | ||
|
||
.logo-link { | ||
text-decoration: none; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
is-active
class is applied here. Ensure that only one element has this class at a time to avoid confusion or unexpected behavior.