Skip to content

Instantly share code, notes, and snippets.

@NekitoSP
Last active July 26, 2019 04:42
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 NekitoSP/66e6cca410970d1f1f6f3c43ebe39219 to your computer and use it in GitHub Desktop.
Save NekitoSP/66e6cca410970d1f1f6f3c43ebe39219 to your computer and use it in GitHub Desktop.
SCSS extend example
<div class="about"> <!-- d-flex flex-row align-items-center -->
<div class="about__name"> <!-- lead text-center -->
Lorem Ipsum
</div>
<div class="about__content"> <!-- text-center -->
Dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
</div>
</div>
.about {
@extend .d-flex;
@extend .flex-row;
@extend .align-items-center;
}
.about__name {
@extend .text-center;
@extend .lead;
/* ... */
color: red;
}
.about__content {
@extend .text-center;
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment