在SASS中为iPhone X安全区域样式使用CSS Level 4 max函数 [英] Using CSS Level 4 max function in SASS for iPhone X safe-area Styling
本文介绍了在SASS中为iPhone X安全区域样式使用CSS Level 4 max函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在SASS中使用CSS Level 4函数'max'进行安全区域样式设置,如记录的
I want to use the CSS Level 4 function 'max' in SASS for safe-area styling like documented here. But this function conflicts with the SASS max function. Is there a way to use the CSS Level 4 max function in SASS?
推荐答案
如果要在SASS中使用CSS Level 4 max函数,则必须引用并取消引用max函数.
If your want to use the CSS Level 4 max function in SASS you have to quote, and unquote the max function.
@supports(padding: unquote('max(0px)')) {
padding-left: unquote('max(#{$susy-gutter-width}, env(safe-area-inset-left))');
padding-right: unquote('max(#{$susy-gutter-width}, env(safe-area-inset-right))');
}
这篇关于在SASS中为iPhone X安全区域样式使用CSS Level 4 max函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文