Skip to content

Instantly share code, notes, and snippets.

@omirobarcelo
Created April 17, 2021 10:45
Show Gist options
  • Save omirobarcelo/dcfad643b88e8f7abb471e99639aad1f to your computer and use it in GitHub Desktop.
Save omirobarcelo/dcfad643b88e8f7abb471e99639aad1f to your computer and use it in GitHub Desktop.
WebHero - 6 - Navbar responsive styling
nav {
@apply w-full flex items-center justify-between flex-wrap bg-orange-600 p-4;
}
.logo-container {
@apply flex items-center flex-shrink-0 text-white mr-6;
order: 0;
}
input[type="search"] {
@apply appearance-none border w-full py-1 px-2 text-gray-700 mt-3;
order: 1;
}
input[type="search"]:focus {
@apply outline-none shadow-outline;
}
.links-container {
@apply flex-grow flex items-center w-auto ml-6;
order: 0;
}
.svg-black {
stroke: black;
fill: black;
}
@screen sm {
input[type="search"] {
@apply w-1/2 mt-0;
order: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment