Skip to content

Commit

Permalink
Added hover effect for button, nav links and logo container
Browse files Browse the repository at this point in the history
  • Loading branch information
rammcodes committed Sep 14, 2021
1 parent 191b3fc commit a6effae
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
17 changes: 13 additions & 4 deletions css/style.css
Expand Up @@ -144,7 +144,10 @@ textarea {
display: inline-block;
font-weight: 700;
border-radius: 5px;
box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.15); }
box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.15);
transition: transform .5s; }
.btn:hover {
transform: translateY(-3px); }
.btn--bg {
padding: 1.5rem 8rem;
font-size: 2rem; }
Expand Down Expand Up @@ -502,7 +505,11 @@ textarea {
.header__logo-container {
display: flex;
align-items: center;
cursor: pointer; }
cursor: pointer;
color: #333;
transition: color .3s; }
.header__logo-container:hover {
color: #0062b9; }
.header__logo-img-cont {
width: 5rem;
height: 5rem;
Expand All @@ -525,7 +532,6 @@ textarea {
font-size: 1.8rem;
text-transform: uppercase;
font-weight: 700;
color: #333;
letter-spacing: 1px; }
.header__links {
display: flex; }
Expand All @@ -539,7 +545,10 @@ textarea {
color: #333;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700; }
font-weight: 700;
transition: color .3s; }
.header__link:hover {
color: #0062b9; }
@media only screen and (max-width: 56.25em) {
.header__link {
padding: 3rem 1.8rem;
Expand Down
5 changes: 5 additions & 0 deletions sass/abstracts/_utilities.scss
Expand Up @@ -97,6 +97,11 @@
font-weight: 700;
border-radius: $commonBorderRadius;
box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.15);
transition: transform .5s;

&:hover {
transform: translateY(-3px);
}

&--bg {
padding: 1.5rem 8rem;
Expand Down
12 changes: 11 additions & 1 deletion sass/components/_header.scss
Expand Up @@ -20,6 +20,12 @@
display: flex;
align-items: center;
cursor: pointer;
color: #333;
transition: color .3s;

&:hover {
color: $themeClrPrimary;
}
}
&__logo-img-cont {
width: 5rem;
Expand All @@ -46,7 +52,6 @@
font-size: 1.8rem;
text-transform: uppercase;
font-weight: 700;
color: #333;
letter-spacing: 1px;
}
&__links {
Expand All @@ -63,6 +68,11 @@
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700;
transition: color .3s;

&:hover {
color: $themeClrPrimary;
}
@include respond(tab-port) {
padding: 3rem 1.8rem;
font-size: 1.5rem;
Expand Down

0 comments on commit a6effae

Please sign in to comment.