diff --git a/readme.md b/readme.md index e72b8051e7..ff17af9903 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://AndriiZakharenko.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://AndriiZakharenko.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..5f8fbdc698 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,100 @@ rel="stylesheet" href="./style.css" /> + + + + -

Moyo header

+
+ +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..529f4a5cab 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,103 @@ +/* ======= VARS ======= */ + +:root { + /* colors */ + --black: #000; + --grey: #666; + --yellow: #f0f4e7; + --violet: #e3d9ed; + --white: #fff; + --blue: #00acdc; + + /* font-size */ + --main: 12px; + --line-height: 14px; +} + +/* ======= NULL CSS ======= */ + +html { + font-family: Roboto, sans-serif; + font-weight: 500; + font-style: normal; + font-size: 12px; + color: var(--main); + background-color: var(--white); +} + body { margin: 0; } + +ul, +li { + list-style: none; + padding: 0; + margin: 0; +} + +a, +a:visited { + text-decoration: none; +} + +/* =======HEADER ======= */ + +.header__wraper { + display: flex; + padding: 0 50px; + justify-content: space-between; + align-items: center; +} + +.header__logo { + align-self: center; + justify-content: center; + height: 40px; +} + +.header__list { + display: flex; +} + +.header__item:not(:first-child) { + margin-left: 20px; +} + +.header__link { + font-weight: 500; + font-size: var(--main); + line-height: 60px; + text-transform: uppercase; + text-align: center; + display: flex; + align-items: center; + color: var(--black); + height: 60px; + transition: color 0.3s ease; +} + +.header__link:hover { + color: var(--blue); +} + +.header__link:active { + color: var(--blue); + box-shadow: 0 4px 0 var(--blue); +} + +.is-active { + position: relative; + color: var(--blue); +} + +.is-active::after { + content: ''; + position: absolute; + bottom: 0; + left: 0; + height: 4px; + width: 100%; + background-color: var(--blue); + border-radius: 8px; +}