OscarSierra (Talk | contribs) |
|||
Line 107: | Line 107: | ||
width: 100%; | width: 100%; | ||
} */ | } */ | ||
+ | |||
+ | .nav-pills .nav-link.active, .nav-pills .show > .nav-link { | ||
+ | background-color: transparent; | ||
+ | } | ||
/* Background from template */ | /* Background from template */ | ||
Line 226: | Line 230: | ||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
z-index: 1; | z-index: 1; | ||
+ | background-color : #ccbacc; | ||
} | } | ||
Line 233: | Line 238: | ||
display: block; | display: block; | ||
white-space: normal; | white-space: normal; | ||
+ | } | ||
+ | .dropdown-item:focus, .dropdown-item:hover{ | ||
+ | background-color: #ccbacc; | ||
} | } | ||
Line 385: | Line 393: | ||
// Make social-links div draggable | // Make social-links div draggable | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
+ | $(".dropdown-item").on("click", (event)=>{ | ||
+ | document.getElementsByClassName('nav-link active')[0].classList.remove('active') | ||
+ | event.currentTarget.parentElement.parentElement.firstElementChild.classList.add('active') | ||
+ | }) | ||
function handle_mousedown(event) { | function handle_mousedown(event) { | ||
Line 428: | Line 440: | ||
}); | }); | ||
}); | }); | ||
+ | |||
</script> | </script> | ||
Revision as of 15:15, 3 September 2018