W3C home > Mailing lists > Public > www-style@w3.org > October 2010

css block re-use proposal

From: Eric Twilegar <Eric.Twilegar@onpeak.com>
Date: Mon, 25 Oct 2010 22:20:20 +0000
To: "'www-style@w3.org'" <www-style@w3.org>
Message-ID: <44F314377B3E454683D3767DAE9789D5016E8140C6@CHIVMUSHMOUTH.onpeak.us>
Many times in CSS I find myself copying and pasting the exact block of CSS statements from block to block.

It would be nice if in CSS you could reference one block of CSS inside of another block.

I would suggest that we could create a block with a name perhaps using the $ character to start it. Then refer to it in another block like an include so that the CSS lines are copied in.




For now I'm implementing something similar by generating the CSS server side, but it would be nice to not have to go to a pre-processor.

Received on Thursday, 28 October 2010 14:06:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:40 UTC