-
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
add task solution #4902
base: master
Are you sure you want to change the base?
add task solution #4902
Changes from 1 commit
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,75 @@ | ||||
body { | ||||
margin: 0; | ||||
font-family: Roboto, sans-serif; | ||||
background-color: azure; | ||||
font-weight: 500; | ||||
font-style: normal; | ||||
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. This is the default value, you don't need to specify it. 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.
Suggested change
|
||||
height: 100%; | ||||
} | ||||
|
||||
.header { | ||||
background-color: #fff; | ||||
display: flex; | ||||
align-items: center; | ||||
padding: 0 50px; | ||||
} | ||||
|
||||
.logo { | ||||
width: 40px; | ||||
height: 40px; | ||||
margin: 10px 0; | ||||
display: block; | ||||
} | ||||
|
||||
.main-nav { | ||||
margin-left: auto; | ||||
box-sizing: border-box; | ||||
} | ||||
|
||||
.nav-list { | ||||
padding: 0; | ||||
margin: 0; | ||||
text-align: center; | ||||
box-sizing: border-box; | ||||
display: flex; | ||||
} | ||||
|
||||
.nav-list li { | ||||
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. |
||||
display: inline-block; | ||||
font-size: 12px; | ||||
text-transform: uppercase; | ||||
box-sizing: border-box; | ||||
} | ||||
|
||||
.nav-list li:not(:last-child) { | ||||
margin-right: 20px; | ||||
} | ||||
|
||||
.nav-link { | ||||
position: relative; | ||||
text-decoration: none; | ||||
color: black; | ||||
height: 60px; | ||||
line-height: 60px; | ||||
display: block; | ||||
} | ||||
|
||||
.nav-link.is-active { | ||||
color: #00acdc; | ||||
} | ||||
|
||||
.nav-link:hover { | ||||
color: #00acdc; | ||||
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. For the same properties it is better to use variables. |
||||
} | ||||
|
||||
.nav-link.is-active::after { | ||||
content: ' '; | ||||
position: absolute; | ||||
bottom: 0; | ||||
left: 0; | ||||
width: 100%; | ||||
height: 4px; | ||||
color: #00acdc; | ||||
background-color: #00acdc; | ||||
border-radius: 8px; | ||||
} |
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.
For logos, use the format: "[Organization name] logo."