I have a login page and I cannot color its background. I was able to color the app-login (name of my login component) element by adding
:host {
display: block;
background-color: blue
}
to my scss file. It was suggested in here
But only the background of component element is colored. The other parts of the page remains white. I can color the html element on browser
while inspecting. I added background-color:blue; to html{} tag.
I did the same thing on my .scss file but it didnt work. I also tried with !important but it still is not working.
My login.component.scss file:
:host {
display: block;
background-color: blue;
}
html{
background-color: blue !important; // not working
}
.card-container.card {
max-width: 400px;
padding: 50px 60px;
}
.card {
background-color: #F7F7F7;
padding: 20px 25px 30px;
margin: 0 auto 25px;
margin-top: 220px;
}