Skip to content

Commit

Permalink
restyling header nav menu & add some new classes
Browse files Browse the repository at this point in the history
  • Loading branch information
goldipl committed Jun 29, 2024
1 parent 350bbb8 commit 02ca56b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 21 deletions.
20 changes: 10 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@
<nav class="bottom-header-nav">
<div class="bottom-header-nav__el sale">
<span>
<a href="">% sale</a>
<a href="">% Sale</a>
</span>
</div>
<div class="bottom-header-nav__el furnitures-element">
<span>
<a href="">meble</a>
<a href="">Meble</a>
</span>
<div class="bottom-header-nav__wrapper">
<div class="menu-furnitures-swiper swiper">
Expand Down Expand Up @@ -191,7 +191,7 @@
</div>
<div class="bottom-header-nav__el rooms-element">
<span>
<a href="">pomieszczenia</a>
<a href="">Pomieszczenia</a>
</span>
<div class="bottom-header-nav__wrapper">
<div class="menu-rooms-swiper swiper">
Expand Down Expand Up @@ -318,7 +318,7 @@
</div>
<div class="bottom-header-nav__el">
<span>
<a href="">dostępne od ręki</a>
<a href="">Dostępne od ręki</a>
</span>
<div class="bottom-header-nav__wrapper">
<div class="menu-available-swiper swiper">
Expand Down Expand Up @@ -349,27 +349,27 @@
</div>
<div class="bottom-header-nav__el">
<span>
<a href="">akcesoria i dekoracje</a>
<a href="">Akcesoria i dekoracje</a>
</span>
</div>
<div class="bottom-header-nav__el">
<span>
<a href="">nowości</a>
<a href="">Nowości</a>
</span>
</div>
<div class="bottom-header-nav__el">
<span>
<a href="">transport</a>
<a href="">Transport</a>
</span>
</div>
<div class="bottom-header-nav__el">
<span>
<a href="">kontakt</a>
<a href="">Kontakt</a>
</span>
</div>
<div class="bottom-header-nav__el">
<div class="bottom-header-nav__el blog">
<span>
<a href="">blog</a>
<a href="">Blog</a>
</span>
</div>
</nav>
Expand Down
16 changes: 11 additions & 5 deletions sass/common/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,17 @@
box-sizing: border-box;
cursor: pointer;
border-right: 2px solid $white;
border-bottom: 4px solid $transparent;
border-bottom: 3px solid $transparent;
&.blog,
&.sale {
span {
a {
font-weight: 700;
}
}
}
&:hover {
border-bottom: 4px solid $furnipol_orange;
border-bottom: 3px solid $furnipol_orange;
> span + .bottom-header-nav__wrapper {
display: flex;
}
Expand All @@ -272,7 +280,6 @@
font-size: 14px;
font-weight: 700;
line-height: 21px;
text-transform: uppercase;
user-select: none;
color: $furnipol_black;
&.without-link {
Expand All @@ -283,10 +290,9 @@
justify-content: center;
align-items: center;
font-size: 14px;
font-weight: 700;
font-weight: 500;
line-height: 21px;
padding: 14px 24px;
text-transform: uppercase;
user-select: none;
text-decoration: none;
color: $furnipol_black;
Expand Down
11 changes: 6 additions & 5 deletions sass/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1965,10 +1965,13 @@ body {
box-sizing: border-box;
cursor: pointer;
border-right: 2px solid #ffffff;
border-bottom: 4px solid rgba(255, 255, 255, 0);
border-bottom: 3px solid rgba(255, 255, 255, 0);
}
.header-2-0 .bottom-header-nav__el.blog span a, .header-2-0 .bottom-header-nav__el.sale span a {
font-weight: 700;
}
.header-2-0 .bottom-header-nav__el:hover {
border-bottom: 4px solid #eb7d3f;
border-bottom: 3px solid #eb7d3f;
}
.header-2-0 .bottom-header-nav__el:hover > span + .bottom-header-nav__wrapper {
display: flex;
Expand All @@ -1990,7 +1993,6 @@ body {
font-size: 14px;
font-weight: 700;
line-height: 21px;
text-transform: uppercase;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
Expand All @@ -2004,10 +2006,9 @@ body {
justify-content: center;
align-items: center;
font-size: 14px;
font-weight: 700;
font-weight: 500;
line-height: 21px;
padding: 14px 24px;
text-transform: uppercase;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
Expand Down
2 changes: 1 addition & 1 deletion sass/main.css.map

Large diffs are not rendered by default.

0 comments on commit 02ca56b

Please sign in to comment.