Slider (not rangeslider) tick labels vertically

I have seen a few posts about setting the labels of the marks on the slider vertically (for example here and here, but none worked for me. I don’t have a range slider, but a regular slider. I have checked the properties of the slider, but couldn’t find anything useful - the styles there seem very limited. I have tried to “force” the rotation via CSS:

.slider-label {
  rotate: -15deg;
  /* translate: 0 50px; */
}

But that mess with the size of the graph above (see image below).

So my question is: is there a simpler way to rotate or set the slider tick labels vertically?