how to add parent class in css file
sourcse css
.pagination {
font-size: 10px
}
a {
font-size: 30px
}
...............
To get something like this
.parent-class {
.pagination {
font-size: 10px
}
a {
font-size: 30px
}
...............
}
It should be a lot of it will automatically wrap
the structure you have is sass/scss/less.
In css, you do it like so:-
.parent-class .pagination {
font-size: 10px
}
.parent-class a {
font-size: 30px
}
...............
Once sass/scss/less is compiled, it generates the css structure above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With