Add-ons Mirror: userChrome.css - Skins - Add-ons Mirror

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

userChrome.css - Skins skinning the interface

#1 User is offline   mai9 Icon

  • Code Moderator
  • Icon
  • Group: Members
  • Posts: 58
  • Joined: 22-October 04
  • Location:Barcelona
  • Interests:Firefox Tweaking

Posted 03 November 2004 - 01:39 AM

Here's a list of what you can remove or modify from the interface:
  • <a href="#entry8054">Adding icons to context menus without CuteMenus</a> (<a href="#entry11365">code examples)</a>

  • <a href="#entry8177">menus</a>

  • <a href="#entry8799">urlbar</a>

0

#2 *Guest_LouCypher_*

  • Group: Guests

Posted 30 December 2004 - 04:43 PM

Adding icon to context menu without using Cute Menus

First, create 14x14 image (size depends on the theme you are using or if you have changed the context menu size, but for the default theme and default menu size, use 14x14)
then add the following code to userChrome.css:

#context-menu-id { background: url(image_url) 2px 0px no-repeat; }

For the context-menu-id, see the post by mai9 above

Example:
If you have Web Developer extension installed, try this code:

#webdeveloper-context { background:url(chrome://webdeveloper/skin/buttons/button_small.png) 2px 0px no-repeat; }

Preview:
Posted Image

[scrn]adding%20icon2.png[/scrn]

This post has been edited by Seamaiden: 06 June 2007 - 04:55 PM

0

#3 *Guest_LouCypher_*

  • Group: Guests

Posted 03 January 2005 - 01:38 PM

Skinning without Themes

Assume you are using the default theme
First, download these 3 images to your computer: ** these links are broken - Seamaiden
bg_toolbar.png
bg_menu.png
bg_browser.png

then add the following codes to userChrome.css file
(note: replace the locations to where you download the files):

#navigator-toolbox {
	background:
	  rgb(192,192,192)
	  url(http://sorry the imagehosting is brokenwww.imghst.com/uploads/zoolcar9/bg_toolbar.png)
	  top left
	  repeat
	  !important;
}

menupopup,
#toolbar-context-menu,
#contentAreaContextMenu {
	background:
	  rgb(255,255,255)
	  url(http://sorry the imagehosting is brokenwww.imghst.com/uploads/zoolcar9/bg_menu.png)
	  top left
	  repeat-y
	  !important;
}

sidebarheader,
#sidebar-box,
#appcontent,
#content {
	background:
	rgb(192,192,192)
	url(http://sorry the imagehosting is brokenwww.imghst.com/uploads/zoolcar9/bg_browser.png)
	top left
	repeat-x
	!important;
}

Posted Image See Preview

Note that this is just an example
You can use any colours and images or any styles you want :)
even your girl friend photo :D

This post has been edited by Seamaiden: 06 June 2007 - 04:57 PM

0

#4 User is offline   GeeK Canon Icon

  • I HATE gmail (switched from TBE to TM+)
  • Icon
  • Group: Members
  • Posts: 320
  • Joined: 17-June 04
  • Gender:Male
  • Location:USA
  • Interests:I will NOT reply to email from gmail !!!!!
    Jabber identity: GeeK$canon%jabber.org
    remove the $, and replace % with @ in my contact information. Also, remove the 0 from my ICQ#.
    love, faith, hope, kindness and truth
    http://TheologyOfTheBody.net
    http://PureLoveClub.com
    http://CatholicCulture.org
    http://SilverRingThing.com
    http://ProtestWarrior.com
    http://AnnCoulter.com
    http://CommunistsForKerry.com
    http://www.thepeoplescube.com/

    yes, another young, orthodox Catholic, conservative guy!

    my favorite extensions:
    Adblock
    Bookmark Backup
    Bookmarks Synchronizer
    Linkification
    Magpie
    Policy Manager
    Show Failed URL
    Tabbrowser Extensions

    (closely) related firefox extensions
    http://forum.addonsmirror.net/index.php?showtopic=104
  • Platform: Unspecified

Posted 22 January 2005 - 04:13 AM

/* ============= UI Appearance Tweaks ================ */

/* URL bar background image for high security site */
#urlbar[level="high"] > .autocomplete-textbox-container {
   background-image: url('high.png') !important; 
   background-color: none !important;
   font-weight: 600 !important;
}

/* URL bar background image for low security site */
#urlbar[level="low"] > .autocomplete-textbox-container {
   background-image: url('low.png') !important; 
   background-color: none !important;
   font-weight: 600 !important;
}

