Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scss(sass) # interpolation #31

Open
p-iknow opened this issue Jul 11, 2019 · 0 comments
Open

scss(sass) # interpolation #31

p-iknow opened this issue Jul 11, 2019 · 0 comments
Labels

Comments

@p-iknow
Copy link
Owner

p-iknow commented Jul 11, 2019

https://webdesign.tutsplus.com/tutorials/all-you-ever-need-to-know-about-sass-interpolation--cms-21375

Sass Rem 연산

  • rem 단위가 들어가면 sass 컴파일러는 해당 내용을 string으로 인식해서 연산할 수 없다.
  • 때문에 sass 문법으로 인지할 수 있도록 #{ } interpolation을 사용해 연산해야한다.
  • 예를들면 2rem * 2 는 compile error 가 나고, 2rem * 2rem 은 unvalid property 로 인식하여 반영이 안된다.
  • #{2rem * 2 }  이런식으로 쓰면 제대로 된다.

참고

@p-iknow p-iknow added the css label Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant