Bower를 사용하여 Foundation SASS를 설치했습니다. 그럼 기초를 수입하고 초기화 다음 명령에 의해 내 main.scss
에있다 :Foundation에서 SASS 변수를 덮어 쓰지 않도록하려면 어떻게합니까?
@import "../vendor/foundation-sites/scss/foundation.scss";
@include foundation-everything(true); // Init the foundation
문제는, 설정 파일, _settings.scss
, 내가 대체 할 필요가 foundation.scss 가져 오기가 있다는 것입니다. Bower 디렉토리의 파일들, 즉 vendor/
을 건드리지 않아야하므로, 변경 사항을 main.scss
에 만들어야합니다. 그리고 아니요, _settings.scss
은 !default
기능을 사용하지 않습니다. (가) 이제까지 덮어하지 않습니다 단지 있도록 포함하기 전에 변수를 정의 할 수있는 방법이
$global-font-size: 100%;
$global-width: rem-calc(1200);
$global-lineheight: 1.5;
거기에 다음과 같이 설정을 정의하는 방법의 조각은 무엇입니까? 뭔가 같은 ..
$global-font-size: 16px !important;
$global-width: 1000px !important;
$global-lineheight: 1 !important;
@import "../vendor/foundation-sites/scss/foundation.scss";
@include foundation-everything(true); // Init the foundation
이 값은'_settings.scss' 파일에서 편집해야합니다. 그 일을하고 싶지 않은 이유가 있습니까? –
Bower를 사용하여 설치 했으므로 이후에 업데이트가있을 경우 해당 폴더에있는 항목을 덮어 씁니다. 그래서, 그것을 피하기 위해, 나는'main.css'에 대한 오버라이드를 만들고 있습니다. –