Archived Comments (locked)

in
Subscribe to Archived Comments 11 posts, 6 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
JoeSimmons Script's Author

Doesn't scale properly.

Fixed.

 
Two-Step Scriptwright

Doesn't scale properly.

 
JoeSimmons Script's Author

Fixed it Navid. Thanks. But I used font-size 11px.

 
Navid Zamani Scriptwright

Nice style. I found a little bug in it:
You gave the PRE tag the Arial font... which is not a monospace font... hence destroying the whole purpose of the pre tag: To show stuff in monospace, with no formatting. ;)
After fixing it, the font was too small, so it resulted is the following:

pre { font-family: monospace; font-size: 10pt; }

I prefer the point unit for fonts and real-life units like mm for the rest, because otherwise you get tiny fonts on high-DPI screens (like mine) :D
I hope I could help.

 
easier_rhino Scriptwright

If you're interested in making your Stylish code do image replacement for the logo, might I suggest the following code:

h1 > a[href="/"] > img
{
  display: none !important;
}
h1 > a[href="/"]:after
{
  content: url(URI GOES HERE) !important;
}

The URI GOES HERE should be replaced with the URI of the logo. I didn't quote it because it's really really long. I also will warn you that Stylish went a bit freaky with a URI that long when I copied and pasted it into the Stylish window, but it still works.

This :after hack will actually work for any image surrounded by a tag you can get at (you can't use img:after for some reason, you have to use the image's container). Since there's no ID in this case, it's hard to do it perfectly, but I'm will to bank on there only being one tag answering to the description above.

Hope that helps anyone who wanted to use Stylish for styling.

 
JoeSimmons Script's Author

I don't know how to change the image by css in Stylish.
I actually started this in Stylish but I don't know how to edit an image that doesn't have a specific id or whatever.

 
Ronen Mendez... User

Is it possible you update the userscripts logo image in here: http://userstyles.org/styles/9483
for some reason, sometimes when you use scripts, they don't load right away, so i see the website white and regular, then after a second or 2 it changes - this doesn't happen with the css styles, so i rather use the userstyles theme for this one.

thank you

 
Ronen Mendez... User

Fantastic looking now, thank you. yet another website turned dark for me :)

 
JoeSimmons Script's Author

I'm going to. I made it in Stylish so I couldn't do that right away. I'll add that in now. I already had a logo with a transparent background.
Edit: Updated it and it's looking great. Some borders didn't show correctly in Stylish but they do in a userscript so I'm going to fix all that up.

 
Ronen Mendez... User

I like it black, but maybe you want to change that logo - it looks bad, maybe remove the orange background like this:
http://img.photobucket.com/albums/v613/ronen82/...

or remove is and paint the text background like this:
http://img.photobucket.com/albums/v613/ronen82/...

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel