Generate styles using LESS recursive function and media queries

后端 未结 1 982
遇见更好的自我
遇见更好的自我 2021-01-21 15:10

I am trying to generate some relative to screen height and decided to try to use LESS to generate something like that, even if a bit heavy just as a test:

@baseH         


        
相关标签:
1条回答
  • 2021-01-21 16:08

    Arithmetic operations inside @media queries should always be in parens regardless of --strict-math option. I.e. should be @media (min-height: (@baseHeight * @screenHeight)).

    0 讨论(0)
提交回复
热议问题