Re: [elinks-users] Italic color

2005-09-14 Thread Miciah Dashiel Butler Masters
On Thu, Sep 15, 2005 at 02:38:57AM +0300, Alex'a X Spirit wrote:
> Wed Sep 14 2005 19:11:19 +0200, Jonas Fonseca wrote:
> [...]
> > > how can I
> > > change the default color value for text marked in html by  tag?
> > 
> > You should set the CSS option for the default stylesheet to point at
> > your user.css. You should have this in ~/.elinks/elinks.conf
> > 
> > set document.css.stylesheet = "user.css"
> 
> OK
> 
> > Then put something like:
> > 
> > i { text: red; }
> 
> Did you mean `i { color: red; }'?
>  
> > in the ~/.elinks/user.css file. Then restart ELinks.
> 
> With `document.colors.use_document_colors = 0' such style for  tag
> is ignored :((
> 
> With `document.colors.use_document_colors = 1' (or = 2) the color
> changes, but in very interesting ways.
> 
> 1. If we have in user.css:
>i { color: blue; }
> The real visible color == magenta.
> 
> 2. If we have 
>i { color: magenta; }
> The real visible color == lightblue.
> 
> 3. If we have 
>i { color: white; }
> The real visible color == lightcyan.
> 
> 4. If we have 
>i { color: brown; }
> The real visible color == green. And so on.
[...]

Try adding font-style: none to the rule. It is probably
using the given colour and then changing it again for the italic style.

-- 
Miciah Masters <[EMAIL PROTECTED]> / <[EMAIL PROTECTED]>
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] Italic color

2005-09-14 Thread Alex'a X Spirit
Wed Sep 14 2005 19:11:19 +0200, Jonas Fonseca wrote:
[...]
> > how can I
> > change the default color value for text marked in html by  tag?
> 
> You should set the CSS option for the default stylesheet to point at
> your user.css. You should have this in ~/.elinks/elinks.conf
> 
>   set document.css.stylesheet = "user.css"

OK

> Then put something like:
> 
>   i { text: red; }

Did you mean `i { color: red; }'?
 
> in the ~/.elinks/user.css file. Then restart ELinks.

With `document.colors.use_document_colors = 0' such style for  tag
is ignored :((

With `document.colors.use_document_colors = 1' (or = 2) the color
changes, but in very interesting ways.

1. If we have in user.css:
   i { color: blue; }
The real visible color == magenta.

2. If we have 
   i { color: magenta; }
The real visible color == lightblue.

3. If we have 
   i { color: white; }
The real visible color == lightcyan.

4. If we have 
   i { color: brown; }
The real visible color == green. And so on.

All this miracles are in 16-colors mode on cons25r terminal.

My html-test file:



normal text
bold text
italic text



-- 
Alex'a X Spirit
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] Italic color

2005-09-14 Thread Jonas Fonseca
Alex'a X Spirit <[EMAIL PROTECTED]> wrote Sat, Sep 10, 2005:
> Hi, All!

Hello,

> As I understand if we have `document.colors.use_document_colors = 0'
> than any values from user.css are ignored. If this is true,

No, the option you mention and the user.css file is two totally
different things, however the option might affect how stuff in user.css
is used. If you set it to '0' like in your example then only the default
HTML style plus stuff in user.css will be used. Increasing the chances
that document specific colors won't 'get in the way'.

> how can I
> change the default color value for text marked in html by  tag?

You should set the CSS option for the default stylesheet to point at
your user.css. You should have this in ~/.elinks/elinks.conf

set document.css.stylesheet = "user.css"

Then put something like:

i { text: red; }

in the ~/.elinks/user.css file. Then restart ELinks.

> For now it seems to be equal to "cyan" in 16-colors mode.

I don't know the exact codes, try to look at test/color.html. It would
actually be great to figure this out and have some note in contrib/ on
how to achieve the 16 different colors.

-- 
Jonas Fonseca
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users