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
CSS Stylesheet size limit?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: CSS Stylesheet size limit?
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'.
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'.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
- New Member
- Posts: 3
- Joined: Thu Aug 16, 2012 4:00 pm
Re: CSS Stylesheet size limit?
It's Twitter's Bootstrap that I'm attaching. Even the minimized file is getting cut off...
-
- New Member
- Posts: 3
- Joined: Thu Aug 16, 2012 4:00 pm
Re: CSS Stylesheet size limit?
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?
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.
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.