From c9bbe269b7dcef377a345b0c972599e7d55348d1 Mon Sep 17 00:00:00 2001 From: Andrian Mamchuk <55273209+StronDator@users.noreply.github.com> Date: Thu, 19 Sep 2024 15:16:35 +0300 Subject: [PATCH] Ready header moyon --- src/index.html | 93 +++++++++++++++++++++++++++++++++++++++++++++++++- src/style.css | 88 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 180 insertions(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index b39fe97123..3c24a2f3eb 100644 --- a/src/index.html +++ b/src/index.html @@ -11,12 +11,103 @@ content="ie=edge" /> Moyo header + + + -

Moyo header

+
+ + moyo logo + + +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..dcac210be3 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,91 @@ +h1, +h2, +h3, +h4, +h5, +h6, +p { + margin-top: 0; + margin-bottom: 0; +} + +ul, +ol { + padding-left: 0; + margin-top: 0; + margin-bottom: 0; +} + +button { + cursor: pointer; +} + body { + font-family: Roboto, sans-serif; + font-size: 16px; + text-transform: uppercase; + line-height: 1.5; + letter-spacing: 0.02em; +} + +img { + display: block; + max-width: 100%; +} + +.list { + list-style-type: none; +} + +.link { + text-decoration: none; +} + +:root { + --pressed: black; + --accent-gray: #00acdc; +} + +.header { + padding-top: 10px; + padding-bottom: 10px; + margin-right: 50px; + margin-left: 50px; + display: flex; + justify-content: space-between; +} + +.menu { + display: flex; + gap: 20px; +} + +.menu-link { + color: var(--pressed); + letter-spacing: 0.02em; + font-weight: 500; +} + +.menu-link:hover, +.menu-link:focus, +.menu-link:active { + color: var(--accent-gray); +} + +.nav-link { + position: relative; +} + +.nav-link:hover::after, +.nav-link:focus::after, +.nav-link:active::after { + position: absolute; + left: 0; + bottom: -18px; margin: 0; + content: ''; + width: 100%; + height: 4px; + border-radius: 2px; + background: var(--accent-gray); }