The Sass if() syntax is deprecated in favor of the modern CSS syntax.
https://sass-lang.com/documentation/breaking-changes/if-function/
The Sass if() syntax is deprecated in favor of the modern CSS syntax.
https://sass-lang.com/documentation/breaking-changes/if-function/
https://sass-lang.com/documentation/breaking-changes/if-function/
In 2010, shortly after adding the boolean value type, Sass added the global if() function as a way to easily use booleans in a single expression without having to write out an entire @if rule. This function had the signature if($condition, $if-true, $if-false) and returned $if-true if $condition was truthy and $if-false otherwise.
At the time, browsers didn’t even support @media queries and we never imagined that CSS might support its own if() function someday. But fifteen years later, support for the CSS if() function began landing in browsers and we had to do so as well in order to remain fully CSS-compatible.
요약하자면, "우리가 if()함수를 전역으로 넣을 때까지만 해도 CSS에 if 함수가 도입될거라곤 상상도 못했어"
대안으로 제시하는 문법은 아직 사용하지 못하는 곳이 있을테니 당분간 @if and @else 규칙 쓰는게 나을듯. #scss #css
McK @mck@hackers.pub
Sass 최신 버전과 Bootstrap v5.3.x를 함께 사용할 때 발생하는 사용 중단 경고에 대한 해결책을 제시합니다. Bootstrap v5.3.4에서 수정된 `mixed-decls` 경고와 달리, `color-functions` 및 `global-builtin` 경고는 수정이 어려울 수 있습니다. Sass는 이러한 경고를 무시하기 위해 `quietDeps` 및 `silenceDeprecations` 옵션을 제공하며, vite 프로젝트에서 이를 설정하는 방법을 예시 코드를 통해 보여줍니다. `quietDeps` 옵션은 의존성 패키지의 경고만 무시하므로, 자체 코드의 경고는 `silenceDeprecations` 옵션을 사용하여 더 강력하게 무시할 수 있지만, 코드 수정이 더 나은 해결책일 수 있습니다. 이 글은 Sass와 Bootstrap을 함께 사용하는 개발자가 경고 메시지를 관리하고 잠재적인 문제를 해결하는 데 도움을 줍니다.
Read more →After turning up here a couple of weeks or so ago, I figured it's time for an #introduction
I'm a full stack web developer, currently working mostly with #php (#laravel) and Vanilla #javascript and #scss. Still love #cfml too.
Outside of that, my main interests are around #infosec, #fintech, and just learning new stuff.
Husband, father of 2 boys, speaker of #German and #english with some basic understanding of #Arabic
Started running my own instance just for fun, and loving it. #mastoadmin