Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $text: blue;
- $accent: green;
- .article {
- &__title {
- color: $accent;
- }
- // Applies margin only, when .article__title is present
- &__title + &__text {
- margin-top: 15px;
- }
- &__text {
- color: $text;
- }
- }
- /* compiled css */
- .article__title {
- color: green;
- }
- .article__title + .article__text {
- margin-top: 15px;
- }
- .article__text {
- color: blue;
- }
Add Comment
Please, Sign In to add comment