Re: Custom Style

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