Odoo Technical

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

How can I apply styles to a parent element when a child element has a specific class in SCSS?

Avatar
gayathri_k

How can I apply styles to a parent element when a child element has a specific class in SCSS?

Avatar
Discard
1 Answer
0
Avatar
gowthami
Best Answer

Project : DBoySilva Mandalay
File : style.scss
Issue is : Can't able to add style in parent class? (At a action time)
Solution : 
.mybox_one:has(.show) {
    .....
      / STYLES /
      .....
}
Note: mybox_one - child class ; show - parent class 


Avatar
Discard