Changing font size in the editor

edited March 2007 in userstyles.org
How can I change the font size in the editor? It looks fine on my desktop but barely readable on my laptop.

I tried using font-size:20px and this but neither one does anything.

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#stylish .textbox-textarea{font-size:x-large !important;}

Comments

  • edited March 2007
    Try this...

    @namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("userstyles.org") { #short-description, #long-description, #css { font-size: 20pt !important; } }
  • @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); @namespace html url("http://www.w3.org/1999/xhtml"); @-moz-document url(chrome://stylish/content/stylish-edit.xul) { #code html|*.textbox-textarea { font-size: 20px !important; } }
    Can anyone actually explain what happened here? I just adapted the code from Greg S' textbox, broken security userstyle.
  • For the Stylish Editor I use this (works for 0.4 and 0.5)

    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); @-moz-document url(chrome://stylish/content/stylish-edit.xul), url(chrome://stylish/content/edit.xul) { #description { font-family: lucida console !important; font-size: 10pt !important; } #code { font-family: lucida console !important; font-size: 10pt !important; } }
  • Thanks. Ultimately this worked -

    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    #stylish .textbox-input-box{font-size:large !important;}

    But it only works on my desktop, not on the laptop. Stylish.rdf is identical on both computers but they have different userChrome.css because they use different themes. I still can't get it to work on the laptop but I suspect something else in userChrome.css is interfering with it.
  • Speaking of fonts, I just thought I'd share my favorite monospaced font, "Dina":

    http://www.dafont.com/dina.font?nb_ppp=50

    It's similar to Lucida Console, but better distinguishes between stuff like the number zero (0) and the capital letter O, so it's a bit better for programming. The only down side is that there's three sizes, 8pt, 9pt and 10pt...and only 8pt and 10pt look good.

    Consolas is also another good programming font, but it requires Windows XP with ClearType enabled, or Windows Vista. You can find it easily on Google.
Sign In or Register to comment.