Skip to content

Instantly share code, notes, and snippets.

@claudia-romano
Last active August 29, 2018 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claudia-romano/481a3c7e32834b3756b76317257cb9b8 to your computer and use it in GitHub Desktop.
Save claudia-romano/481a3c7e32834b3756b76317257cb9b8 to your computer and use it in GitHub Desktop.
/* add this class to parent element that contains icon + text */
.icon-text-aligner {
display: flex;
align-items: center;
> *:nth-child(2) {
margin-left: var(--space-xxs);
}
.icon {
color: inherit;
flex-shrink: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment