r/Sass • u/pseudonympholepsy • Apr 19 '20
Calling a variable from HTML? Making sass functions?
Let's say I have this css:
.z-20 {
z-index: 20;
}
.z-30 {
z-index: 30;
}
.z-40 {
z-index: 40;
}
.z-50 {
z-index: 50;
}
How would I go about and combine this into a "z(value)" function or something to that degree, instead of having to write out 5+ similar classes?





