Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am tweaking the look of Gnome Shell and was asking my self what the following, and also specifically what "ems" means in gnome-shell.css

/* The remaining popup-menu sizing is all done in ems, so that if you
* override .popup-menu.font-size, everything else will scale with it.
*/

Would somebody explain it to me? I prefear to not break anything if possible, so thats why I am asking.

Thanks in advance! Roberto

share|improve this question

1 Answer 1

An em is the width of the character M. Well, that's the etymological reason, anyway. It is a measurement of size in relation to your font size. Gnome Shell uses CSS, which is the same language that most all webpages use. This means there are buckets of places to find information about how it's used. This link has examples, for example (: http://www.guistuff.com/css/css_units.html

share|improve this answer
    
Thanks Jo for your answer, I will look into that –  Roberto Giardina Nov 11 '11 at 11:42
    
Actually I still dont understand the statement above, apart from what "ems" is; If I search for a line containing ".popup-menu.font-size" I can't finde one. Instead I find many lines containing either "popup-menu" or "font-size". Now, if I do correctly understand, if I change (override) the value of a certain line (.popup-menu.font-size) everything else (just what concerns the popup-menu?) will scale? That would simplify the work. But where exactly do I have to change a value? Cause as stated I cant find a line containing ".popup-menu.font-size" Thanks for you help, Roberto –  Roberto Giardina Nov 11 '11 at 11:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.