diff --git a/readme.md b/readme.md index 8a1dd91f32..66ad840333 100644 --- a/readme.md +++ b/readme.md @@ -27,8 +27,8 @@ The page should match the design Pixel Perfect: all the sizes, colors and distan ❗️ Replace `` with your GitHub username and copy the links to the `Pull Request` description: -- [DEMO LINK](https://.github.io/layout_moyo-header/) -- [TEST REPORT LINK](https://.github.io/layout_moyo-header/report/html_report/) +- [DEMO LINK](https://tonboybeng.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://tonboybeng.github.io/layout_moyo-header/report/html_report/) ❗️ Copy this `Checklist` to the `Pull Request` description after links, and put `- [x]` before each point after you checked it. diff --git a/src/index.html b/src/index.html index b39fe97123..5f6e249e5d 100644 --- a/src/index.html +++ b/src/index.html @@ -11,12 +11,96 @@ content="ie=edge" /> Moyo header + -

Moyo header

+
+ + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..878956cd08 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,79 @@ body { margin: 0; + font-family: Roboto, Arial, sans-serif; +} + +.header { + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + padding: 0 50px; + height: 60px; + line-height: 60px; + margin: 0 auto; +} + +@media (min-width: 1200px) { + .header { + width: 1100px; + } +} + +@media (min-width: 1024px) and (max-width: 1199px) { + .header { + width: 924px; + } +} + +@media (max-width: 1023px) { + .header { + width: calc(100vw - 100px); + } +} + +.logo { + display: inline-block; + width: 40px; + height: 40px; + line-height: 40px; +} + +.nav__list { + list-style: none; + display: flex; + align-items: center; +} + +.nav__link { + display: block; + text-decoration: none; + text-transform: uppercase; + font-size: 12px; + line-height: 55px; + color: #000; + font-weight: 500; + font-style: normal; + text-align: center; + margin: 0 10px; +} + +.nav__link__first { + margin-left: 0; +} + +.nav__link__last { + margin-right: 0; +} + +.is-active { + color: #00acdc; + padding-top: 5px; + border-bottom: 5px solid #00acdc; + border-radius: 2px; +} + +.nav__link:hover { + color: #00acdc; + text-decoration: underline; }