Why do the default templates have two .css files?

More
5 months 4 days ago #155029 by Magnar
Magnar created the topic: Why do the default templates have two .css files?
Hello everyone,

this is probably a trivial question but I keep wondering about it: why do the default templates have two .css files instead of one? Is the template.css meant to provide fundamental declarations while the other .css file builds/extends upon it? Or is it something else entirely?

Please Log in to join the conversation.

More
5 months 4 days ago - 5 months 4 days ago #155030 by Joffm
Joffm replied the topic: Why do the default templates have two .css files?
Hi, Magnar,
it's the other way around.
The (e.g.) "flat and modern.css" contains the general bootstrap stuff.
You will see if you compare to bootstrap.css or other themes like cerulean, yeti or so.

This way it is rather easy to change the styling. I used one of the bootstrap themes which you find in " www.bootswatch.com " together with the "template.css".


The "template.css" contains the LS specific styles.

And here you are to add your individual stylings.

Best regards
Joffm
Last Edit: 5 months 4 days ago by Joffm. Reason: Ergänzung
The following user(s) said Thank You: LouisGac, Magnar

Please Log in to join the conversation.

More
5 months 4 days ago - 5 months 4 days ago #155035 by tpartner
tpartner replied the topic: Why do the default templates have two .css files?
Also, template.css is loaded last so takes precedence over other style sheets and it should be used for template customizations.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 months 4 days ago by tpartner.
The following user(s) said Thank You: Magnar

Please Log in to join the conversation.

More
5 months 3 days ago - 5 months 3 days ago #155049 by Magnar
Magnar replied the topic: Why do the default templates have two .css files?
Ah, I see. Thanks for the quick replies, guys! So the template.css should contain all user customizations while the other .css file should be left untouched due to the bootstrap settings and all?
Last Edit: 5 months 3 days ago by Magnar.

Please Log in to join the conversation.

More
5 months 3 days ago #155051 by tammo
tammo replied the topic: Why do the default templates have two .css files?
Exactly. Although you are completely free to also change that. It will also work. But updating will be more difficult then.


Tammo ter Hark at Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template
The following user(s) said Thank You: Magnar

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now