0
Welcome Guest! Login
0 items Join Now

@import CSS under Gantry

    • Luke Douglas's Avatar
    • Luke Douglas
    • Hero Rocketeer
    • Posts: 322
    • Thanks: 15
    • Another Old Hack!

    @import CSS under Gantry

    Posted 11 years 6 months ago
    • I have used a standard-styles.css file for over a year and it is quite extensive. I have been embedding it into my [template]-custom.css file but was wondering if I would not incur a page load hit if I simply upload my standard-styles.css file into the 'css' folder, use "@import url('standard-styles.css');" in the [template]-custom.css and then use an optimization plug-in like RokBooster, Jbetolo, JCH Optimize, etc. to compress the CSS?

      Any thoughts?

      Luke
    • Just another old hacker!
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: @import CSS under Gantry

    Posted 11 years 6 months ago
    • I don't understand why you would want to add 1 more file - isn't it enough with the rt_template-custom,css?
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
    • Luke Douglas's Avatar
    • Luke Douglas
    • Hero Rocketeer
    • Posts: 322
    • Thanks: 15
    • Another Old Hack!

    Re: @import CSS under Gantry

    Posted 11 years 6 months ago
    • Prim,

      Just convenience. If I make a change to my standard-styles.css, I have to make that change in every clients website custom css file. If I used @import, I would just upload the standard-styles.css to their 'css' folder. I don't think I would use a 'remote' url such as @import "http://blahblahblah/download/standard-styles.css" but, man, that would be convenient. :)

      Luke
    • Just another old hacker!
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: @import CSS under Gantry

    Posted 11 years 6 months ago
    • You can use that but you would still need to clear the cache of each site unless you have a nifty plugin that does it for you.

      Maybe this helps: stackoverflow.com/questions/5849758/rece...tp-on-another-server

      I know that there are "private solutions" that spreads files from 1 FTP to other FTP servers but i can't remember the name now...
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG

Time to create page: 0.053 seconds