我有以下進口基礎頂欄行寬不定
@import "../foundation/components/top-bar";
一個問題,我得到Line 342 of _top-bar.scss: Undefined variable: "$row-width"
可惜我不能找到有關這個變量的多文檔。
挖掘到的_top-bar.scss
源我到offnding線342
:
.contain-to-grid .top-bar { max-width: $row-width; margin: 0 auto; }
文檔說約.contain-to-grid
:
If you want your navigation to be set to your grid width, wrap it in div class="contain-to-grid".
這意味着類是可選的。因此,不應將$row-width
設置爲某種默認設置,以防止出現上述錯誤(即,如果我決定不想使用.contain-to-grid
)?