我已經在這個偶然:https://github.com/gregbell/active_admin/blob/master/app/assets/stylesheets/active_admin/mixins/_variables.css.scss如何在ActiveAdmin中實際更改變量並覆蓋樣式?
而且在https://github.com/gregbell/active_admin/blob/master/lib/generators/active_admin/assets/templates/active_admin.css.scss這是由ActiveAdmin產生app/assets/stylesheets
,我能看到改變$sidebar-width: 242px;
,它的反應,但如果我嘗試從https://github.com/gregbell/active_admin/blob/master/app/assets/stylesheets/active_admin/mixins/_variables.css.scss添加任何其他變量它只是忽略這些變量的變化。例如,下面的代碼不會使bg顏色變黑......
// SASS variable overrides must be declared before loading up Active Admin's styles.
//
// To view the variables that Active Admin provides, take a look at
// `app/assets/stylesheets/active_admin/mixins/_variables.css.scss` in the
// Active Admin source.
//
// For example, to change the sidebar width:
$sidebar-width: 500px; // works
$body-background-color: #000; // doesn't work
我真的不知道該怎麼做。提前致謝。