diff --git a/readme.md b/readme.md index e72b8051e7..f21604d058 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 `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://rssydorenko.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://rssydorenko.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..0c93fae3dc 100644 --- a/src/index.html +++ b/src/index.html @@ -11,12 +11,114 @@ content="ie=edge" /> Moyo header + + + + + -

Moyo header

+
+ + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..ca3657e9ae 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,81 @@ -body { +body, +a, +ul, +li { margin: 0; + padding: 0; + box-sizing: border-box; + list-style: none; +} + +:root { + --main-color: #00acdc; +} + +a { + text-decoration: none; + color: inherit; +} + +html { + font-size: 16px; + font-family: Roboto, Arial, sans-serif; + font-style: normal; +} + +.header { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + box-sizing: border-box; + padding: 0 50px; +} + +.logo { + display: block; + height: 40px; + width: 40px; +} + +.nav__list { + display: flex; +} + +.nav__item { + color: black; +} + +.nav__item:not(:last-child) { + margin-right: 20px; +} + +.nav__item:hover { + color: var(--main-color); +} + +.nav__link { + position: relative; + display: flex; + align-items: center; + height: 60px; + margin: auto; + text-transform: uppercase; + font-size: 12px; + line-height: 16px; + font-weight: 500; +} + +.is-active { + color: var(--main-color); +} + +.is-active::after { + content: ''; + position: absolute; + width: 100%; + height: 4px; + bottom: 0; + left: 0; + background-color: var(--main-color); }