From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25963 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mb21 Newsgroups: gmane.text.pandoc Subject: Adding minimal CSS to pandoc's default HTML template Date: Sat, 22 Aug 2020 04:23:34 -0700 (PDT) Message-ID: <41422a08-cc8d-4480-8bfc-03d907cb2794n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_424_315125265.1598095414192" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5844"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDCMBBVJ5EFBBN4AQT5AKGQEWUI3WVA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Aug 22 13:23:39 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f64.google.com ([209.85.161.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k9RcY-0001RT-D0 for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 22 Aug 2020 13:23:38 +0200 Original-Received: by mail-oo1-f64.google.com with SMTP id v21sf2419704ooq.12 for ; Sat, 22 Aug 2020 04:23:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=pLWmnQWj28M5RXWaaxPiB+ldeI2dJ7drzpTHzCvCyFg=; b=BYn7qOgrmIhV0nVF9eEIbjy15yCPD7XgRvY4hSd1V2QwAIVDqeGiMgQXN+gJcXeJrU RfnIVz4XqSSUbyX3XbhbKyXkiVbvjzDlXv3+BMrijRPHSNSvkr0fEtCJMq3xErPd0LQ5 9wNBJa+UR0lE5GCKZkf5ODOk3150PEyOKnAZ65m7ITLUnBUErmTmQU82T+DckuDhWKD9 oLnZSaE80Jg2Emd5NkcgLKlFFRciJZE9B9eAlL55HKELYkh1TLXYdedKqV3WhNh1/OeC xlxVk0iSrOXViRdlaffZ6qt0yqwGunkSeNar0Mr7EKYLHgBOhe2M1SUHKj57ciZk1M74 NUUQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=pLWmnQWj28M5RXWaaxPiB+ldeI2dJ7drzpTHzCvCyFg=; b=n1kxQeg5pCeNmjX/jHPn8p8fGub6+pjtJuQPXXXV8xUZEZdsj4w/QKHcTE8/5vLnTz U8gUpJHE/fWHhR5Gq9lobVEBNSNm2ZoRaA/3AdG0CykzCo6aq6P1m1qOotZ5FmHJoRuC 3q5gY4cX9f+r/b6zPKUSKZ0Lw/H0jYXfGChyySXjIZ3a/u51WsfQ1tO3PlaQZVlFHP5j XLFtr0QOhtMyOKNNyrxCM3AQGf058SWb7/dQoLUxUGSJzX8NJs3VCbIi2C5cohES48K3 UKsUiXGQJsItzur6mRkowA0x2u2eVSDmPOgknOuRJDNCmydkdscZCCo0oG9x4sL//HTS 3GyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=pLWmnQWj28M5RXWaaxPiB+ldeI2dJ7drzpTHzCvCyFg=; b=q4Gcx0NuXSdNWoIMHlgz6h7aq/qCIJRFKoaerXWGzJHz2whcf2o6jm7BVQOd9uTds3 9k+vEVW6rpfsuhHJJ0YhZOvI6rfyENHECq6hAmCxMNH1aPUPBAmT7Up0/ZcKX8BWHspW LncCd80T3m5TXZWn46iIjLVnpoZ5PS55kRH3lXwUL8z+GuZdEXp0oGRsYL+2mlK7JD9I I1k+K8GQBZ3z5aOpibtQYQhG2tZO65DqMkJHnlJYAOrnQ+bZ9w9V50vD0aAYjpRM4c2N 3a3fl/ltu2tfkVLpfoNwSKLOUJHNCgFPfDl0vvo/HZfI1tKACpVnB4tgUUN39rKdxpFH MyaQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530xecwMqDF+SeN67NtvQtF1RQRnWTQBDPc7jOAUN/LzWBodAjiJ RkUKIwEu3ZPoPb6H9eKpJQI= X-Google-Smtp-Source: ABdhPJzFyvtJS8XFtZJV4sANS7c3yMwriZYI2kefJlcVBoU7VfGeogVrkYWsVnYaEAdmDVEpmg5SUg== X-Received: by 2002:a05:6830:82b:: with SMTP id t11mr5109077ots.104.1598095417364; Sat, 22 Aug 2020 04:23:37 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:744a:: with SMTP id p10ls1071623otk.5.gmail; Sat, 22 Aug 2020 04:23:35 -0700 (PDT) X-Received: by 2002:a05:6830:cc:: with SMTP id x12mr5327290oto.54.1598095414962; Sat, 22 Aug 2020 04:23:34 -0700 (PDT) X-Original-Sender: mauro.bieg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:25963 Archived-At: ------=_Part_424_315125265.1598095414192 Content-Type: multipart/alternative; boundary="----=_Part_425_1025163723.1598095414193" ------=_Part_425_1025163723.1598095414193 Content-Type: text/plain; charset="UTF-8" We're looking for feedback on a pull request I made: it adds some minimal CSS to pandoc's default HTML template. Two things that inspired this: - questions like this one on StackOverflow: https://stackoverflow.com/questions/63293929/pandoc-change-font-family-to-sans-while-converting-from-markdown-to-html - I've recently updated and streamlined the CSS I use to generate simple HTML files (or publish to my blog), and was surprised how minimal it can be, while still looking pretty good (IMHO). The idea is to rely on browser defaults as much as possible (which are fairly consistent nowadays), so you don't have to override/normalize a lot. The new CSS is added by default when using the `--standalone` option, unless you also use the `--css` option or convert to slideshows. Inclusion can be disabled e.g. with `pandoc -M document-css=false`. Or customized (like all templates and template partials) by adding your own file to ~/.pandoc/templates/styles.html. There are a few variables like `mainfont`, `fontsize` etc. that you can set, similar to what we already have in the LaTeX template. Have a look at the proposed changes to the MANUAL (and to styles.html): https://github.com/jgm/pandoc/pull/6601/files -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/41422a08-cc8d-4480-8bfc-03d907cb2794n%40googlegroups.com. ------=_Part_425_1025163723.1598095414193 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
We're looking for feedback on a pull request I made: it adds some mini= mal CSS to pandoc's default HTML template.

Two thi= ngs that inspired this:

- questions like this one = on StackOverflow: https://stackoverflow.com/questions/63293929/pandoc-chang= e-font-family-to-sans-while-converting-from-markdown-to-html
- I'= ve recently updated and streamlined the CSS I use to generate simple HTML f= iles (or publish to my blog), and was surprised how minimal it can be, whil= e still looking pretty good (IMHO). The idea is to rely on browser defaults= as much as possible (which are fairly consistent nowadays), so you don't h= ave to override/normalize a lot.

The new CSS is ad= ded by default when using the `--standalone` option, unless you also use th= e `--css` option or convert to slideshows. Inclusion can be disabled e.g. w= ith `pandoc -M document-css=3Dfalse`. Or customized (like all templates and= template partials) by adding your own file to ~/.pandoc/templates/styles.h= tml.

There are a few variables like `mainfont`, `f= ontsize` etc. that you can set, similar to what we already have in the LaTe= X template. Have a look at the proposed changes to the MANUAL (and to style= s.html):

https://github.com/jgm/pandoc/pull/6601/f= iles

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/41422a08-cc8d-4480-8bfc-03d907cb2794n%40googlegroups.= com.
------=_Part_425_1025163723.1598095414193-- ------=_Part_424_315125265.1598095414192--