CSS Stylesheet size limit?

General project discussion. NOT for help questions.
Post Reply
patrickxynergy
New Member
New Member
Posts: 3
Joined: Thu Aug 16, 2012 4:00 pm

CSS Stylesheet size limit?

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CSS Stylesheet size limit?

Post 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'.
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.
patrickxynergy
New Member
New Member
Posts: 3
Joined: Thu Aug 16, 2012 4:00 pm

Re: CSS Stylesheet size limit?

Post by patrickxynergy »

It's Twitter's Bootstrap that I'm attaching. Even the minimized file is getting cut off...
patrickxynergy
New Member
New Member
Posts: 3
Joined: Thu Aug 16, 2012 4:00 pm

Re: CSS Stylesheet size limit?

Post 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.
milehigh

Re: CSS Stylesheet size limit?

Post 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.
Post Reply

Return to “General Discussion”