Answer the question
In order to leave comments, you need to log in
SASS. Compilation. What does the result depend on?
Code example:
.gallery {
@include flex (space-between, center, null, row);
position: relative;
%gallery__man-flex {
@include flex (center, center, wrap);
}
&__man {
@extend %gallery__man-flex;
width: 60vw;
margin: 0 auto;
padding-left: 10px;
padding-right: 10px;
}
&__man-wrapper {
@extend %gallery__man-flex;
margin: 0;
}
}
.gallery {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
position: relative; }
.gallery .gallery__man, .gallery .gallery__man-wrapper {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center; }
.gallery__man {
width: 60vw;
margin: 0 auto;
padding-left: 10px;
padding-right: 10px; }
.gallery__man-wrapper {
margin: 0; }
Answer the question
In order to leave comments, you need to log in
You have placeholder %gallery__man-flex
defined inside .gallery
, so all places where this placeholder will be used will inherit the context of its definition.
In other cases, the view notation &__man
means "expanding the current selector", so apparently no contextual selector is added. If you need it, then you should use it.& &__man
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question