Skip to content

Improved some hover effects and others #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 28 additions & 9 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,24 @@ body {
.header-list-nav ul a.active {
color: #088178;
}
.header-list-nav ul li a:hover::after,

/* .header-list-nav ul li a:hover::after, */
.header-list-nav ul li a{
text-align: center;
}
.header-list-nav ul li a::after,
.header-list-nav ul li a.active::after {
content: "";
width: 30%;
width: 0%;
transition: width 0.3s;
height: 2px;
background: #088178;
position: absolute;
bottom: -4px;
left: 20px;
bottom: -0.5rem;
left: 0;
}
.header-list-nav ul li a:hover::after{
width: 100%;
}

/* home main styles */
Expand All @@ -129,7 +138,8 @@ body {
width: 100%;
height: 100vh;
background-size: cover;
background-position: top -80% right 0;
/* background-position: top -80% right 0; */
background-position: top -50% right 0;
display: flex;
flex-direction: column;
align-items: flex-start;
Expand All @@ -140,6 +150,7 @@ body {
#hero h4 {
padding-bottom: 15px;
font-size: 40px;
text-shadow: 0px 0px 10px red;
}
#hero h2{
font-size: 70px;
Expand Down Expand Up @@ -180,10 +191,12 @@ body {
border: 1px solid #cce7d0;
border-radius: 4px;
margin: 15px 0;
transition: box-shadow 0.3s;
transition: all 0.3s;
}
#features .f-box:hover {
box-shadow: 10px 10px 54px rgba(0, 0, 0, 0.1);
/* box-shadow: 10px 10px 54px rgba(0, 0, 0, 0.1); */
box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.1);
transform: scale(1.1);
}
#features .f-box img {
width: 100%;
Expand Down Expand Up @@ -234,10 +247,12 @@ body {
border-radius: 25px;
position: relative;
box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.02);
transition: box-shadow 0.2s;
transition: all 0.2s;
}
.product-section .product-cart:hover {
background: white;
box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.06);
transform: scale(1.021);
}
.product-section .product-cart img {
width: 100%;
Expand Down Expand Up @@ -382,7 +397,7 @@ span {
background-repeat: no-repeat;
background-position: 180px;
background-color: #041e42;
height: 160px;
height: 10rem;
display: flex;
align-items: center;
justify-content: space-between;
Expand Down Expand Up @@ -423,6 +438,10 @@ span {
font-size: 17px;
border-radius: 0 6px 6px 0;
cursor: pointer;
transition: all 0.3s;
}
#newsletter .form button:hover{
background-color: #096660;
}

/* footer section styles */
Expand Down