From 2d46b869c43c27718f93671dc3a47fe572a727b3 Mon Sep 17 00:00:00 2001 From: Suhaina Fathima M <153417476+SuhainaFathimaM@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:08:54 +0530 Subject: [PATCH] Made it responsive and added other hovering effects and transitions --- Projects/Pet_Website/assets/css/style.css | 64 ++++++++++++++++++++--- 1 file changed, 58 insertions(+), 6 deletions(-) diff --git a/Projects/Pet_Website/assets/css/style.css b/Projects/Pet_Website/assets/css/style.css index 2bcde0cb..ac9562b0 100644 --- a/Projects/Pet_Website/assets/css/style.css +++ b/Projects/Pet_Website/assets/css/style.css @@ -529,10 +529,6 @@ body { } - - - - /*-----------------------------------*\ #SERVICE \*-----------------------------------*/ @@ -638,6 +634,13 @@ body { margin-block-end: 25px; } +.footer-link { + padding-block: 4px; + transition: var(--transition-1); +} + +.footer-link:is(:hover, :focus) { color: var(--amber); } + .footer-text .link { display: inline-block; color: var(--portland-orange); @@ -658,6 +661,54 @@ body { color: var(--portland-orange); } +/* Contact Form Styling */ +#contact { + padding: 50px 0; + background-color: #F7BB4A; + margin-bottom: 20rem; +} + +.contact-form-wrapper { + background: #fff; + padding: 40px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + border-radius: 10px; +} + +.form-group { + margin-bottom: 20px; +} + +.form-control { + width: 100%; + padding: 15px; + margin-top: 5px; + border-radius: 10px; + border: 1px solid #ccc; + font-size: 1em; + transition: border-color 0.3s, box-shadow 0.3s; +} + +.form-control:focus { + border-color: #5cb85c; + box-shadow: 0 0 5px rgba(92, 184, 92, 0.5); +} + +.btn-primary { + background-color: #5cb85c; + border: none; + color: white; + padding: 15px 25px; + font-size: 1.2em; + border-radius: 10px; + cursor: pointer; + transition: background-color 0.3s; +} + +.btn-primary:hover { + background-color: #4cae4c; +} + .social-list { display: flex; gap: 10px; @@ -1081,7 +1132,6 @@ body { - /** * responsive for large than 1200px screen */ @@ -1134,6 +1184,7 @@ body { .footer { padding-block-start: 40px; } } + /* General Styles */ body { font-family: Arial, sans-serif; @@ -1198,9 +1249,10 @@ body { background-color: #5cb85c; border: none; color: white; - padding: 15px; + padding: 15px 25px; font-size: 1.2em; border-radius: 10px; + cursor: pointer; transition: background-color 0.3s; }