0
Welcome Guest! Login
0 items Join Now

LESS CSS and override Information

    • Mark0514's Avatar
    • Mark0514
    • Sr. Rocketeer
    • Posts: 156
    • Thanks: 2

    LESS CSS and override Information

    Posted 12 years 5 months ago
    • Can someone point me to the proper thread or resource where I can try to figure this out? I want to add some custom divs and perhaps edit some css on the new templates. I assume I need to start using a custom .css (which I havent done yet) and now I am even further down the learning curve.

      Will overrides and custom divs still work in "template-name"-custom.css files?
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: LESS CSS and override Information

    Posted 12 years 4 months ago
    • Hi, they might, but you want to create a custom CSS file to avoid having your changes overwritten if an update is required.

      With LESS it's even simpler to do this than it was before. Open the global.less file in the less directory, this is where the less files are imported, add an @import line at the bottom with the name and location of your custom file.

      If you're not sure, add your custom file to the less directory, copy the bottom line from global.less, paste it underneath, then change the file name to the name of your file. That's all there is to it.
    • The difficult we do immediately, the impossible takes a little longer.

Time to create page: 0.049 seconds