C
C
Cyril2020-11-11 16:43:47
Sass
Cyril, 2020-11-11 16:43:47

Sass does not compile the rgba property. Why?

I need to create a background with 0.6 opacity, opacity doesn't work. inside are other elements that do not need transparency. Decided to install rgba

.subheader
    height: 84px;
    background-color:rgba(0,0,0, 0.6)

After compiling to css rgba disappears
.subheader {
  height: 84px;
}

If you put rgba directly in css, then everything works as it should, but after working with sass, all css properties that are not in sass are reset, what should I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-11-11
@zakatoaoa

You have the wrong syntax there. That's right:

.subheader
    height: 84px
    background-color: rgba(0,0,0, 0.6)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question