Created
December 4, 2019 19:14
-
-
Save andreaseriksson/33123cf6ce8289778715f56ce0f01285 to your computer and use it in GitHub Desktop.
Create a Bootstrap navbar with Tailwind CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.navbar-toggler-icon { | |
background-image: url("data:image/svg+xml,<svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'><path stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>"); | |
} | |
.navbar-toggler-icon { | |
content: ""; | |
} | |
.navbar-collapse.show { | |
@apply block | |
} | |
.navbar-collapse.show .nav-link { | |
@apply px-0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example is made by using regular Bootstrap JS