# About module - style sheets and scripts

Copyright © 2006-2007 Opera Software ASA. All rights reserved. This file is part of the Opera web browser. It may not be distributed under any circumstances.
$Id$

1. Style sheets for documents
2. User style sheets
3. Scripts for documents

Documentation index for the about module.

## Style sheets for documents

The directory `modules/about/styles` contains several style sheets used for the documents created by the about module, as well as several other style sheets used for generated documents and external content in Opera. These style sheets must be included in the installer and copied to the directory designated as `OPFILE_STYLE_FOLDER`, if support for the relevant documents/document types are enabled.

These style sheets also reference the icons stored in `modules/about/styles/images`. If you use any of the style sheets that use these images, you will need to copy them along with the style sheets. They should be placed in a `images` subdirectory under the `OPFILE_STYLE_FOLDER` directory.

See also the Wiki page on generated documents for more tips on how to make test cases to see if the style sheets get applied properly.

about.css

  Used for opera:about.

cache.css

  Used for opera:cache.

certinfo.css

  Used for certificate properties.

  Coregogi: When browsing a secure page, select "Certificate information" from the menu.

  Desktop: When browsing a secure page, select "View details" from the Info panel.

config.css

  Used for opera:config.

contentblock.css

  Used by the content blocker.

  Desktop: Right-click and select "Block content".

dir.css

  Used for directory listings, both local and FTP.

drives.css

  Used for opera:drives, only on systems with drive letters.

error.css

  Used for error messages, both in-line errors, invalid host name errors and XML parse errors.

history.css

  Used for opera:history.

image.css

  Used for standalone display of images.

im.css

  Used by the Opera Chat client (IRC).

info.css

  Used for the Info panel.

message.css

  Used for various informational messages, such as suppressed frames, and broken redirections.

mime.css

  Used by the Opera Mail client (e-mail).

plugins.css

  Used for opera:plugins.

search.css

  Used for opera:historysearch.

selftest.css

  Used for opera:selftest, should only be used by developers.

warning.css

  Used for messages generated by the phishing filter.

webfeed.css

  Used for inline display of webfeeds when `FEATURE_WEBFEEDS_DISPLAY` is enabled.

wml.css
small-wml.css

  One of these documents are needed (and must be renamed to `wml.css`) for display of WML (WAP) documents.

mathml.css

  Used for displaying mathematics written in MathML.

## User style sheets

The directory `modules/about/styles/user` contains several sample style sheets to use when `FEATURE_LOCAL_CSS_FILES` is enabled. If that feature is enabled, these files should be copied to the directory designated as `OPFILE_USERPREFSSTYLE_FOLDER`.

If your platform is using the `TWEAK_PERFS_CSS_FOLDER_SCAN` method of finding the files, this is all you need to do. Otherwise, you will need to create the appropriate entries in the main Opera configuration file (or the global default versions thereof), or, if `FEATURE_USERSTYLE_INI` is enabled, in a special file.

Please refer to the prefs module for further information.

## Scripts for documents

The directory `modules/about/scripts` contains several scripts used for the documents created by the about module. Currently only the opera:feeds and opera:selftest URLs use scripts. These scripts must be included in the installer and copied to the directory designated as `OPFILE_SCRIPT_FOLDER`, if `FEATURE_WEBFEEDS_DISPLAY` or `FEATURE_SELFTEST` is enabled.

common.js
substance.js

  Used for opera:feeds if `FEATURE_WEBFEEDS_DISPLAY` is enabled.

selftest.js

  Used for opera:selftest if `FEATURE_SELFTEST` is enabled.