- Posts: 12881
- Thank you received: 3965
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Slider with two values
- Joffm
- Offline
- LimeSurvey Community Team
It is not always blue, but in "fruity" it is the color of the selected theme vatiation
The selected colors were
low: #8A2BE2 = BlueViolet
middle: #A52A2A = Brown
high: #BDB76B = DarkKhaki
Here "sea green"
"sunset orange"
But in "vanilla" you see all three selected colors
What do you mean? Some kind of reverse scale?Also it is possible to move upper marker to the left from lower marker.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10099
- Thank you received: 3589
This is the expected behaviour. Check your data.Also it is possible to move upper marker to the left from lower marker. I'm not sure if this is a bug or feature.
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.
- Jmantysalo
- Topic Author
- Offline
- Platinum Member
- Posts: 348
- Thank you received: 41
Ah, OK. So I guess there is some workaround having the magic string !important for Fuity theme?But in "vanilla" you see all three selected colors
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10099
- Thank you received: 3589
I cannot reproduce the problem. Here is what I see with different themes/variations in version 5.4.4.To be more precise:
It is not always blue, but in "fruity" it is the color of the selected theme vatiation...
Vanilla:
Fruity Sea Green:
Fruity Sunset Orange:
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.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12881
- Thank you received: 3965
I use 5.4.2. and the date of the last update is 28/6/2021 (config.xml)
"purple tentacle" and "black pearl"
Do we miss something?
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10099
- Thank you received: 3589
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.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12881
- Thank you received: 3965
here it is.
Is it possible that this is because in the [variation].css like "seagreen.css" the slider-selection is defined as
.fruity .slider-selection{background-image:linear-gradient(to bottom, #84b39a 0%, #39993f 100%)}
but in the rangeslider.js there is only the "background-color"
$('.slider-selection', thisQuestion).css('background-color', opts.sliderColorM );
You see - with my very limited knowledge - I removed the "background-image" part from the "seagreen.css".
And now it looks as expected.
Normal:
With removed "background-image"
Might this cause this effect?
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- Jmantysalo
- Topic Author
- Offline
- Platinum Member
- Posts: 348
- Thank you received: 41
.mytest .slider-selection { background-image: none !important; }
to custom.css and it does not seem to help.
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10099
- Thank you received: 3589
Sure, but it's odd that I don't get that rule applied.Is it possible that this is because in the [variation].css like "seagreen.css" the slider-selection is defined as...
Anyway, I have updated rangeSlider.css to remove all background images from the slider track - github.com/tpartner/LimeSurvey-Range-Sli...geSlider.css#L37-L42
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.
- Jmantysalo
- Topic Author
- Offline
- Platinum Member
- Posts: 348
- Thank you received: 41
Please Log in to join the conversation.