Skip to content

Instantly share code, notes, and snippets.

@omirobarcelo
Created April 17, 2021 10:57
Show Gist options
  • Save omirobarcelo/ec94f8f339089a5b50be504db8822865 to your computer and use it in GitHub Desktop.
Save omirobarcelo/ec94f8f339089a5b50be504db8822865 to your computer and use it in GitHub Desktop.
WebHero - 6 - Create responsive styling
.create-container {
@apply px-2 py-2 flex flex-col items-center;
}
form {
@apply w-full pt-6 pb-8 mb-4;
max-width: 768px;
}
.img-title-area {
@apply flex flex-col;
}
.img-area {
@apply flex-none mb-4;
margin-left: auto;
margin-right: auto;
}
.vote-area {
@apply w-full mt-4 mb-4;
margin-left: auto;
margin-right: auto;
}
@screen sm {
.create-container {
@apply px-4 py-6;
}
.img-title-area {
@apply flex-row;
}
.img-area {
@apply mb-0;
margin-left: 0;
margin-right: 0;
}
.vote-area {
@apply w-3/5 mb-0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment