Comments (9)
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.
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.
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.
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.
I should not switch back. Consider to integrate https://github.com/robwierzbowski/grunt-pixrem/ in the build process.
from cardinalcss.
Yeah I think maybe we can use a LESS mixin or grunt (as @bassjobsen) stated to generate pixel fallback units
from cardinalcss.
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.
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.
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)
- Modernizr not found on cardinalcss.com HOT 1
- Re-organize LESS partials
- Remove ::selection styles because it causes iOS8 to crash
- Add demos to documentation HOT 1
- Remove text-rendering: optimizeLegibility from headings HOT 1
- Embedded YouTube videos HOT 2
- gulp-less needs newer version in package.json HOT 1
- Define 'mobile-first' HOT 4
- Attribution HOT 1
- Fix incorrect variable in grid system HOT 1
- v3.3.0 has major breaking changes HOT 5
- Textarea height: auto !important prevents resize HOT 1
- Remove Outline reset on Forms HOT 3
- @font-size tweeking / .to-rem mixin HOT 2
- Missing bracket @font-face in font-face mixin HOT 2
- Add more grid gutter classes HOT 3
- Demo HOT 1
- Consider changing font HOT 1
- Does CardinalCSS provide a grid system? HOT 1
- Is this project dead ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cardinalcss.