From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: html export: pre.src support changed? Date: Wed, 16 Aug 2017 17:45:24 +0300 Message-ID: <87fucrzi4b.fsf@iki.fi> References: <87k223zije.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhzZs-0007Xd-Qu for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 10:45:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhzZp-0000oj-MZ for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 10:45:48 -0400 Received: from [195.159.176.226] (port=33549 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhzZp-0000mL-7h for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 10:45:45 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dhzZY-0001lJ-UX for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 16:45:28 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org > 2. "pre code" works incorrectly (from my point of view) > ------------------------------------------------------- > > I can get my CSS file to do _something_ with the following change: > > pre code > { > margin: 0 auto; > font-size: 0.9vw; > width: 75em; > color: white; > background-color: #102e4e; > border-radius: 10px; > } > > However, the problem is that this changes only the background of the > code text, not the entire "window". Did some further studies. It turns out that in this particular case I can get the blocks to color correctly by coloring just pre: pre { margin: 0 auto; font-size: 0.9vw; width: 75em; color: white; background-color: #102e4e; border-radius: 10px; } But I can't be expected to color all preformatted text similarly. Right? There has to be a way to format the code windows only. (Unfortunately there is no parent selector in CSS. Otherwise I could select the pre that have a code descendant.) Jarmo