GithubHelp home page GithubHelp logo

저는 모든 부분에 px와 rem을 지향해서 쓰고있는데요, 혹시 px이나 rem명시를 자동으로 변환 할수 있는 구문이 있을까요? ex : 10rem -> 10 about adorable-css HOT 2 OPEN

developer-1px avatar developer-1px commented on June 9, 2024
저는 모든 부분에 px와 rem을 지향해서 쓰고있는데요, 혹시 px이나 rem명시를 자동으로 변환 할수 있는 구문이 있을까요? ex : 10rem -> 10

from adorable-css.

Comments (2)

tooooo1 avatar tooooo1 commented on June 9, 2024 1

오랜만이에요 테오
타이틀 오타 수정 요청드려도 될까요? @developer-1px

저는 모든 부분에서 px와 rem을 지향해서 쓰고있는데요. 혹시 px나 rem 명시를 자동으로 변환할 수 있는 구문이 있을까요? ex: 10rem -> 10

from adorable-css.

developer-1px avatar developer-1px commented on June 9, 2024

rem의 경우 어떻게 하면 좋을지 고민을 하고 있는 중입니다.

현재 단위 생략시에는 기본적으로 px을 붙이도록 하고 있고 rem의 경우에는 명시적으로 기입을 해야 합니다.

타 컴포넌트 연동 같은 것들을 고려한다면 옵션에 따라서 다른 결과물이 나오면 안되므로 기본 단위를 조정을 하면 안될것 같고 root Rem값을 입력하면 px를 rem로 환산해서 만들어주는 방식으로 노선을 정해보고 있습니다. 해당 기능이 개발되면 한번 공유 드려보겠습니다. 감사합니다 :)

from adorable-css.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.