Less and ccm-page

Permalink
Hello, as it's best practice to wrap all your classes in ccm-page. In less would it be best to define your styles like the following:

body { background: #fff }
.ccm-page {
header {
background: #000;
}
nav {
color: #fff;
}
}


Or would this have a huge impact on performance. I'm relatively new to less so any insight would be awesome!

 
Mainio replied on at Permalink Reply
Mainio
That's definitely the way to go defining the wrapper class.

Does not affect performance of your end users since you can use the built in assets caching, so that the less styles are not even parsed when normal visitors hit your site.

Don't know if it has any performance loss during the compilation. Haven't noticed any huge dealys when it runs through the less compiler during development.