- Posts: 23
- Thank you received: 6
Ask the community, share ideas, and connect with other LimeSurvey users!
But then : admin GUI don't have a clean solution to update css of question template.tpartner wrote: the questions are more granular and can be placed in any theme so should override theme styles.
@aellison9 : there are an issue with your system.
If you set 2 radio question, one with your template one without : your css apply to the 2 question.
You must restrict the css to your template … something like
.questionRadio .label-placement{…}
@aellison9, that's not true. Yes, you need to add a rule to the survey theme CSS file (as you would anyway), but simply specify the survey theme class. The <body> element is assigned a theme-specific class for situations like this.using your cardSort custom question theme as an example and assuming the Survey Theme custom.css loads before cardSort.css: if I have different survey themes and want to manipulate the colors of the "cards", then I have to include the class in my custom.css, change the color, and flag the specificity as !important.
.your_theme_name .card-sort-question .card { background-color: purple; }
OK,aellison9 wrote: …
@denischenu - I am not sure this makes sense to me.
@aellison9 : there are an issue with your system.
If you set 2 radio question, one with your template one without : your css apply to the 2 question.
You must restrict the css to your template … something like
.questionRadio .label-placement{…}
.label-placement is a class specific to my custom question theme and assigned to the label element within the .twig for the view. Unless I make both questions to use my custom question theme, then only 1 question would be impacted by the css. If an element doesn't have the class, then the styling will not apply. This is the reason I essentially extended some of the base question types with my custom question theme.
Oh tight , it fix the issuetparner wrote: The <body> element is assigned a theme-specific class for situations like this.