From ec521eba08fa6737ade27d1be9614f91cda84c18 Mon Sep 17 00:00:00 2001 From: Kolihay Date: Sun, 15 Dec 2024 17:01:04 +0200 Subject: [PATCH] add task solution --- src/index.html | 93 ++++++++++++++++++++++++++++++++++++++++++++++++-- src/style.css | 85 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 176 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index b39fe97123..c1182a0b6e 100644 --- a/src/index.html +++ b/src/index.html @@ -4,19 +4,108 @@ Moyo header + -

Moyo header

+
+ + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..e8a0b24a1d 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,88 @@ +:root { + --blue-color: #00acdc; +} + +html { + font-family: Roboto, sans-serif; +} + body { margin: 0; + background-color: rgb(207, 201, 201); +} + +.header { + background-color: #fff; + padding: 0 50px; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; +} + +.nav { + max-width: 1000px; + box-sizing: border-box; + display: flex; + align-items: center; + justify-content: flex-start; +} + +.nav__list { + display: flex; + list-style: none; + margin: 0; + padding: 0; + width: 100%; + flex-wrap: nowrap; +} + +.nav__item { + margin-right: 20px; + flex-shrink: 1; +} + +.nav__item:last-child { + margin-right: 0; +} + +.nav__link { + text-decoration: none; + font-size: 12px; + font-weight: 500; + color: black; + text-transform: uppercase; + display: block; + height: 60px; + line-height: 60px; + position: relative; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.nav__link:hover { + color: var(--blue-color); +} + +.nav__link.is-active { + color: var(--blue-color); +} + +.nav__link.is-active::after { + content: ''; + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 4px; + background-color: var(--blue-color); + border-radius: 8px; +} + +.img { + margin-top: 1px; + max-width: 40px; + max-height: 40px; + flex-shrink: 0; }