X
Tap here to go to the mobile version of the site.

Support Forum

I am using the following code in userCrome.css

Posted

I am using the following code in my userCrome.css:

#personal-bookmarks .bookmark-item[container][label="Fleet"] {
 list-style-image:url('ufp.png') !important;
 -moz-image-region:auto !important;
}

#personal-bookmarks .bookmark-item[container][label="Fleet"] > .toolbarbutton-text {
 display:none !important; 
}

#personal-bookmarks .bookmark-item[container][label="Fleet"] > .bookmark-item {
 list-style-image:url('ufp.png') !important;
 -moz-image-region:auto !important; 
}

I was trying to make all folders under the folders not "Fleet" have the same icon as the "Fleet" folder. I also want to define all bookmarks (without their own icon) under the folder "Fleet" with a different icon. In this way all "Fleet" folders use the ufp.png icon, all "Fleet" bookmarks use another icon, unless of course their icon is defined by a favicon or individually in the userChrome.css.

So far this defines all items under "Fleet" as having the ufp.png icon. I even tried the following with the same result...

#personal-bookmarks .bookmark-item[container][label="Fleet"] {
 list-style-image:url('ufp.png') !important;
 -moz-image-region:auto !important;
}

#personal-bookmarks .bookmark-item[container][label="Fleet"] > .toolbarbutton-text {
 display:none !important; 
}

#personal-bookmarks .bookmark-item[container][label="Fleet"] > .bookmark-item[container] {
 list-style-image:url('ufp.png') !important;
 -moz-image-region:auto !important; 
}

Is there some way to inform firefox more precisely what I am attempting to do?

I am using the following code in my userCrome.css: <pre><nowiki> #personal-bookmarks .bookmark-item[container][label="Fleet"] { list-style-image:url('ufp.png') !important; -moz-image-region:auto !important; } #personal-bookmarks .bookmark-item[container][label="Fleet"] > .toolbarbutton-text { display:none !important; } #personal-bookmarks .bookmark-item[container][label="Fleet"] > .bookmark-item { list-style-image:url('ufp.png') !important; -moz-image-region:auto !important; } </nowiki></pre> I was trying to make all folders under the folders not "Fleet" have the same icon as the "Fleet" folder. I also want to define all bookmarks (without their own icon) under the folder "Fleet" with a different icon. In this way all "Fleet" folders use the ufp.png icon, all "Fleet" bookmarks use another icon, unless of course their icon is defined by a favicon or individually in the userChrome.css. So far this defines all items under "Fleet" as having the ufp.png icon. I even tried the following with the same result... <pre><nowiki> #personal-bookmarks .bookmark-item[container][label="Fleet"] { list-style-image:url('ufp.png') !important; -moz-image-region:auto !important; } #personal-bookmarks .bookmark-item[container][label="Fleet"] > .toolbarbutton-text { display:none !important; } #personal-bookmarks .bookmark-item[container][label="Fleet"] > .bookmark-item[container] { list-style-image:url('ufp.png') !important; -moz-image-region:auto !important; } </nowiki></pre> Is there some way to inform firefox more precisely what I am attempting to do?

Modified by cor-el

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.2 r202
  • Next Generation Java Plug-in 10.45.2 for Mozilla browsers
  • Plugin for Installing Applications (new)
  • Mime Type x-skype for Skype Buttons
  • The Videos 3.8.2 plugin handles video and audio streams.
  • DivX Web Player version 1.4.0.233
  • This plug-in detects the presence of iTunes when opening iTunes Store URLs in a web page with Firefox.
  • MozPlugger version 1.14.5, maintained by Louis Bavoil and Peter Leese, a fork of plugger written by Fredrik Hübinette.For documentation on how to configure mozplugger, check the man page. (type man mozplugger) Configuration file:/etc/mozpluggerrc Helper binary:mozplugger-helper Controller binary:mozplugger-controller Link launcher binary:mozplugger-linker

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0

More Information

I am using Firefox 25.0

Question owner

P.S. the "code" show was altered slightly by the form. The pound symbols were replaced by a numeral "1" followed by period/decimal.

P.S. the "code" show was altered slightly by the form. The pound symbols were replaced by a numeral "1" followed by period/decimal.
cor-el
  • Top 10 Contributor
  • Moderator
13082 solutions 119745 answers

Helpful Reply

The first two rules set the ufp.jpg icon for a folder with the label "Fleet" and hide the label name.
The third rule specifies the same ufp.jpg image for all items I'm not sure what you intend for bookmarks and folders under Fleet as I only see you using one ufp.jpg icon: "all "Fleet" bookmarks use another icon"

Folders under "Fleet" would have this selector:

#PlacesToolbarItems > .bookmark-item[container][label="Fleet"] .bookmark-item[container] {}

Normal bookmarks under "Fleet" would have this selector:

#PlacesToolbarItems > .bookmark-item[container][label="Fleet"] .bookmark-item:not([container]) {}
The first two rules set the ufp.jpg icon for a folder with the label "Fleet" and hide the label name.<br /> The third rule specifies the same ufp.jpg image for all items I'm not sure what you intend for bookmarks and folders under Fleet as I only see you using one ufp.jpg icon: "''all "Fleet" bookmarks use another icon''" Folders under "Fleet" would have this selector: #PlacesToolbarItems > .bookmark-item[container][label="Fleet"] .bookmark-item[container] {} Normal bookmarks under "Fleet" would have this selector: #PlacesToolbarItems > .bookmark-item[container][label="Fleet"] .bookmark-item:not([container]) {}

Modified by cor-el

Helpful Reply

Exactly what I need, I think... I have not tried it out yet. The main reason I did not supply the second icon is; I didn't know how to prevent the first from over taking the sub-folders and bookmarks under "Fleet". I also felt insecure in attempting to assign icons to bookmarks with the "Fleet" folder.

Thank Very Much!

Exactly what I need, I think... I have not tried it out yet. The main reason I did not supply the second icon is; I didn't know how to prevent the first from over taking the sub-folders and bookmarks under "Fleet". I also felt insecure in attempting to assign icons to bookmarks with the "Fleet" folder. Thank Very Much!

Question owner

The code:

  1. PlacesToolbarItems > .bookmark-item[container][label="Fleet"] .bookmark-item:not([container]) {}

Does nothing for the bookmarks. The first portion of the code does assign variables to the sub-folders as it is meant to. The second portion shown above does not assign icons to bookmarks without their own icons.

The code: #PlacesToolbarItems > .bookmark-item[container][label="Fleet"] .bookmark-item:not([container]) {} Does nothing for the bookmarks. The first portion of the code does assign variables to the sub-folders as it is meant to. The second portion shown above does not assign icons to bookmarks without their own icons.