CSS - wildcard for attribute, body and use of calc()

0 votes
214 views
added Jul 6, 2022 in CSS by lcjr First Warrant Officer (11,850 points)
body[class*='page-content-done-deal-'],
body.page-content-xxx {
    .logo-mobile {
        @media (max-width: 1024px) {
            position: relative; 
            left: calc(13% + -4%);
        } 
        @media (max-width: 912px) { 
            // left: 84%;
        } 
    }
}

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...