Page 1 of 1
CSS Stylesheet size limit?
Posted: Thu Aug 16, 2012 4:59 pm
by patrickxynergy
I'm new to CMSMS. The stylesheet I've created keeps getting cut off at a certain spot when I copy/paste/apply. Is there a size or length limit on the stylesheet in CMSMS? I cannot find any reference to it in the documentation, unless I'm looking in the wrong place.
As with my last post, any insights would be greatly appreciated.
- Patrick
Re: CSS Stylesheet size limit?
Posted: Thu Aug 16, 2012 5:16 pm
by calguy1000
A single stylesheet entry is limited to 64kb of text.
Though you can attach multiple stylesheets to a template.
I hazard a guess that if you have more than 64kb of stylesheets though, that your styling could probably use a 're-think'.
Re: CSS Stylesheet size limit?
Posted: Thu Aug 16, 2012 5:17 pm
by patrickxynergy
It's Twitter's Bootstrap that I'm attaching. Even the minimized file is getting cut off...
Re: CSS Stylesheet size limit?
Posted: Thu Aug 16, 2012 5:30 pm
by patrickxynergy
I customized Bootstrap to eliminate several elements the site would not be using, minimizing the file size to be under 64k. Thanks for that information.
Re: CSS Stylesheet size limit?
Posted: Mon Sep 10, 2012 1:56 pm
by milehigh
I've been working with the same thing..here's what I did:
I separated the bootstrap CSS as follows:
core, tables, icons, navs, custom, responsive
Attach to that templates in that order. Then you can overwrite the core bootstrap in custom, and it makes it easier to find what elements you are looking for since there is quite a bit there.
I've got i pretty close to stock working with CMSMS .... had to use a little jquery to overwrite the search form class but other than that it is turning out really well.
The other option is to submit a formal request to change the field type but I think what I ended up with works better in the long run anyway since it's a little more organized and manageable.