/* URL bar background image for broken secure site */
#urlbar[level="broken"] > .autocomplete-textbox-container {
   background-image: url('broken.png') !important; 
   background-color: none !important;
   font-weight: 600 !important;
}



Credit to: http://www.users.on..../userChrome.css
grab mentioned PNGs from: http://www.users.on....ypen/Downloads/

Please do NOT hotlink to his files. Save the 3 PNGs to the same directory where userChrome.css lives.



preview:

Posted Image

Posted Image
FX 2.0.0.11 domi, AdBlockPlus/Elements,EasyList x3,rip,gm,NoScript,febe,fillfilesupload,cookieculler | TB 2

(closely) related Firefox Extensions

Disrupt Spam
0

#5 User is offline   mai9 Icon

  • Code Moderator
  • Icon
  • Group: Members
  • Posts: 58
  • Joined: 22-October 04
  • Location:Barcelona
  • Interests:Firefox Tweaking

Posted 17 March 2005 - 09:10 AM

some examples of previous technique:

menuitem[label="New Tab"] { background:url(chrome://cutemenus/content/res/new-tab.png) 2px 0px no-repeat; }
menuitem[label="Close Tab"] { background:url(chrome://cutemenus/content/res/delete.png) 2px 0px no-repeat; }
menuitem[label="Undo Close Tab"] { background:url(chrome://cutemenus/content/res/undo.png) 2px 0px no-repeat; }
menuitem[label="Bookmarks Toolbar"] { background:url(chrome://cutemenus/content/res/bookmark-manage.png) 2px 0px no-repeat; }
menuitem[label="Manage Folder"] { background:url(chrome://cutemenus/content/res/bookmark-manage.png) 2px 0px no-repeat; }
menuitem[label="Add Bookmark Here"] { background:url(chrome://cutemenus/content/res/bookmark.png) 2px 0px no-repeat; }
menuitem[label="Delete"] { background:url(chrome://cutemenus/content/res/delete.png) 2px 0px no-repeat; }




/* add icon to adblock image context menu item (extension) */
#adblock-image-menuitem { background:url(chrome://cutemenus/content/res/block-image.png) 2px 0px no-repeat; }

#context-keywordfield { background:url(chrome://cutemenus/content/res/search.png) 2px 0px no-repeat; }

This post has been edited by mai9: 17 March 2005 - 09:17 AM

0

#6 User is offline   Miksago Icon

  • Add-ons Journeyman
  • Icon
  • Group: Members
  • Posts: 23
  • Joined: 02-July 05
  • Location:Leeton Australia
  • Interests:Full Costomization of anything

Post icon  Posted 04 July 2005 - 04:38 AM

mai9, on Mar 18 2005, 2:10, said:

some examples of previous technique:

menuitem[label="New Tab"] { background:url(chrome://cutemenus/content/res/new-tab.png) 2px 0px no-repeat; }
menuitem[label="Close Tab"] { background:url(chrome://cutemenus/content/res/delete.png) 2px 0px no-repeat; }
menuitem[label="Undo Close Tab"] { background:url(chrome://cutemenus/content/res/undo.png) 2px 0px no-repeat; }
menuitem[label="Bookmarks Toolbar"] { background:url(chrome://cutemenus/content/res/bookmark-manage.png) 2px 0px no-repeat; }
menuitem[label="Manage Folder"] { background:url(chrome://cutemenus/content/res/bookmark-manage.png) 2px 0px no-repeat; }
menuitem[label="Add Bookmark Here"] { background:url(chrome://cutemenus/content/res/bookmark.png) 2px 0px no-repeat; }
menuitem[label="Delete"] { background:url(chrome://cutemenus/content/res/delete.png) 2px 0px no-repeat; }




/* add icon to adblock image context menu item (extension) */
#adblock-image-menuitem { background:url(chrome://cutemenus/content/res/block-image.png) 2px 0px no-repeat; }

#context-keywordfield { background:url(chrome://cutemenus/content/res/search.png) 2px 0px no-repeat; }

View Post



doesn't this work with the Text Size, Sidebar and Install Theme
(ps i've got MR Tech local install running)
0

#7 User is offline   dickvl Icon

  • Add-ons Newbie
  • Icon
  • Group: Members
  • Posts: 2
  • Joined: 30-November 04

Posted 11 September 2005 - 04:30 PM

Move the scrollbar arrows to lower-right corner:

/* Stacks Scrollbar Arrows on the Bottom */
scrollbarbutton[sbattr="scrollbar-up-top"]    { display: none !important; }
scrollbarbutton[sbattr="scrollbar-up-bottom"] { display: -moz-box !important; }
scrollbarbutton[sbattr="scrollbar-left-left"] { display: none !important; }
scrollbarbutton[sbattr="scrollbar-left-right"] { display: -moz-box !important; }
This code also goes to userContent.css!
0

#8 *Guest_LouCypher_*

  • Group: Guests

Posted 16 October 2005 - 07:41 AM

Slim Extension List Style
See screenshot

Add this code to userChrome.css

extension {
  min-height: 20px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.extension-icon-stack,
.extension-item-description {
  display: none !important;
}

extension[selected="true"] {
  min-height: 25px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

extension[selected="true"] .extension-icon-stack,
extension[selected="true"] .extension-item-description,
.extension-item-description[value *="when Firefox is restarted"] {
  display: -moz-box !important;
}

.extension-item-description[value *="will be upgraded"],
.extension-item-description[value *="will be enabled"],
.extension-item-description[value *="will be installed"] {
  color: blue;
}

.extension-item-description[value *="will be disabled"],
.extension-item-description[value *="will be uninstalled"] {
  color: red;
}

extension:hover * {
  cursor: pointer !important;
}

extension:hover,
extension[disable="true"] {
  background-image: url(chrome://mozapps/skin/shared/itemSelected.png) !important;
  background-position: top center;
}


Posted Image You can also add this code to userContent.css if you want the style to take affect when you open the Extensions Manager in a tab or sidebar.
0

#9 User is offline   wolfprintfx Icon

  • Add-ons Newbie
  • Icon
  • Group: Members
  • Posts: 6
  • Joined: 28-October 05

Posted 01 November 2005 - 10:56 PM

-- not sure if I post here, so if not then I am sorry --
Great help here!

Was wondering though, as far as the menu backgrounds, I was only able to get this section to work:

menupopup,
#toolbar-context-menu,
#contentAreaContextMenu {
(the rest of the code included)


Tried the others, mybe I am doing something wrong but I dont think so!-

What I am trying to do is get a tile background where all the buttons are or just where the menu of: File | Edit | View| etc. are. I tried the code:
#navigator-toolbox {
   background:
     rgb(192,192,192)
     url(http://sorry the imagehosting is brokenwww.imghst.com/uploads/zoolcar9/bg_toolbar.png)
     top left
     repeat
     !important;
}


But not sure if thats the correct code for what I am trying to do, and when I do use that code I notice nothing different at all in any menus, popups, dialog boxes, etc..

Any input on this will be helpful, also if you might have knowledge/answers/suggestion of a couple of my other posts would be great also.

Thanks
0

#10 *Guest_LouCypher_*

  • Group: Guests

Posted 22 December 2005 - 01:51 PM

Scrollbar menu
  • Add scrollbar to context menu

    #contentAreaContextMenu,
    #contentAreaContextMenu menupopup {
      max-height: 300px; /* or any height you specify */
    }
    
    #contentAreaContextMenu autorepeatbutton {
      display: none;
    }
    
    #contentAreaContextMenu scrollbox {
      overflow-y: auto;
    }


  • Add scrollbar to Bookmarks menu and Bookmarks toolbar menu

    #bookmarks-menu menupopup,
    #personal-bookmarks menupopup {
      max-height: 300px; /* or any height you specify */
    }
    
    #bookmarks-menu autorepeatbutton,
    #personal-bookmarks autorepeatbutton {
      display: none;
    }
    
    #bookmarks-menu scrollbox,
    #personal-bookmarks scrollbox {
      overflow-y: auto;
    }


  • Add scrollbar to all menus

    menupopup {
      max-height: 300px; /* or any height you specify */
    }
    
    menupopup autorepeatbutton {
      display: none;
    }
    
    menupopup scrollbox {
      overflow-y: auto;
    }
Scrollbar on context menu screenshot:
Posted Image



0

#11 User is offline   gracefool Icon

  • Add-ons Apprentice
  • Icon
  • Group: Members
  • Posts: 12
  • Joined: 28-June 04
  • Location:Wellington, New Zealand

Posted 15 April 2007 - 10:14 PM

I know how to reduce the height of the tabs and tab-bar, but what about the location bar and other toolbars?

tab {height: 23px !important; }
.tabbrowser-strip { height: 25px !important; }
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users