나는이 우연히했습니다 https://github.com/gregbell/active_admin/blob/master/app/assets/stylesheets/active_admin/mixins/_variables.css.scss, 내가 $sidebar-width: 242px;
을 변경 볼 수있어 그것이 반응하지만, app/assets/stylesheets
에 ActiveAdmin을에 의해 생성되는ActiveAdmin에서 실제로 변수를 변경하고 스타일을 재정의하려면 어떻게해야합니까?
그리고 https://github.com/gregbell/active_admin/blob/master/lib/generators/active_admin/assets/templates/active_admin.css.scss에서 나는 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
정말 어떻게해야할지 모르겠군요. 미리 감사드립니다.