Last active
July 26, 2019 04:42
-
-
Save NekitoSP/66e6cca410970d1f1f6f3c43ebe39219 to your computer and use it in GitHub Desktop.
SCSS extend example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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