all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jarmo Hurri <jarmo.hurri@iki.fi>
To: emacs-orgmode@gnu.org
Subject: Re: html export: pre.src support changed?
Date: Wed, 16 Aug 2017 17:45:24 +0300	[thread overview]
Message-ID: <87fucrzi4b.fsf@iki.fi> (raw)
In-Reply-To: 87k223zije.fsf@iki.fi


> 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

  reply	other threads:[~2017-08-16 14:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-16 14:36 html export: pre.src support changed? Jarmo Hurri
2017-08-16 14:45 ` Jarmo Hurri [this message]
2017-08-17 13:13 ` Jarmo Hurri
2017-08-17 14:14   ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fucrzi4b.fsf@iki.fi \
    --to=jarmo.hurri@iki.fi \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.