Skip to content

Instantly share code, notes, and snippets.

@brandonbarringer
Last active February 14, 2023 16:05
Show Gist options
  • Save brandonbarringer/6989b79906ece8dbedffcc46608c31db to your computer and use it in GitHub Desktop.
Save brandonbarringer/6989b79906ece8dbedffcc46608c31db to your computer and use it in GitHub Desktop.
Components/text-media
.text-media {
padding: rem(70px 0);
&__layout {
@include container;
display: flex;
flex-direction: column;
gap: 5%;
align-items: center;
justify-content: center;
@include media('>=small') {
flex-direction: row;
.text-media--right & {
flex-direction: row-reverse;
}
}
}
&__content {
position: relative;
}
&__media {
min-width: 50%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment