我不能讓一個mixin接受塊:傳遞給薩斯混入結果塊「混入不接受內容塊」
=my-mixin($some-var)
width: $some-var
@content // Is this correct?
+my-mixin(123px)
height: 100px
這將導致一個「混入不接受內容塊「錯誤。我正在使用當前版本的Sass。感謝幫助。
我不能讓一個mixin接受塊:傳遞給薩斯混入結果塊「混入不接受內容塊」
=my-mixin($some-var)
width: $some-var
@content // Is this correct?
+my-mixin(123px)
height: 100px
這將導致一個「混入不接受內容塊「錯誤。我正在使用當前版本的Sass。感謝幫助。
語法都確定了上海社會科學院,仔細檢查
這是我的錯誤。現在正在工作,謝謝。 –
您能否在您的問題中記錄錯誤和解決方案,以便其他人可以找到它? –
[相關xkcd](https://xkcd.com/979/),因爲我有這個問題。 –
對我來說,問題是與上海社會科學院縮進3.2版本。
您不能嵌套這樣一個混合中的其他塊:
.button-cta
+button (transparent, tomato)
&:hover
background-color: tomato
color: #fff
代替:
.button-cta
+button (transparent, tomato)
&:hover
background-color: tomato
color: #fff
懸停狀態不能嵌套
嗯 - 不知道是什麼問題這裏。我用這個例子的代碼:http://codepen.io/anon/pen/kfpmz。我唯一能想到的就是你需要sass /指南針 – jbenjohnson