_settings.scss의 변수는 주석 처리되지 않은 상태로 컴파일됩니다. (Variables in _settings.scss are compiled as uncommented)


문제 설명

_settings.scss의 변수는 주석 처리되지 않은 상태로 컴파일됩니다. (Variables in _settings.scss are compiled as uncommented)

재단 포럼에서 이 질문을 했지만 아직 아무도 대답하지 못했습니다. "foundation watch" 명령을 실행하면 src/assets/scss/_settings.sccc 파일 내의 모든 변수가 주석 처리되지 않은 상태로 컴파일됩니다.

그러나 ZURB 웹사이트에는 다음과 같이 명시되어 있습니다.

"설정을 변경하려면 찾고 있는 변수를 찾은 다음 슬래시(//)를 제거하여 주석 처리를 제거하십시오. 줄의 시작 부분과 값을 변경합니다. 주석 처리를 제거하면 값이 변경되기를 원하고 재정의하는 기본값을 확인하는 편리한 시각적 도구 역할을 합니다." ‑ http://foundation.zurb.com/sites/docs/sass.html"

ZURB 웹 사이트가 말하는 것과 컴파일러가하는 것이 완전히 다르기 때문에 정말 혼란 스럽습니다. 아이디어가 있으신가요?

감사합니다...


참조 솔루션

방법 1:

This was changed after the initial release of Foundation 6. All settings in the settings file now start out as uncommented. The docs just weren't updated yet to reflect the change.

Foundation Developer's Explanation:

The reason we're uncommenting every variable is to avoid reference errors. For example, let's say you left all the colors the same, so they all have comment marks. Now you try to reference $primary‑color farther down, and you get an error, because $primary‑color hasn't been defined yet. It is in the settings file, but it's not uncommented. Uncommenting every value gets around this issue.

Source: https://github.com/zurb/foundation‑sites/issues/7328#issuecomment‑161037445

(by yucelmColin Marshall)

참조 문서

  1. Variables in _settings.scss are compiled as uncommented (CC BY‑SA 2.5/3.0/4.0)

#zurb-foundation #SASS #zurb-foundation-6






관련 질문

zurb-foundation Rails gem에 캔버스 외 레이아웃 포함 (Including off-canvas layouts with the zurb-foundation Rails gem)

CSS zurb 기초 및 dhtmlx (CSS zurb foundation and dhtmlx)

기초 바닥글이 전체 페이지 너비가 아닙니다. (Foundation footer is not full page width)

slick.js 플러스 파운데이션 이퀄라이저 문제 (slick.js plus foundation equalizer issue)

반응형 웹사이트 드롭다운 양식 문제 (Responsive Website Dropdown form issue)

Foundation 6의 TopBar가 작동하지 않음 (TopBar in foundation 6 not working)

_settings.scss의 변수는 주석 처리되지 않은 상태로 컴파일됩니다. (Variables in _settings.scss are compiled as uncommented)

Foundation for Apps 프로젝트의 양쪽 맞춤 탭 (Justified tabs in Foundation for Apps project)

휴대폰에서 보이지 않는 웹사이트의 일부 (Part of the Website invisible on mobile phone)

Zurb Foundation 구성 요소가 작동하지 않음 (Zurb Foundation components not working)

Foundation 탭이 초기화되었는지 확인하는 방법은 무엇입니까? (How to check if Foundation tabs are initialized?)

Zurb Foundation 균등화 그리드: 그리드 셀 내부의 div 하단에 콘텐츠를 배치하는 방법 (Zurb Foundation equalised grid: how to position content at bottom of div inside grid cell)







코멘트