Reduce rem by a percentage?

前端 未结 2 1626
温柔的废话
温柔的废话 2021-01-28 01:38

OK I\'m using Foundations rem-calc to calculate a rem value, now i want to reduce the size of the variable on each media query by a percentage like so:

// This          


        
2条回答
  •  面向向阳花
    2021-01-28 02:22

    Had to pass the rem-calc after the math like so:

        $herotitle-size: 125.5;
    
       //To reduce by 10% 0.1
      .hero_home .herotitle{
           font-size: rem-calc( $herotitle-size - ( $herotitle-size * 0.1));
      }
    

提交回复
热议问题