我试图执行一个简单的除法: div
height 20px/2
/* Compiles to: */
div {
height: 20px/2
}
我能得到它采用乘法虽然...为什么不师工作的工作? div
height 20px * .5
/* Compiles to: */
div {
height: 10px;
}
我想为按钮颜色制作混合。我的目标是遍历值列表(绿色,红色,蓝色),然后构建类名称,然后将正确的变量颜色应用于背景。 我已成功地走到这一步: green = #38ab0b
red = #ab130b
blue = #099aab
colors = green, red, blue
for color, i in colors
.btn-{color}
backgro