Named CSS grid lines with SCSS

后端 未结 1 1700
生来不讨喜
生来不讨喜 2020-12-31 07:49

I\'m experimenting with the new CSS Grid Layout system in codepen.io. It has an interesting feature called named grid lines that allows defining custom names for the grid li

相关标签:
1条回答
  • 2020-12-31 08:08

    Try putting whole your CSS line to string:

    $gridTplCols: "[main-start] 100px [content-start] 1fr [content-end] 100px [main-end]";
    
    grid-template-columns: #{$gridTplCols};
    
    0 讨论(0)
提交回复
热议问题