Welcome to the LimeSurvey Community Forum

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

Changing the font-weight in custom.css

  • BIFI_research
  • BIFI_research's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 1 day ago #257470 by BIFI_research
Changing the font-weight in custom.css was created by BIFI_research
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Cloud Version 6.4.7
Own server or LimeSurvey hosting: LS is hosting
Survey theme/template: Custom theme based on Fruity Twentythree. (File attached)
==================

Hi, 

quite often I am using Text dispalay Questions to describe some things to the participants. Sadly, since the update to LS6, the question text is very bold. It does not look good and if I highlight parts of the text by making it bold, it is barely noticable:

[img][/img]

Here, the words "Fall" and "müssen" are supposed to be bold.

Because of this, I am trying to manipulate the font-weight via the , I created the class "lightfont" with the following code:

.lightfont {
    font-weight: lighter;
    color: orange;
}

The result is this:
[img][/img]
As you can see, the color is changed, but the font-weight of  the question text did not change and the dev-tool shows: That line is crossed out. The only thing that changes is the font of the question code.

Can anyone help me with that problem? Thanks in advance!

:
When I asked the support they told me to add this code to the :

Code:
body {
    font-weight: 400;
}

This had the same result as above. When I told them, they told me that I should pay a webdesigner to solve this problem. Sadly, I just cant, plus I dont think that my desired outcome is THAT specific and exotic. It should be possible to make LS not look like shit without paying people for

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 23 hours ago #257472 by tpartner
Replied by tpartner on topic Changing the font-weight in custom.css
I see no image attachments.

Where did you apply the "lightfont" class.

If applied to the question, try this:

Code:
.question-container.lightfont .ls-label-question {
    font-weight: 200;
}

If applied to an element in the question text, try this:

Code:
.question-container .ls-label-question .lightfont {
    font-weight: 200;
}


...or, simply change to the vanilla theme.

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.

  • BIFI_research
  • BIFI_research's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 22 hours ago #257479 by BIFI_research
Replied by BIFI_research on topic Changing the font-weight in custom.css
Hi tpartner,

thank you for your fast reply. I entered the ".lightfond"-code in the

I tried to delete my post because of the missing attachments, but it did not work. I have no clue how to add attachments.

Cheers,
Julius

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 22 hours ago #257481 by Joffm
Replied by Joffm on topic Changing the font-weight in custom.css

I have no clue how to add attachments.

Don't you see this big button?
 

Or did you try to copy/paste images? This is forbidden, because you'd only see the base64 code of the image.

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
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 21 hours ago #257486 by tpartner
Replied by tpartner on topic Changing the font-weight in custom.css

I entered the ".lightfond"-code in the
Well, that's not very helpful.

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.

  • BIFI_research
  • BIFI_research's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 21 hours ago #257488 by BIFI_research
Replied by BIFI_research on topic Changing the font-weight in custom.css
Hi joffm,

No,I do not see that button. I was confused about that, since I remembered it from last time I posted. 

I tried it with 2 different browsers, Firefox and Brave. In both cases no "Add file"-Button :(

I then tried to upload an share the pictures on a drive folder, add a picture via the HTML-Menu and enter the link to the shared file. Did not work, as we can see.

Im not sure if I am stupid or something is broken.

I would provide a screenshot of how the forum-form looks, but ... well I can't :D

Please Log in to join the conversation.

  • BIFI_research
  • BIFI_research's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 21 hours ago #257489 by BIFI_research
Replied by BIFI_research on topic Changing the font-weight in custom.css
Sorry for that.

I just entered the "lightfont"-code I provided above in the

Then I adressed that class in the "CSS-classes"-line in the display-tab of the question editor of the question I wanted to change.

Please Log in to join the conversation.

  • BIFI_research
  • BIFI_research's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 21 hours ago #257490 by BIFI_research
Replied by BIFI_research on topic Changing the font-weight in custom.css
Ok, that's weird. Again some of the text disappeared. That is what I am trying to write:

I just entered the "lightfont"-code I provided above in the custom-css-file.

Then I adressed that class in the "CSS-classes"-line in the display-tab of the question editor of the question I wanted to change.

Cheers,
Julius

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 21 hours ago #257491 by tpartner
Replied by tpartner on topic Changing the font-weight in custom.css

Sorry for that.

I just entered the "lightfont"-code I provided above in the

Then I adressed that class in the "CSS-classes"-line in the display-tab of the question editor of the question I wanted to change.
So, you have applied the "lightfont" classname to the question. Use my first example.

...or, switch to the "vanilla" theme.

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.

  • BIFI_research
  • BIFI_research's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 21 hours ago #257492 by BIFI_research
Replied by BIFI_research on topic Changing the font-weight in custom.css
Thank you very much, that worked!

Is it reasonable to leave this topic open until there is an solution to the problem with the add-file-button?

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 19 hours ago #257496 by holch
Replied by holch on topic Changing the font-weight in custom.css

Is it reasonable to leave this topic open until there is an solution to the problem with the add-file-button?


We usually don't close any threads anyway, so I don't see an issue here. However, I would recommend that you open a bug report reporting your issues of uploading and missing text in the forum. We had some issues like disappearing text before, when there was a very strict any spam tool running. At the moment we receive a lot of spam posts, so Carsten might have tightened the grip again. But the spam posts still get through. Just deleted a couple of them again.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 19 hours ago - 2 months 19 hours ago #257497 by Joffm
Replied by Joffm on topic Changing the font-weight in custom.css
How do you reply to a topic?

With the "Quick reply" button?
 
As it is only a "quick" reply there is not button.
If you click "Go to editor" the full editor is shown - and the button.

Or with the link "Action"?
 
Here you should see a button.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 months 19 hours ago by Joffm.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose