Author Topic: Implementing Style Sheets In Opera 7.55  (Read 2749 times)

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Implementing Style Sheets In Opera 7.55
« 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 have
Code: [Select]
Local CSS File=/home/QtPalmtop/opera/styles/pda.cssI created pda.css in that directory and added an @import url in it to import a site-specifc css file in the same directory.
Code: [Select]
@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.
Code: [Select]
@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
« Last Edit: February 07, 2007, 04:07:23 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Implementing Style Sheets In Opera 7.55
« Reply #1 on: February 08, 2007, 12:12:52 am »
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
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.
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Implementing Style Sheets In Opera 7.55
« Reply #2 on: February 08, 2007, 07:49:28 am »
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.
« Last Edit: February 08, 2007, 07:51:16 am by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)