-
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 #5841
base: master
Are you sure you want to change the base?
moyo_header #5841
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,102 @@ | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: Roboto, Arial, sans-serif; | ||
background-color: grey; | ||
} | ||
|
||
:root { | ||
--blue-color: #00acdc; | ||
} | ||
|
||
.nav { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
text-align: center; | ||
line-height: 60px; | ||
height: 60px; | ||
} | ||
|
||
@media (min-width: 1200px) { | ||
.nav { | ||
margin-left: 419px; | ||
} | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
.nav { | ||
margin-left: 243px; | ||
} | ||
} | ||
|
||
.header { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
background-color: white; | ||
text-transform: uppercase; | ||
height: 60px; | ||
} | ||
|
||
.img { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 40px; | ||
height: 40px; | ||
top: 10px; | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
padding-left: 50px; | ||
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 |
||
} | ||
|
||
.box { | ||
font-family: Roboto, sans-serif; | ||
font-size: 12px; | ||
text-align: left; | ||
text-underline-position: from-font; | ||
text-decoration: none; | ||
font-weight: 500; | ||
color: #000; | ||
margin-right: 20px; | ||
} | ||
|
||
.box-8 { | ||
font-family: Roboto, sans-serif; | ||
font-size: 12px; | ||
text-align: left; | ||
text-underline-position: from-font; | ||
text-decoration: none; | ||
font-weight: 500; | ||
color: #000; | ||
margin-right: 50px; | ||
} | ||
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. Redundant class definition: The styles for '.box-8' are almost identical to those for '.box'. Consider removing '.box-8' and applying the '.box' class to the corresponding HTML element for consistency and to avoid redundancy. |
||
|
||
.box:hover { | ||
color: var(--blue-color); | ||
} | ||
|
||
.is-active { | ||
position: relative; | ||
color: var(--blue-color); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-decoration: none; | ||
} | ||
|
||
.is-active::after { | ||
content: ''; | ||
position: absolute; | ||
bottom: -0.2px; | ||
left: 0; | ||
right: 0; | ||
margin: 0 auto; | ||
width: 37px; | ||
height: 4px; | ||
background-color: var(--blue-color); | ||
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.
Inconsistent class naming: The class for this link is 'box-8', whereas the previous links follow the pattern 'box box-x'. Consider renaming it to 'box box-8' for consistency.