The last line font-size h{i} doesn't work, how can i do it ?

h1 = 2.441em
h2 = 1.953em
h3 = 1.563em
h4 = 1.25em
h5 = 1.25em
h6 = 1.25em

for i in (1..6)
  h{i}
    font-weight inherit
    line-height 1.2
    font-size h{i} 
有帮助吗?

解决方案

font-size lookup('h' + i) will do

see an example over here: http://codepen.io/anon/pen/Bpamr

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top