Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
EuJinnLucaShow committed Dec 8, 2022
1 parent 354e20d commit c56a5af
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
18 changes: 17 additions & 1 deletion css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ header .container {
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.page-header__link:hover::after,
/* .page-header__link:hover::after,
.page-header__link:focus::after {
opacity: 1;
transform: scaleX(1);
Expand All @@ -138,6 +138,22 @@ header .container {
opacity: 0;
transform: scaleX(0);
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
} */

.page-header__current {
color: var(--second-blue-color);
}

.page-header__current::after {
display: block;
position: absolute;
content: '';
left: 0;
bottom: 0;
width: 100%;
height: 4px;
background: var(--second-blue-color);
border-radius: 2px;
}

.page-header__contacts {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<a href="./index.html" class="logo page-header__logo">Web<span class="page-header__span">Studio</span></a>
<nav class="page-header__nav">
<ul class="page-header__list">
<li class="page-header__item"><a href="./index.html" class="page-header__link">Студія</a>
<li class="page-header__item"><a href="./index.html" class="page-header__link page-header__current">Студія</a>
</li>
<li class="page-header__item"><a href="./portfolio.html" class="page-header__link">Портфоліо</a></li>
<li class="page-header__item"><a href="#" class="page-header__link">Контакти</a></li>
Expand Down
6 changes: 4 additions & 2 deletions portfolio.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
<a href="./index.html" class="logo page-header__logo">Web<span class="page-header__span">Studio</span></a>
<nav class="page-header__nav">
<ul class="page-header__list">
<li class="page-header__item"><a href="./index.html" class="page-header__link">Студія</a></li>
<li class="page-header__item"><a href="./portfolio.html" class="page-header__link">Портфоліо</a>
<li class="page-header__item"><a href="./index.html" class="page-header__link">Студія</a>
</li>
<li class="page-header__item"><a href="./portfolio.html"
class="page-header__link page-header__current">Портфоліо</a>
</li>
<li class="page-header__item"><a href="#" class="page-header__link">Контакти</a></li>
</ul>
Expand Down

0 comments on commit c56a5af

Please sign in to comment.