Tuesday, 20. November 2007, 10:52:09
me, css
Monday, 5. November 2007, 16:21:58
browsers, css
For a few years I've been maintaining up-to-date versions of
Eric Meyer's
HTML 4 Quick Reference and CSS 2 Quick Reference panels/sidebars. Keeping the HTML QR up-to-date is easy, as it never changes, but CSS 2 is slowly progressing towards a CSS 2.1 Recommendation and so changes every once in a while.
The
fun part in CSS developments is in the emerging CSS 3 modules. Some have been untouched for years, others get some serious work, and sometimes even new ones get created. The CSS Working Group at the W3C has this
Current Work page that you can use to keep track. The most fun is of course the implementation of new properties in browsers, the folks at
CSS3.info do a nice job of following that.
But with CSS3 modules starting to become usable for real use on the web, the CSS 2.1 QR needed an update. So I've made a new
CSS 3 Quick Reference panel that pulls all the new properties, selectors, at-rules etc together. Come and get it from
Rijk's Panelizer!

Monday, 22. January 2007, 23:58:50
opera, screenshot, browsers, css
David Storey, our head web opener, has posted about the upcoming support for 'Selectors' (that is, CSS 3 Selectors) in Peregrine, the codename for the next big update of Opera (current 9.x series is codenamed Merlin). He also mentioned support for the 'text-shadow' property.
'text-shadow' has been dropped from CSS 2.1 because there were not enough implementations, basically it was just Safari (and other webkit-based Mac browsers) for a long time. Later iCab (a non-webkit Mac-browser) also added support, as well as Konqueror. Now, our developers also found a way to implement it.
Here's how text-shadow in Peregrine looks like on my
Panelizer pages:

Note that I don't really like the 'pure' text-shadows, but I very much appreciate the blur effect. Using a little blur on :hover is also nice as a link-indicator I think - but there is no mechanism in CSS to fallback to another :hover style if text-shadow is not supported, which might make this use a bit problematic.
Our implementation seems to be quite good:
- support for multiple shadows
- limits to be maximum blur value - you can seriously hurt performance of some other browsers with big blur values
Friday, 10. March 2006, 19:27:29
opera, merlin, weekly, acid2
...
Yesterday, the developers
fixed a couple of issues, and Opera can now pass the Acid 2 test without breaking the rest of the web. So in
todays weekly build, the
smiley has clear eyes. This shows the
steady progress in CSS support in Opera.
But yesterday was also
a sad day. Chaals is a much better writer, I'll let him speak for me. I'll just say it's the end of an era for Opera.

Wednesday, 17. August 2005, 15:07:11
feed, customization, opera, screenshot
...

Here are a few lines I've added to my mime.css, to make newsfeeds look a little nicer:
/* for feed content in general */
div.feedContent {font-family: serif;}
/* 'tags' in Tantek's feed as a small inline list
http://tantek.com/log/posts.atom
*/
h4.tags {display: run-in; font: bold smaller sans-serif;
margin: 0; padding: 0 .5em 0 0;}
ul.tags {display: block; font: smaller sans-serif;
margin: 0; padding: 0;}
ul.tags li {display: inline; margin: 0; padding: 0;}
ul.tags li a {text-decoration: none;}
/* permalink links bold red small */
div.feedContent + p > a {text-decoration: none;
color: red; font: bold smaller sans-serif;}
This should work well with the default mime.css stylesheet. I've also got a completely restyled mime.css which tries to use the system colors more, and is a bit 'classier'. That's the one you see in the
screenshot.
Get the stylesheet here.
Edit: For Opera 9 beta, add this to the 'browser.css' file instead.


Monday, 17. January 2005, 12:42:22
opera, customization, css, tweak
...
A commom question in the newsgroups is: "Why is the link/visited link color in I set in 'My Link Style...' (see the Page Style preferences) ignored on most pages?" The same question can be asked about your choice for 'strike through' and/or 'underline'.
The link style is the base style you choose for links, always to be overriden by author styling when you allow author styling. So if the page sets a color for links and visited links (using a stylesheet or html attributes), Opera's settings will be ignored. And if the page stylesheet sets a value for 'text-decoration' (underline, no underline, strike-through, blink), Opera's setting for undeline and strike-though will be ignored.
If you want your preferred link style to be applied all the time, you need to use a 'User style sheet' and use the '!important' marker in it to make your styles override all author styles.
Example of such an user style sheet, just copy to a plain text file:
a:link {
color: #0000ff !important;
background-color: #ffffff !important;
text-decoration: underline !important;
}
a:visited {
color: #ff00ff !important;
background-color: #ffffff !important;
text-decoration: line-through !important;
}
To see your user stylesheet applied on top of author styling, enable it in the 'Author' presentation mode, like this:

But having you own link colors applied all the time is usually very ugly when visiting sites with a dark background.
Personally I'd use only this in my user stylesheet:
a:visited {
text-decoration: line-through !important;
}
... because it never interferes with the color scheme of sites.


Saturday, 27. November 2004, 01:22:19
opera, userstyle, css, customization
...
Edit 2007-04-21: outdated, doesn't work in Opera 9. Use this userscript instead.Entrepid Opera user Fabian has created this very cool Flash-blocker. In involves nothing more than adding a few lines to your user stylesheet:
embed[type="application/x-shockwave-flash"] {content:"Flash"; outline: 1px dotted gray; color: gray; background: black}
embed[type="application/x-shockwave-flash"].zichtbaar {content: normal; outline: none}
body:before {
position: absolute; visibility: hidden;
background-image: url("javascript:(function(){window.onclick=function(){var srcElem=window.event.srcElement;var tag=srcElem.tagName;if(tag=='EMBED') srcElem.className='zichtbaar'};})()");
content:""}
This will replace Flash movies with a black area with the word Flash on it, and clicking on the area will play the Flash movie. Depending on the HTML code of the page, the replacement block might collapse dimensions. This blocker will only block display, it wil not block loading the Flash, so on clicking the Flash immediately starts playing.
Get the code from this zip to be sure you are not fooled by linebreaks:
<
http://my.opera.com/forums/attachment.php?postid=744450>
Maybe I should write something about the easiest way to work with custom stylesheets. Later!


Tuesday, 25. May 2004, 11:25:30
css, customization, userstyle, configuration
...
Quick tutorial on using 'browser.css' and 'user.css' in Opera 7.5. This is meant as an introduction for people not well versed in CSS.
- A file stored as 'browser.css' in the directory \Profile\styles will be used to override browser default styling (and also author styling if you add '!important' to a rule); it will always be applied. Changes in browser.css need a restart before becoming effective.
- You can also create a 'user.css' file. You can control when to apply it with the settings under 'Tools > Preferences > Page Style > Configure modes' and Ctrl+G (Shift+G in Opera 8 and higher).
- See 'Help > About Opera' to locate you Profile directory.
- CSS files are rulesets stored as plain text files, easily created with, for example, Notepad.
- CSS rules consists of 'selectors', which select a piece of the HTML document to work on, and 'declarations' that say how to style that piece. Declarations consist of one or more 'property:value' pairs.
- * is the universal selector.
Here are some
examples of a css rules to put in either browser.css or user.css files. You just put them after each other in the css file.
Rule to fix the font face * {font-family: "Trebuchet MS", Arial !important;}
pre, code, tt, kbd {font-family: "Andale Mono", "Courier New" !important;}
Or leveraging your settings for 'Generic CSS font families':
* {font-family: sans-serif !important;}
pre, code, tt, kbd {font-family: monospace !important;}
Rules that fix font sizeWith some inflexible pages, this can lead to uglier display as text overflows too narrow boxes.
* {font-size: 16px !important;}
big {font-size: 18px !important;}
small {font-size: 14px !important;}
h1 {font-size: 26px !important;}
h2 {font-size: 22px !important;}
h3 {font-size: 20px !important;}
h4 {font-size: 18px !important;}
h5, h6 {font-size: 16px !important;}
Rules that fix colors * {color: black !important; background: white !important;}
a:link {color: blue !important; background: white !important;}
a:visited {color: purple !important; background: white !important;}
a:active, a:hover {color: red !important; background: white !important;}
More info can be found at <
http://nontroppo.org/wiki/OperaUserCSS>