Skip to content

Commit

Permalink
Remove gold square around contact us button on hover event
Browse files Browse the repository at this point in the history
  • Loading branch information
RadioPotin committed Oct 23, 2024
1 parent 9cbe99e commit e7677bd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion assets/sass/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ nav.navbar {
}
}

// Contact button styling
// Contact button specific styles (Overrides nav-item styles)
#contact-button {
background-color: #ffcc00; // Gold button
color: black;
Expand All @@ -141,6 +141,16 @@ nav.navbar {
color: #000;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

// Remove hover border effect from the nav-item class
&.li.nav-item {
border: none;
&:hover {
background-color: #fff; // Keep hover effect clean
border: none; // Prevent square border issue
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); // Keep round shape on hover
}
}
}

// Mobile styles
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/site-navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</li>
{{ end }}
{{ with .Site.GetPage "/contact.md" }}
<li class="nav-item {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl3" "pr3" }}">
<li class="nav-item-btn {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl3" "pr3" }}">
<a class="hover-white no-underline white-90" href="{{ .RelPermalink }}" title="{{ i18n "pageTitle" . }}">
<button id="contact-button" class="btn btn-success black-90">{{ .Params.button_text }}</button>
</a>
Expand Down

0 comments on commit e7677bd

Please sign in to comment.