Answer the question
In order to leave comments, you need to log in
Import scss and use styles only if element is in parent?
Hey!
styles are written according to BEM, each block has its own scss file.
there is a sidebar from the ui library, with its own styles.
if the sidebar is a child of the .dashboard container, you need to overwrite some styles, if it is not a child, then we leave the styles from the ui kit.
there is a sidebar.scss file:
.sidebar {
&__inner {
...
&:hover {
...
}
}
...etc
}
.dashboard {
...
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question