Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Server delivers empty custom.css

  • vasyugan
  • vasyugan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 weeks 5 days ago - 3 weeks 5 days ago #259784 by vasyugan
Server delivers empty custom.css was created by vasyugan
Please help us help you and fill where relevant:
Your LimeSurvey version:  LimeSurvey Community Edition Version 6.0.0+230405
Own server or LimeSurvey hosting: own
Survey theme/template: bootswatch
==================
I've edited the custom.css file to contain
``
body {
            font-size: 14px;
    }
``
However, when I run the survey that uses this theme,  the server delivers an empty custom.css. That is: I look at the source code, see that the html header contains the line<link rel="stylesheet" type="text/css" href="[url=view-source:https://survey.uferwerk.org/tmp/assets/b66d22d3/css/custom.css]/tmp/assets/b66d22d3/css/custom.css[/url]" />

and when I open the latter, I see a file only containing the following lines:


/******************
User custom CSS

In this file you can add your own custom CSS
It will be loaded last, so you can override any other property. 
Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/
Everything I added below is missing.

Why is that? I also switched the theme, saved the survey, switched back. No change.
Last edit: 3 weeks 5 days ago by vasyugan. Reason: formatting

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 5 days ago #259788 by Joffm
Replied by Joffm on topic Server delivers empty custom.css
Hi,
I see this
Survey theme/template: bootswatch

Does it mean you did not extend the theme?

When I extend "bootswatch" and enter  this into the "custom.css"
 
Code:
body {
    font-size: 36px;
    font-family: Georgia;
    font-style: italic;
}
I get this
 

The changes are obvious.

Now, please, tell us: What exactly did you do?
And why suddenly English?

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 5 days ago #259789 by tpartner
Replied by tpartner on topic Server delivers empty custom.css

Code:
body {
    font-size: 36px;
    font-family: Georgia;
    font-style: italic;
}
Wow, it seems you need new reading glasses. :)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • vasyugan
  • vasyugan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 weeks 5 days ago #259792 by vasyugan
Replied by vasyugan on topic Server delivers empty custom.css
If you mean me: I ordered new reading glasses yesterday, but they will be ready only on 15 April.

Anyway, I don't get the same result as Joffm. When I enter code into my local custom.css, Limesurvey still delivers an empty file, that is, a file that looks like this:

/******************
User custom CSS

In this file you can add your own custom CSS
It will be loaded last, so you can override any other property.
Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/

Please Log in to join the conversation.

  • vasyugan
  • vasyugan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 weeks 5 days ago #259794 by vasyugan
Replied by vasyugan on topic Server delivers empty custom.css
I extended the bootwatch theme, after which I edited its custom.css, however, according to what is shown in the editor window, what I edit is the file

'themes/survey/bootswatch/css/custom.css'

Anyway, the thing is that limesurvey for whatever reason doesn't use it, whether I use the original bootswatch theme or my extended version.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 5 days ago #259796 by Joffm
Replied by Joffm on topic Server delivers empty custom.css

Wow, it seems you need new reading glasses

Yes, you are absolutely right; my glasses get worse and worse. 
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 5 days ago - 3 weeks 5 days ago #259803 by tpartner
Replied by tpartner on topic Server delivers empty custom.css

I extended the bootwatch theme, after which I edited its custom.css, however, according to what is shown in the editor window, what I edit is the file

'themes/survey/bootswatch/css/custom.css'


 
If you have saved this...

 

...you should see something like this.

 

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 weeks 5 days ago by tpartner.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 5 days ago #259804 by tpartner
Replied by tpartner on topic Server delivers empty custom.css
Also, I suggest updating your LimeSurvey instance - there have been many bug fixes in the last year.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose