vanilla_respondage/css/custom.css
Tammo ter Hark 22c1f230b3 feat(slider): row 215 — hide the value tooltip on untouched sliders
Core hides the slider tooltip via jQuery .hide() only when no default
position is set; with slider_default_set an untouched slider keeps a
visible tooltip (and the slider-touched class — see
BUG_REPORT_slider_touched_class_unreliable_with_default_set.md). While
the slider-is-untouched class (row 214) is set, also hide .slider .tooltip.
No !important on purpose: on touch core sets an inline display via .show(),
which wins over this rule, so the tooltip reappears exactly when the slider
is touched.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 09:00:39 +01:00

51 lines
No EOL
1.8 KiB
CSS

/******************
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
*/
#outerframeContainer{
hyphens: none;
}
/* Subtle theme credit at the bottom of every page
(rendered by views/subviews/footer/footer.twig) */
.respondage-theme-footer {
padding: 1rem 0 1.5rem;
opacity: 0.75;
}
/* row 207: logo height 25px (was max-height 18px) */
.respondage-theme-footer-logo {
height: 25px;
width: auto;
vertical-align: middle;
}
/* row 214: untouched slider = grey handle + transparent selection; touched =
sliderhandlecolor (the .slider-handle rule in custom_header.twig).
The slider-is-untouched class is synced onto li.slider-item by
scripts/custom.js from the answer input's value — core's own
slider-untouched class on the .slider element is unreliable when
"slider_default_set" is on. Specificity (0,3,0) beats the .slider-handle
rule (0,1,0) from custom_header.twig regardless of style-block order. */
.slider-item.slider-is-untouched .slider-handle {
background-color: grey;
}
.slider-item.slider-is-untouched .slider-selection {
background: transparent;
box-shadow: none;
}
/* row 215: while untouched, also hide the value tooltip — core only does that
(jQuery .hide()) when no default position is set; with slider_default_set
the tooltip stays visible on an untouched slider. No !important on purpose:
on touch core sets an inline display via .show(), which wins over this rule
(and slider-is-untouched is removed anyway). */
.slider-item.slider-is-untouched .slider .tooltip {
display: none;
}