Is it feasible to achieve this, or are there alternative methods to accomplish something similar?
In a CSS file, we have the ability to set queries for various screen resolutions, allowing CSS rules to apply only to specific screens.
@media (max-width: 768px){
}
Is there a way to include a common parent class, as shown below?
@media (class: .home-page){
h1{
}
.banner-title{
}
}
This would automatically apply the '.home-page' class to all the CSS within this code block. The CSS rules will then only take effect if there is a parent class named '.home-page' in the HTML document.
I attempted to research this but it appears to not be currently achievable.