- Posts: 10
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
.thumbs-question .answer-container { padding-top: 1em; } .thumbs-question .radio label, .checkbox label { min-height: 48px; line-height: 48px; margin: 10px 0; } .thumbs-question .radio label::before { background-color: transparent; border: 0 none; border-radius: 0; height: auto; width: auto; left: 0; transition: all 0.15s ease-in-out 0s; font-family: FontAwesome; font-size: 48px; content: "\f164"; color: #CCC; } .thumbs-question .radio-list .answer-item.radio:nth-child(2) label::before { content: "\f165"; } .thumbs-question .radio label:hover::before { color: #b9cc14; opacity: 0.5; filter: alpha(opacity=50); } .thumbs-question .radio-list .answer-item.radio:nth-child(2) label:hover::before { color: #e75041; } .thumbs-question .radio input[type="radio"]:checked + label::before { color: #b9cc14; outline: none !important; opacity: 1; filter: alpha(opacity=100); } .thumbs-question .radio-list .answer-item.radio:nth-child(2) input[type="radio"]:checked + label::before { color: #e75041; } .thumbs-question .radio label::after { display: none; }
.thumbs-question .answer-item { float: left; width: auto !important; margin: 0 10px 10px 10px; }
$(document).ready(function() { $('.thumbs-question input.radio').on('click', function(e) { $('#movenextbtn, #movesubmitbtn').trigger('click'); }); });
tpartner wrote: In version 2.67.x, you can convert a list-radio question to thumbs up/down via CSS as follows:
1) Give the question a class "thumbs-question"
2) Add something like this to the end of template.css
Code:.thumbs-question .answer-container { padding-top: 1em; } .thumbs-question .radio label, .checkbox label { min-height: 48px; line-height: 48px; margin: 10px 0; } .thumbs-question .radio label::before { background-color: transparent; border: 0 none; border-radius: 0; height: auto; width: auto; left: 0; transition: all 0.15s ease-in-out 0s; font-family: FontAwesome; font-size: 48px; content: "\f164"; color: #CCC; } .thumbs-question .radio-list .answer-item.radio:nth-child(2) label::before { content: "\f165"; } .thumbs-question .radio label:hover::before { color: #b9cc14; opacity: 0.5; filter: alpha(opacity=50); } .thumbs-question .radio-list .answer-item.radio:nth-child(2) label:hover::before { color: #e75041; } .thumbs-question .radio input[type="radio"]:checked + label::before { color: #b9cc14; outline: none !important; opacity: 1; filter: alpha(opacity=100); } .thumbs-question .radio-list .answer-item.radio:nth-child(2) input[type="radio"]:checked + label::before { color: #e75041; } .thumbs-question .radio label::after { display: none; }
To handle the "scoring", you will likely need to use assessments and load equation questions with the values. See "Qcode.value - www.limesurvey.org/manual/Expression_Man...#Access_to_Variables
.thumbs-question .answer-container { padding-top: 1em; } .thumbs-question .answer-item { float: left; clear: none; width: auto !important; margin: 0 25px 10px 25px; } .thumbs-question .answer-item label { min-height: 48px; line-height: 48px; margin: 10px 0; font-size: 0px; } .thumbs-question .answer-item label::before { background-color: transparent; border: 0 none; border-radius: 0; height: auto; width: auto; left: 0; transition: all 0.15s ease-in-out 0s; font-family: FontAwesome; font-size: 48px; content: "\f164"; color: #CCC; } .thumbs-question .radio-list .answer-item:nth-child(2) label::before { content: "\f165"; } .thumbs-question .answer-item label:hover::before { color: #b9cc14; opacity: 0.5; filter: alpha(opacity=50); } .thumbs-question .radio-list .answer-item:nth-child(2) label:hover::before { color: #e75041; } .thumbs-question .answer-item input[type="radio"]:checked + label::before { color: #b9cc14; outline: none !important; opacity: 1; filter: alpha(opacity=100); } .thumbs-question .radio-list .answer-item:nth-child(2) input[type="radio"]:checked + label::before { color: #e75041; } .thumbs-question .answer-item label::after { display: none; }