-
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
moyo-header #5871
base: master
Are you sure you want to change the base?
moyo-header #5871
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 |
---|---|---|
@@ -1,3 +1,59 @@ | ||
/* stylelint-disable custom-property-empty-line-before */ | ||
/* stylelint-disable comment-empty-line-before */ | ||
/* stylelint-disable font-family-name-quotes */ | ||
body { | ||
margin: 0; | ||
font-family: 'Roboto', serif; | ||
--main-color: #00acdc; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
position: relative; | ||
justify-content: flex-end; | ||
background-color: #fff; | ||
} | ||
|
||
.logo { | ||
position: absolute; | ||
left: 50px; | ||
top: 10px; | ||
} | ||
|
||
.nav { | ||
display: flex; | ||
align-items: center; | ||
margin-right: 50px; | ||
line-height: 60px; | ||
text-transform: uppercase; | ||
font-size: 12px; | ||
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 |
||
font-weight: 500; | ||
} | ||
|
||
.nav__link { | ||
display: inline-block; | ||
} | ||
|
||
.nav__link:not(:first-child) { | ||
margin-left: 20px; | ||
} | ||
|
||
.nav__link:hover { | ||
color: var(--main-color); | ||
} | ||
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 |
||
|
||
.is-active { | ||
position: relative; | ||
color: var(--main-color); | ||
} | ||
|
||
.is-active::after { | ||
position: absolute; | ||
content: ''; | ||
left: 0; | ||
bottom: 0; | ||
height: 4px; | ||
border-radius: 8px; | ||
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 |
||
width: 100%; | ||
background-color: var(--main-color); | ||
} |
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
data-qa
attribute is used for testing purposes, such as identifying elements in automated tests. Ensure that this attribute is necessary for your project. If not, consider removing it to keep the HTML clean.