From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to distinguish timestamps in CSS? Date: Sun, 14 Nov 2010 15:56:20 -0500 Message-ID: <19521.1289768180@gamaville.dokosmarshall.org> References: <80hbfku7ro.fsf@mundaneum.com> <4CE04939.2090802@christianmoe.com> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=52474 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHjd6-00041J-S3 for emacs-orgmode@gnu.org; Sun, 14 Nov 2010 15:56:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHjd2-0005dW-Pg for emacs-orgmode@gnu.org; Sun, 14 Nov 2010 15:56:52 -0500 Received: from vms173003pub.verizon.net ([206.46.173.3]:47691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHjd2-0005dP-KR for emacs-orgmode@gnu.org; Sun, 14 Nov 2010 15:56:48 -0500 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LBW003OQ7HXSP50@vms173003.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 14 Nov 2010 14:56:21 -0600 (CST) In-reply-to: Message from Christian Moe of "Sun\, 14 Nov 2010 21\:40\:25 +0100." <4CE04939.2090802@christianmoe.com> 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: mail@christianmoe.com Cc: =?us-ascii?Q?=3D=3FUTF-8=3FB=3FU8OpYmFzdGllbiBWYXViYW4=3D=3F=3D?= , nicholas.dokos@hp.com, emacs-orgmode@gnu.org Christian Moe wrote: > Hi, >=20 > Only partly. >=20 > On 11/14/10 12:24 AM, S=C3=A9bastien Vauban wrote: > > Hello, > > > > A quick (but not easy?) question about the Org publish to HTML and CSS:= I > > would like to make the 3 different timestamps stand out with different > > backgrounds. > > > > Is it possible with CSS? I have the impression that it currently is no= t, > > but... > > > > This is some sample output in HTML: > > > > #+begin_src html > >

2010-1= 1-13 Sat
> > SCHEDUL= ED: 2010-11-15 Mon
> > DEADLIN= E: 2010-11-20 Sat
> >

> > #+end_src > > > > Best regards, > > Seb > > >=20 > You can distinguish between timestamps with and without a keyword. The > following will set a red background on SCHEDULED and DEADLINE > timestamps (sorry for the noise if this was clear to you already). >=20 > #+STYLE: >=20 > But you cannot distinguish between different keywords -- no CSS > selector works on text content. You could use Javascript. >=20 Perhaps it'd be possible to (optionally) add an "id" selector to the timest= amp elements and use that for CSS manipulation, tied to an org-mode ID or some other unique id? Or perhaps just postprocess the HTML output to add su= ch ids. Nick