- Posts: 20
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Why do the default templates have two .css files?
- Magnar
- Topic Author
- Offline
- Junior Member
Less
More
6 years 11 months ago #155029
by Magnar
Why do the default templates have two .css files? was created by Magnar
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?
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?
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12925
- Thank you received: 3977
6 years 11 months ago - 6 years 11 months ago #155030
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on 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
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
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 6 years 11 months ago by Joffm. Reason: Ergänzung
The following user(s) said Thank You: Magnar
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
6 years 11 months ago - 6 years 11 months ago #155035
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on 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: 6 years 11 months ago by tpartner.
The following user(s) said Thank You: Magnar
The topic has been locked.
- Magnar
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 20
- Thank you received: 0
6 years 11 months ago - 6 years 11 months ago #155049
by Magnar
Replied by Magnar on 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: 6 years 11 months ago by Magnar.
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 967
- Thank you received: 220
6 years 11 months ago #155051
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on 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 Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: Magnar
The topic has been locked.