S
S
sirinotapple2022-01-19 20:30:08
Sass
sirinotapple, 2022-01-19 20:30:08

Hiccups in scss?

Hello, I use this function to automatically translate pixel values ​​into viewpoint, for example, for a template 1920 * 1080

@function toVmin($px) {
        @return $px / 1920 * 100 * (1920/1080) + vmin;
}

but since some pages may be designed at different resolutions, it would be convenient to create a function that creates functions like toVmin for different resolutions.
But I couldn't find any mention of closure support in scss? Is this possible or something similar...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question