formha/static/template/navbar.css

59 lines
1.5 KiB
CSS

.navbar-custom {
background-color: #50164A !important;
font-size: 20px;
/* min-height: 80px; */
& .navbar-brand, .nav-link {
color: white !important;
}
& .navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
& .navbar-nav .nav-item .nav-link {
position: relative;
text-decoration: none;
}
/* Efecto de hover */
& .navbar-nav.effect-3 .nav-item .nav-link:before,
& .navbar-nav.effect-3 .nav-item .nav-link:after {
content: "";
height: 1px;
width: 0;
opacity: 0;
background-color: #fff;
position: absolute;
transition: all .4s;
}
& .navbar-nav.effect-3 .nav-item .nav-link:before {
top: 0px;
}
& .navbar-nav.effect-3 .nav-item .nav-link:after {
bottom: 0px;
right: 0;
}
/* Aplicar el efecto de hover al enlace activo */
& .navbar-nav.effect-3 .nav-item .nav-link.active:before,
& .navbar-nav.effect-3 .nav-item .nav-link.active:after {
width: calc(100% + 0px);
opacity: 0.9;
}
/* Aplicar el efecto de hover al hacer hover */
& .navbar-nav.effect-3 .nav-item .nav-link:hover:before,
& .navbar-nav.effect-3 .nav-item .nav-link:hover:after {
width: calc(100% + 0px);
opacity: 0.9;
}
& li.nav-item {
margin-left: 1em;
margin-right: 1em;
}
}