From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: CSS and cascading Date: Sun, 29 Jun 2008 21:16:49 +0200 Message-ID: <87A57AE0-ADA8-439C-B25E-EA041FA79C6D@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KD2ON-0005eg-VA for emacs-orgmode@gnu.org; Sun, 29 Jun 2008 15:16:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KD2ON-0005eM-Hw for emacs-orgmode@gnu.org; Sun, 29 Jun 2008 15:16:55 -0400 Received: from [199.232.76.173] (port=41510 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KD2ON-0005eJ-D1 for emacs-orgmode@gnu.org; Sun, 29 Jun 2008 15:16:55 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:16432) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KD2ON-0000V6-6g for emacs-orgmode@gnu.org; Sun, 29 Jun 2008 15:16:55 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rustom Mody Cc: emacs-orgmode@gnu.org On Jun 26, 2008, at 9:45 AM, Rustom Mody wrote: > I am no CSS expert but as I understand the 'cascade' -- C in the CSS > -- is used so that one can compose a style piecemeal from simpler > styles. If I use the suggestions of incorporating CSS given in the > org manual in the CSS support of HTML export (section 12.5.5) the > new CSS replaces the old. I think this is a reasonable expectation. While it is good that the user can replace the entire style info or point to a css file, I agree that there should also be a possibility to add to the default style specifications. I have just implemented a new variable `org-export-html-style-extra' that can be used for this purpose. The text in the new variable will be spliced into the style, just before the tag. Note that if you use the org-export-html-style variable to refer to a .css style *file*, org-export-html-style-extra will be ignored. - Carsten