LouisR
November 6, 2015, 5:49pm
1
It seems that ionic’s css is based on px with special classes that detect which device we’re on like:
.platform-ios.platform-cordova:not(.fullscreen) .has-subheader
I am used to work with ‘rem’ units to be sure that everything stays responsive, I set font-size to html, boady
tags and them use rem
everywhere.
Can you help me figure out the best practices to enforce this in ionic ?
What do you usually do to keep things responsive ?
Thanks
LouisR
November 12, 2015, 3:54pm
2
Can someone help me clarify this ?
For now I don’t find ionic framework very responsive in terms of CSS components.
I don’t understand, all the components sizes are in px in ionic.css.
Thanks
Ionic’s css doesn’t support rem values.
Think of it like this...you adjust one variable, now the whole entire app is thrown off. We could have used rems, ems, but we chose to stick with pixels to control of certain parts of an app and not have it messed up by changing one variable,...
But.
You can run a python script to convert the base styles to rem values.
ionic-rem.scss
LouisR
November 24, 2015, 8:57pm
5
Ahh super cool ! I read the discussion, and I really like rem units. Thanks for pointing me to the right spot