A bug

edited February 2007 in Stylish
I have some styles that i use for my theme, but they dont seem to work. (I'm new to Stylish, so please don't talk in terms of code). I am also using a mac, could this be the root of the problem?

Here are the two codes I'm using:
toolbarbutton.bookmark-item > .toolbarbutton-icon { display: none !important; }
@import url(”chrome://global/skin/extra/toolbar2.css”);

Thanks,
dylan

Comments

  • In what way doesn't it work?

    Only thing I can think of is that your @import line should be the first line of your code, otherwise it won't import the file.
  • None of the codes are put into effect. By the way, both of those lines are different codes
  • I can't help you with the first line, but the last I knew, Stylish doesn't support @import url.
  • The first line works for me - it gets rid of the favicons in the bookmarks toolbar. Maybe you need to restart Firefox for it to take effect?

    Stylish does support @import, but I don't know what that import's supposed to be doing (I don't have the file specified).
  • The toolbarbutton line works for me...I tested it just now. It removes the icons on personal bookmark toolbar, but not any of the icons from the menupopups (i.e. inside folders) if that's what you're trying to do.

    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); toolbarbutton.bookmark-item > .toolbarbutton-icon { display: none !important; }
  • edited February 2007
    Posted By: Jason Barnabe (np)Stylish does support @import
    How do you make it work with Stylish?
    I've tried using it in userChrome.css for importing other .css files in the chrome folder, and could never get it to work.
    Uninstall Stylish and it works.
    I'm puzzled.
    Does it have to be included within a Stylish style?
    I should mention I'm still using Stylish 0.3.2.

    Ok, I just tried it in a style as follows:@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); @import url("file:///C:/Program%20Files/Mozilla%20Firefox/Profile/chrome/classic-style-menus.css");and when I try to save it I get an error dialog:Unrecognized at-rule or error parsing at-rule '@import'.
  • @import lines must be inserted before the namespace line.. or without one.
  • With just@import url("file:///C:/Program%20Files/Mozilla%20Firefox/Profile/chrome/classic-style-menus.css"); I get this error when savingSecurity Error: Content at data:text/css,@import url("file:///C:/Program%20Files/Mozilla%20Firefox/Profile/chrome/classic-style-menus.css"); may not load or link to file:///C:/Program%20Files/Mozilla%20Firefox/Profile/chrome/classic-style-menus.css.
  • Right, you can't currently load local resources.
  • So in what way does Stylish support @import url?
  • You can import sheets over http, but that's a bad idea because if the site becomes unresponsive, you'll hang at Firefox startup (which is why the site doesn't allow them).
Sign In or Register to comment.