From 4d762d0ce958e54097d188167bf145f807b3f60a Mon Sep 17 00:00:00 2001 From: Ayush Date: Sun, 5 Nov 2023 22:22:10 +0530 Subject: [PATCH] fixed navbar issue: #48 --- css/style.css | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/css/style.css b/css/style.css index c560d55..d6fd310 100644 --- a/css/style.css +++ b/css/style.css @@ -44,22 +44,24 @@ a:hover { color: #fed136 !important; } - - /* CSS */ .button-29 { - align-items: center; appearance: none; - background-image: radial-gradient(100% 100% at 100% 0, #5adaff 0, #5468ff 100%); + background-image: radial-gradient( + 100% 100% at 100% 0, + #5adaff 0, + #5468ff 100% + ); border: 0; border-radius: 6px; - box-shadow: rgba(45, 35, 66, .4) 0 2px 4px,rgba(45, 35, 66, .3) 0 7px 13px -3px,rgba(58, 65, 111, .5) 0 -3px 0 inset; + box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px, + rgba(45, 35, 66, 0.3) 0 7px 13px -3px, rgba(58, 65, 111, 0.5) 0 -3px 0 inset; box-sizing: border-box; color: #fff; cursor: pointer; display: inline-flex; - font-family: "JetBrains Mono",monospace; + font-family: "JetBrains Mono", monospace; height: 48px; justify-content: center; line-height: 1; @@ -70,12 +72,12 @@ a:hover { position: relative; text-align: left; text-decoration: none; - transition: box-shadow .15s,transform .15s; + transition: box-shadow 0.15s, transform 0.15s; user-select: none; -webkit-user-select: none; touch-action: manipulation; white-space: nowrap; - will-change: box-shadow,transform; + will-change: box-shadow, transform; font-size: 18px; position: fixed; bottom: 20px; @@ -83,11 +85,13 @@ a:hover { } .button-29:focus { - box-shadow: #3c4fe0 0 0 0 1.5px inset, rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset; + box-shadow: #3c4fe0 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, + rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset; } .button-29:hover { - box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset; + box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, + rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset; transform: translateY(-2px); } @@ -96,7 +100,6 @@ a:hover { transform: translateY(2px); } - h1, h2, h3, @@ -179,8 +182,9 @@ img::-moz-selection { } #mainNav { - position: relative; - background-color: #6f3d8c; + position: fixed; + top: 0; + background-color: #000000a1 !important; } @media only screen and (max-width: 990px) { #mainNav { @@ -220,7 +224,7 @@ img::-moz-selection { color: white; transition: 0.6s ease; font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif; } #mainNav .navbar-nav .nav-item .nav-link.active, @@ -261,7 +265,7 @@ img::-moz-selection { header.masthead { text-align: center; color: white; - background-image: url('../img/header-bg.jpg'); + background-image: url("../img/header-bg.jpg"); background-repeat: no-repeat; background-attachment: scroll; background-position: center center; @@ -708,7 +712,7 @@ header.masthead .intro-text .intro-heading { section#contact { background-color: #212529; - background-image: url('../img/map-image.png'); + background-image: url("../img/map-image.png"); background-repeat: no-repeat; background-position: center; }