OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: dougeeebear on February 07, 2007, 12:51:44 pm
-
I've been very successful in creating site-specific style sheets in Firefox (for windows) using the Stylish extension.
Now I'm trying to implement site-specific style sheets in Opera on the Zaurus.
In opera.ini I haveLocal CSS File=/home/QtPalmtop/opera/styles/pda.css
I created pda.css in that directory and added an @import url in it to import a site-specifc css file in the same directory.
@import url("tyrannazaurus-forum.css");
This is the contents of tyrannazaurus-forum.css (code taken directly from Stylish).
My intent is to remove the sidebar and extend the posts width when reading posts.
This code works perfect with Firefox.@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix("http://www.tyrannozaurus.com/?q=node/"), url-prefix("http://www.tyrannozaurus.com/?q=comment/reply/") {
/* remove the sidebar */
#sidebar { display: none !important; }
/* change the width of posts */
.comment, .form-item { margin: 0px -160px 0px 0px !important; }
}
I think the @-moz (for mozilla) needs to be replaced with @-o (for opera),
but I have tried all kinds of combinations and nothing has worked.
If anyone has any info on how to use style sheets in Opera on the Zaurus, I would appreciate the help.
My OS setup is in my sig.
Thanks,
Doug
-
Hey, that's pretty neat. Good work.
I'm still learning css so I don't have the knowledge to help you , but I googled around and found this link that may help:
http://googlesystem.blogspot.com/2006/07/r...gle-search.html (http://googlesystem.blogspot.com/2006/07/remove-note-this-from-google-search.html)
It looks like you just take that part out.
Please keep us up to date on your css. Perhaps I can use it to make a "Opera version" button on tyrannozaurus.
-
Actually this is user css, which means the user has control of how they want a site to appear to them.
There are various elements that can be eliminated, moved around and colored differently.
This feature may not have been implemented until a later version of Opera, but I'm still checking it out.