W3C home > Mailing lists > Public > spec-prod@w3.org > October to December 2012

Re: Custom Style

From: James Craig <jcraig@apple.com>
Date: Thu, 13 Dec 2012 10:20:19 -0800
Cc: spec-prod@w3.org
Message-id: <3C4F0DA6-E167-47D7-928E-23E592F772F4@apple.com>
To: Giuseppe Pascale <giuseppep@opera.com>
On Dec 12, 2012, at 11:58 PM, Giuseppe Pascale <giuseppep@opera.com> wrote:

> On Thu, 13 Dec 2012 01:12:56 +0100, James Craig <jcraig@apple.com> wrote:
>> On Dec 12, 2012, at 7:02 AM, Giuseppe Pascale <giuseppep@opera.com> wrote:
>>> What is the best way nowadays to define custom styles for ReSpec documents, now that extraCSS config parameter is deprecated? In particular, I'm working on a NON W3C document, and I want to tweak the "unofficial" stylesheet. Using <link> or <style> doesn't seem to work since the respec style takes precedence.
>> <link> works for me. You just have to make sure the cascade does not conflict, because the ReSpec CSS is appended after your linked CSS file.
> yes, but this is exactly what I need to do, replace some of the things in the default template. Forgot to mention that.
> Anyway adding a style block after the <body> did the trick

You can still use <link> You just need to do your overrides with a higher selector specificity than the ReSpec style sheet. You might also try removing the ReSpec CSS from the extraCSS array, and hard code the <link> for both style sheets.
Received on Thursday, 13 December 2012 18:20:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:55:17 UTC