Код
.project-details__container.project-details__container__loaded {
height: 100%;
padding: 20px;
opacity: 1;
transition: all 3s ease-in-out;
}
.project-details__cover.project-details__cover_loaded {
opacity: 1;
transition: all 5s ease-in-out;
}
не работает в следующем виде
.project-details {
&__container &__container__loaded {
height: 100%;
padding: 20px;
opacity: 1;
transition: all 3s ease-in-out;
}
&__cover &__cover_loaded {
opacity: 1;
transition: all 5s ease-in-out;
}
}
если убрать пробелы &__container&__container__loaded и &__cover&__cover_loaded будет ошибка
Module build failed (from ./node_modules/react-scripts/node_modules/sass-loader/dist/cjs.js):
SassError: "&" may only used at the beginning of a compound selector.
&__container&__container__loaded {
^