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

Re: Custom Style

From: Giuseppe Pascale <giuseppep@opera.com>
Date: Thu, 13 Dec 2012 08:58:48 +0100
To: "James Craig" <jcraig@apple.com>
Cc: spec-prod@w3.org
Message-ID: <op.wo8wga156ugkrk@giuseppep-x220>
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

> <link href="./css/screen.css" rel="stylesheet" type="text/css">

Giuseppe Pascale
Product Manager TV & Connected Devices
Opera Software
Received on Thursday, 13 December 2012 07:59:24 UTC

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