Code Monkey home page Code Monkey logo

Comments (9)

brandonb927 avatar brandonb927 commented on June 18, 2024

I'm on board for this switch, any plans to do mixins to output REM-units with PX fallbacks? Or strictly just switch to px/em in all REM-related properties?

from cardinalcss.

ptrsmk avatar ptrsmk commented on June 18, 2024

I'm not using preprocessors, and I prefer the rem units. Switching to em/px may make things easier in one way, but I think it complicates things overall. What's great about rem is their simplicity, that they are rooted. Additionally, market share for IE8 and below is declining enough that many people, myself included, don't bother with fallbacks for such old software. I think it's a step backward to switch to em/px.

from cardinalcss.

ptrsmk avatar ptrsmk commented on June 18, 2024

More reasons to not bother with old versions of ie: http://goo.gl/YCMaAH

Microsoft is forcing people of of anything older than IE11.

from cardinalcss.

brandonb927 avatar brandonb927 commented on June 18, 2024

I both agree and disagree with the change. I think the way of the future is to leverage dynamic units for scalable type, CSS4 variables, etc. IMHO Preprocessors are the key to this and I think they should be leveraged. I'm not sure anyone wants to bend over backwards for compatibility, so I say keep it as-is. Sure there is some mental math involved to deduce that 1rem = 16px given html { font-size: 100%; } but is it really that hard? Set common values you can remember and do 'simple' math.

from cardinalcss.

bassjobsen avatar bassjobsen commented on June 18, 2024

I should not switch back. Consider to integrate https://github.com/robwierzbowski/grunt-pixrem/ in the build process.

from cardinalcss.

cbracco avatar cbracco commented on June 18, 2024

Yeah I think maybe we can use a LESS mixin or grunt (as @bassjobsen) stated to generate pixel fallback units

from cardinalcss.

bassjobsen avatar bassjobsen commented on June 18, 2024

If you agree / choose i'm willing to add the code to #55.

I think using the autoprefixer and pixrem will keep your code clean. Alternatively solve this issues with Less (mixins) enables you to use alternative compilers (for those who don't install grunt (npm) and can't run the postcompilers ).

Also notice that the pixrem do not support source maps

from cardinalcss.

zboralski avatar zboralski commented on June 18, 2024

I would stop using cardinal altogether if we starts using em/px again. There are rem polypills that can be use for backward compatibility.

from cardinalcss.

cbracco avatar cbracco commented on June 18, 2024

Thanks for the feedback everyone, I am going to continue using rem units in future versions of Cardinal. Closing this out.

from cardinalcss.

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.