W3C home > Mailing lists > Public > www-style@w3.org > May 2003

Re: Font definition

From: Andy Rossmeissl <arossmeissl@uwsa.edu>
Date: Thu, 29 May 2003 13:45:11 -0500
To: www-style@w3.org
Message-ID: <47efb44eed.44eed47efb@uwsa.edu>

BG>> What about every other value? Wouldn't it be great to be able to
BG>> declare "variables" at the top of a stylesheet and reference them
BG>> where needed. Color schemes are the example that spring to mind.
Matt> @constants {
Matt> %mycolour%: #ffc;
Matt> %myothercolor%: #cce;
Matt> %mylength: 2em;
Matt> }

Of course when they're declared the %'s should probably be omitted:

@constants {
mybordercolor: #ffc;
myborderstyle: solid;
myborderwidth: 1px;
myborder: %mybordercolor% %myborderstyle% %myborderwidth%

Received on Thursday, 29 May 2003 14:45:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:07 UTC