I've been experimenting with different approaches to modify the background color and text color of the dropdown menu (dropdown-menu & dropdown-item), but I haven't had any success so far. Currently, the dropdown has a very light grey background color with a medium light grey hover effect on each item, along with yellow text. The lack of contrast between these colors is bothering me, and I need to change them.
/* navbar */
.navbar-nav {
font-weight: bold !important;
}
/* Navbar Background Color */
.nav-item a,
.nav-item a:link,
.nav-item a:visited {
color: var(--bodyPage) !important;
}
/* Navigation Item Font Color */
.nav-item a:hover,
.nav-item a:focus {
color: var(--linkHover) !important;
}
/* Hover Font Color for Navigation Items */
.active a,
.nav-item .active a:link,
.active a:visited {
color: var(--navActive) !important;
}
/* Active Navigation Item Font Color */
.active a:hover,
.active a:focus {
color: var(--linkHover) !important;
}
/* Hover Font Color for Active Nav Items */
/* Links */
a,
a:link,
a:visited {
color: var(--link);
}
a:hover,
a:focus {
color: var(--linkHover);
}
.site-footer a,
.site-footer a:link,
.site-footer a:visited {
color: var(--link);
}
/* Footer Link Color */
.site-footer a:hover,
.site-footer a:focus {
color: var(--linkHover);
}
/* Hover Link Color in Footer */
.site-page a,
.site-page a:link,
.site-page a:visited {
color: var(--link);
}
/* Page Body Link Color */
.site-page a:hover,
.site-page a:focus {
color: var(--linkHover);
}
/* Hover Link Color in Page Body */
.banner a,
.banner a:link,
.banner a:visited {
color: var(--link);
}
/* Banner Link Color */
.banner a:hover,
.banner a:focus {
color: var(--linkHover);
}
/* Hover Link Color in Banner */
.no-banner a,
.no-banner a:link,
.no-banner a:visited {
color: var(--link);
}
/* No Banner Link Color */
.no-banner a:hover,
.no-banner a:focus {
color: var(--linkHover);
}
/* Hover Link Color in No Banner */
.navbar-default .navbar-toggle {
background-color: red !important;
}
@media (max-width:992px) {
.navbar-nav {
background-color: black !important;
padding: 8px !important;
}
}
/* Dropdown Menu */
.dropdown-menu {
background-color: rgb(99, 97, 97) !important;
}
.dropdown-item a:hover {
background-color: rgb(0, 0, 0) !important;
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="21434e4e55525553405161150f110f11">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="98e8f7e8e8fdeab6f2ebd8a9b6a9aab6a1">[email protected]</a>/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aac8c5c5ded9ded8cbdaea9e849a849a">[email protected]</a>/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<body data-spy="scroll" data-target=".site-navbar-target" data-offset="300">
<div class="site-wrap" id="home-section">
<header class="container-fluid sticky site-header" id="headerSite">
<div class="container">
<nav class="navbar navbar-expand-md navbar-light">
<div class="collapse navbar-collapse justify-content-between" id="navbarCollapse">
<div class="navbar-nav mr-auto">
<li class="nav-item"><a href="/dashboard" class="nav-link">Dashboard</a></li>
<div class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" id="dropdownNav" data-bs-toggle="dropdown">database</a>
<div class="dropdown-menu" aria-labelledby="dropdownNav">
<a href="..." class="dropdown-item">table1</a>
<a href="..." class="dropdown-item">table2</a>
<a href="..." class="dropdown-item">table3</a>
</div>
</div>
</div>
</div>
</nav>
</div>
</header>