Skip to content

Commit

Permalink
Merge pull request #1280 from neeru24/patch-1
Browse files Browse the repository at this point in the history
Update style.css
  • Loading branch information
apu52 authored Oct 24, 2024
2 parents 8b4c052 + 2bf2d0b commit 4ddb0aa
Showing 1 changed file with 52 additions and 8 deletions.
60 changes: 52 additions & 8 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,61 +174,105 @@ footer {

color: #cacdd2;
}


/* Newsletter Section Styles */

/* Style placeholder text to be white */
input::placeholder {
color: white;
font-style: italic;
}

/* Newsletter Section Styles */
.newsletter-section {
color: #fff;
padding: 20px;
text-align: center;
border-radius: 10px;
margin-top: -50px;
transition: color 0.3s ease; /* Smooth color transition */
}

/* Heading styles */
.newsletter-section h3 {
font-size: 24px;
margin-bottom: 10px;
margin-bottom: 10px; /* Existing margin-bottom for spacing */
transition: color 0.3s ease, transform 0.3s ease; /* Add transform for size change */
}

/* Change heading color and size on hover */
.newsletter-section h3:hover {
color: rgb(255, 255, 102); /* Vibrant yellow on hover */
transform: scale(1.1); /* Increase size by 10% */
}

/* Paragraph styles */
.newsletter-section p {
font-size: 16px;
margin-bottom: 20px;
transition: color 0.3s ease, transform 0.3s ease; /* Add transform for size change */
}

/* Change paragraph color and size on hover */
.newsletter-section p:hover {
color: rgb(255, 255, 102); /* Vibrant yellow on hover */
transform: scale(1.05); /* Increase size by 5% */
}

/* Form styles */
#newsletter-form {
display: flex;
justify-content: center;
align-items: center;
gap: 20px; /* Gap between input and button */
}

/* Input field styles */
#newsletter-form input[type="email"] {
padding: 10px;
border-radius: 5px;
border: 1px solid white;
font-size: 16px;
width: 250px;
color: white;
margin-right: 10px;
background-color: transparent;
transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover effect for input field */
#newsletter-form input[type="email"]:hover {
background-color: rgba(255, 255, 255, 0.1);
border-color: #f0e68c;
box-shadow: 0 0 10px yellow; /* Glowing effect */
transform: scale(1.05); /* Slight size increase on hover */
}

/* Button styles */
#newsletter-form button {
padding: 10px 20px;
border-radius: 5px;
border: none;
background-color: rgb(215, 213, 85);
color: white;
background-color: rgb(215, 213, 85); /* Initial background color */
color: black; /* Default black text */
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
transition: background-color 0.3s, color 0.3s, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover effect for button */
#newsletter-form button:hover {
background-color: rgb(120, 118, 52);
background-color: rgb(255, 255, 102); /* Vibrant yellow */
color: black; /* Keep text black */
box-shadow: 0 0 15px yellow; /* Glowing effect */
transform: scale(1.05); /* Slight size increase on hover */
}

.success-message, .error-message {
margin-top: 10px;
font-size: 14px;
}


.socials {
list-style: none;
display: flex;
Expand Down Expand Up @@ -1532,4 +1576,4 @@ ul.socials {
}
.policy a{
margin: 10px 10px 50px 10px;
}
}

0 comments on commit 4ddb0aa

Please sign in to comment.