Search code examples
csssublimetextlinesprefix

Is there anyway I can prefix over 1000 lines of CSS at once?


I have some h1, h2, h3 and a lot of bootstrap snippets that I want to apply only to a specific part of my site, I added a unique class, say .unique but it would take hours to prefix over 1000 of CSS lines

I use sublime text

Thanks in advance


Solution

  • You could use a CSS-preprocessor like LESS or SASS (there are more). Both can do what you want, by just doing this:

    .unique {
        // Old CSS goes here
    }
    

    The have many other advantages over normal CSS.