-
Notifications
You must be signed in to change notification settings - Fork 5k
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 #4535
Develop #4535
Changes from 3 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,77 @@ | ||||||
:root { | ||||||
--main-color: #00acdc; | ||||||
} | ||||||
|
||||||
body { | ||||||
font-family: Roboto, sans-serif; | ||||||
margin: 0; | ||||||
} | ||||||
|
||||||
.header { | ||||||
display: flex; | ||||||
justify-content: space-between; | ||||||
align-items: center; | ||||||
color: #000; | ||||||
position: relative; | ||||||
padding: 0 50px; | ||||||
} | ||||||
|
||||||
.header__logo img { | ||||||
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. still not fixed 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. напиши як 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. ви тут навчаэте чи допити влаштовуєте???? 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. 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
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. а в чому помилка коли на тег а стояв клас? 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. я не міг зрозуміти що потрібно якщо клас від а впринципі керував картинкою 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. Завжди краще робити саме таким чином Комбіновані селектори уже мають вищу специфічність, це надійніше і зручніше потім підтримувати якщо селектор це просто 1 класс :) |
||||||
height: 100%; | ||||||
width: 100%; | ||||||
} | ||||||
|
||||||
.header__logo { | ||||||
display: block; | ||||||
width: 40px; | ||||||
height: 40px; | ||||||
} | ||||||
|
||||||
.header__list { | ||||||
list-style: none; | ||||||
margin: 0; | ||||||
padding: 0; | ||||||
display: flex; | ||||||
} | ||||||
|
||||||
.nav__item { | ||||||
margin-left: 20px; | ||||||
text-decoration: none; | ||||||
} | ||||||
|
||||||
.nav__item:first-child { | ||||||
margin-left: 0; | ||||||
} | ||||||
|
||||||
.nav__link.is-active { | ||||||
color: var(--main-color); | ||||||
} | ||||||
|
||||||
.nav__link { | ||||||
position: relative; | ||||||
display: flex; | ||||||
align-items: center; | ||||||
height: 60px; | ||||||
font-family: Roboto, sans-serif; | ||||||
font-size: 12px; | ||||||
font-weight: 500; | ||||||
white-space: nowrap; | ||||||
text-decoration: none; | ||||||
text-transform: uppercase; | ||||||
color: #000; | ||||||
} | ||||||
|
||||||
.nav__link:hover { | ||||||
color: var(--main-color); | ||||||
} | ||||||
|
||||||
.is-active::after { | ||||||
content: ""; | ||||||
position: absolute; | ||||||
bottom: 0; | ||||||
left: 0; | ||||||
right: 0; | ||||||
height: 4px; | ||||||
border-radius: 2px; | ||||||
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.