color chooser -- stylesheet workaround (was Re: Re: what happened to the automatic fetching of website icons?)

"Karsten M. Self" <[email protected]>
Newsgroups gmane.comp.web.galeon.user
Message-ID <20050320023445.GG24299@localhost>
on Sat, Mar 12, 2005 at 09:40:34PM +0200, Timo Korvola ([email protected]) wrote:
> Michael Torrie <[email protected]> writes:
> > I have yet to need any preference that's not already provided by Galeon
> > 1.3, expect maybe proxy exceptions.
> 
> Colour override.  1.2 had a useful menu for quickly toggling
> Javascript, colour override, image loading and whatnot.  It has been
> made less useful in 1.3: the colour and image options are gone from
> the Web menu.  

It's faster (and was faster in 1.2) to override this behavior with a
stylesheet.  Now that 1.3.x has a stylesheet chooser, I've got a
"black-and-white.css" stylesheet in ~/.galeon/stylesheets/ and apply it
when I hit a crufted-over page.

Since it's not re-rendering every open page/tab (just the current one)
it acts *far* faster.  Might even make a good internal implementation.

> Currently one needs to use gconf-editor to change
> /apps/galeon/Rendering/FontsColor/use_own_colors.  Not exactly
> user-friendly.

See above.

...and below.


Peace.

------------------------------------------------------------------------
/* userContent.css:  user cascading style sheet, overrides webpage spec */

/* Author:  Karsten M. Self <[email protected]> and a cascade of
 * thousands.
 * Date: Tue Nov 12 22:39:12 PST 2002
 * License:  Freely distributable and modifiable.
 * NO WARRANTY:  This program is distributed WITHOUT ANY WARRANTY.
 */

/* Purpose:  override document settings to provide black text on a light
 * background (actually more ivory than white).
 */


BODY { 
    background:       #FFF !important;
    background-image:  none !important;
    font-color: #000000 !important; 
}


/* Universal properties -- inherit from parents, otherwise apply what's
 * here
 */
* * { 
    background:       inherit !important;
    background-color: inherit !important;
    background-image: none    !important;
    color:            inherit !important;
}

/* Force *all* fonts, weights, and line heights to be normal by default
 * unless otherwise specified.
 * 
 * This isn't quite working the way we'd like it to -- Megarad turns out
 * OK, FuckedCompany doesn't:
 *    http://www.megarad.com/  -- mostly black on white.
 *    http://www.fuckedcompany.com/  -- table and fonts not converted.
 */

FONT { 
    font-color: #000000 !important; 
}



/* Anchors.  These override the above specs to privide typical anchor
 * properties.  I also use the 'hover' property to positively ID links,
 * and like the effect.
 *
 * Specify most of these as ':link' pseudo class so that poorly
 * specified named refs don't get highlighted
 */

A:* { 
    color: blue !important;
    font-face: inherit !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

A:link { 
    color: blue !important;
    font-face: inherit !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

/* Uniform visited link specifications. */
A:visited{ 
    color: purple !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}


/* Hover -- when the pointer is placed over a link, change its
 * appearance.  This may be the single most useful link attribute to
 * specify as it doesn't interfere with page legibility, but does
 * clearly denote links.
 */
A:link:hover, A:visited:hover{ 
    color: darkblue !important;
    /* Yellowish background */
    background-color: rgb(255,255,144) !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

/* Active (selected) link.  As "hover" above. */
A:link:active, A:visited:active { 
    color: red !important;
    font-weight: bold !important;
    background-color: rgb(255,255,16) !important;
    text-decoration: underline !important;
}
------------------------------------------------------------------------

-- 
Karsten M. Self <[email protected]>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
    The more the merrier.
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCPOFFefG8443k044RAu8SAKCLtrWTdoSggZWtcwOSpQvCRF5BCACeM9Bm
gCM8DyVsAGFT6ViJYtNSJZI=
=un9J
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.