I am building a front-end template with SCSS being compiled with web pack. I created a jumbotron that has an image and gave it an overlay which displays properly, but upon giving an overlay an opacity of 0.8, none of the elements (the image and the dark overlay) displays on the browser.
Note: the code works until I made it an RGBA and added opacity, then it stopped displaying
the SCSS code below:
.section {
// position: relative;
&-jumbotron {
height: 40rem;
background-image: linear-gradient(to right bottom, rgba(var(--color-grey-dark-1), 0.8), rgba(var(--color-grey-dark-5), 0.8)),
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
}
the variables are written in the root folder is:
:root {
--color-grey-dark-1: #333333;
--color-grey-dark-5: #222222;
}