From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: html export: pre.src support changed? Date: Wed, 16 Aug 2017 17:36:21 +0300 Message-ID: <87k223zije.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhzR0-0002Ao-LG for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 10:36:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhzQw-0008Ib-Mt for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 10:36:38 -0400 Received: from [195.159.176.226] (port=42547 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhzQw-0008HW-Es for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 10:36:34 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dhzQk-00084P-MR for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 16:36:22 +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 Greetings. The following explanation is a bit long, so here is a summary: 1. "pre.src" formatting no longer seems to work in html export 2. "pre code" works, but incorrectly from my point of view. I am looking for a fix. Here is the longer explanation 1. pre.src does not work ------------------------ I used to have a working CSS file for some programming teaching material exported from Org. Something has changed, because earlier formatting used pre.src in the following style: pre.src { margin: 0 auto; font-size: 0.9vw; width: 75em; color: white; background-color: #102e4e; border-radius: 10px; } In particular, background-color controlled the background of the entire source block "window" in the exported html. According to the manual, pre.src still controls formatting for source code blocks: http://orgmode.org/manual/CSS-support.html However, when I export the same files right now, pre.src no longer works. The change in the exported html files is obvious: old export (pre.src worked)
 ...

new export (pre.src no longer works)
 ...

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". The effect can be seen here:

old export (code blocks colored correctly):
https://www.syk.fi/ohjelmointi/muuttuja.html

new export (code blocks colored incorrectly);
https://www.syk.fi/ohjelmointi-paivitys/muuttuja.html

How do I fix this? Thanks!

Jarmo