I have a section that is repeated in several components and CSS styles are the same for all of them. To make the code cleaner, I have removed the repeated styles from each of the CSS style sheets of the components and put everything in the style sheet of the parent component. However, when I do not recognize them ... Will it be that I forgot to link a file? I'm new to Angular.
For example, I have the following components:
<app-root>
<componente-hijo1>...</componente-hijo1>
<componente-hijo2>...</componente-hijo2>
<componente-hijo3>...</componente-hijo3>
</app-root>
In each child component I have, for example, the class ".test" with a series of associated CSS attributes.
.prueba {
background-color: red;
color: blue;
...
}
What I want is not to repeat code and instead of having that class in each stylesheet of the children components, I have it only once in the parent's. Is that possible?