Repository navigation
Converting styling of all internal apps, Settings and core ownCloud from em to px. - #2143
raghunayyar wants to merge 14 commits into
Conversation
|
It seems to fix the pbm for files at least :) |
|
wow 👍 |
|
I really really really hope that his doesn't break things. |
|
I want more people to check on this please. I have been careful with this, but the chances of breaking things is also high. @karlitschek should we wait with this for OC6, btw ? |
|
@raghunayyar If you think that the risk is high then we definitely have to wait. |
|
@karlitschek I guess we can wait for some more 👍 for this. If some issue pops up, I am ready to merge it after OC5 is released. |
|
As set in the milestone and as said in other discussions, of course a change like this has to wait for ownCloud 6. Big thanks @raghunayyar! I’ll check it out later. And everyone else, please don’t press the merge button on this! |
|
@jancborchardt @karlitschek @Raydiation @eMerzh I guess this is the right time to get this in. Other wise, more commits will be thee in terms of em making it unmanageable when we near OC6. |
|
Why do we want px instead of em's? |
|
@stefannagtegaal I have tagged a couple of issues in this PR. You can check them as a reason. :-) |
|
I'm ok with changing to em. But I think @jancborchardt should approve this because we changed that to px with a reason in the first place. |
Actually it's the other way around: From em to px |
|
@raghunayyar everything seems to work but has gotten a tad smaller. 1em usually equates to 16px instead of 12. Can you test and update that? @stefannagtegaal see this mailing list post and the followup. Short: px is controllable while em can easily result in a mess (and it did several times for us, see upload button), px is not = device pixels but a relative measurement just like em, and Bootstrap (which you seem to like according from the recommendation on the mailing list) also uses px. |
|
So for the record 👎 until the 16px/12px stuff is resolved. Just so that no one clicks the »merge« button. :) @Raydiation did you see the stuff getting smaller also when you tested it? |
|
@jancborchardt stuff getting smaller totally depends on how you have taken 1em in your browser. ;) |
|
The problem is that most browsers use 16px as the default font-size (which results in 1em), while for example IE 6 has implemented a default font-size of 13px (if I correctly recall). The best and most cross-browser way to solve this is: body { etc, etc... It should be noted that once the user manually overrides the default minimum font-size in his browser, everything changes again. Despite everything above, I really see another big advantage of using Googles Bootstrap here, which gives us a solid base to work on.. |
|
Wondering whether this will be okay on high DPI displays … em has it's advantage of being relative to the screen it's on, px can't say that. |
|
@Kondou-ger that’s simply not true, px is relative just like em. Test by yourself on a retina display, or read http://mail.kde.org/pipermail/owncloud/2012-December/006814.html |
|
@Kondou-ger checked this PR after a long time. I guess ding this with 1em as 14px would make more sense. cc @jancborchardt |
|
@raghunayyar yeah, probably it’s best to do 14px – as 12px makes everything smaller and 16px too big. That’s because the default font size was set to .8em In the future we should probably make the interface a bit bigger anyway so it’s more easily clickable, but that’s a separate issue. @stefannagtegaal for the record since you quote a problem iwth IE6: We only support IE down to version 8. |
There was a problem hiding this comment.
Shouldn't this be 11px instead of 9px? (12*0.9=10.8)
|
@kabum awesome, I did everything manually so there might be errors here. I am making a new PR for this mostly though. taking 14px as 1 em. :) |
|
@raghunayyar so I will check this new PR too :) ... just mention me |
|
Also maybe separate it into smaller steps: one for the core/styles.css, one for settings.css, etc. - makes it much easier to review. On 16.04.2013, at 15:47, Raghu Nayyar [email protected] wrote:
|





The styling written in "em" that was causing various issues like #801 and #1747 to users who used different sizes in the browsers has been converted to the more convenient "px". I have tried to cover almost the entire CSS of the core repository. I gave it a test and the layout seemed fine. I hope I haven't missed out something. So, someone can give this a hard test as a lot of styling is affected by this.
cc // @jancborchardt @Raydiation @eMerzh