From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25973 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mb21 Newsgroups: gmane.text.pandoc Subject: Re: Adding minimal CSS to pandoc's default HTML template Date: Sun, 23 Aug 2020 10:24:50 -0700 (PDT) Message-ID: <870bb19a-a503-4041-a1b3-1f32df467020n@googlegroups.com> References: <41422a08-cc8d-4480-8bfc-03d907cb2794n@googlegroups.com> <87r1rxa887.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_872_322069311.1598203490809" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2271"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDCMBBVJ5EFBBZGMRL5AKGQEJJNWUCI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Aug 23 19:24:55 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f58.google.com ([209.85.161.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k9tjj-0000W2-Jv for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 23 Aug 2020 19:24:55 +0200 Original-Received: by mail-oo1-f58.google.com with SMTP id t20sf4224249oot.7 for ; Sun, 23 Aug 2020 10:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=E7hWlbrLCTwpGbsnZL2WDs2qTnoHtFgHXEAtv5irIT8=; b=LG0epIx/J35Atl4SCHLcUdV0t7+rIUjUuLEeuwBFECyXftSSO4KR0o0WpmVJ/T5ara kXwLca4ocNRcbIVH/Eo0xm8sqCba1xjJ+c3HeKubrd32pleq2ojQboo00tPGMFJBFec1 7M+SCkUnkAGK5VCbdDOtraPRF5i/7si/orf64GOXDlFu5pLrwUQOFKF3MKlBfoAad8O+ qHvSbuNz4F/osOpBZSNiIk1jQc16nRo+V5V08eT2vQqMNyHeOG+3o8diHb8rE4BwNkka 7xglIh+T0ZQUx7jvOyMUG8MaVhqD2aKVtfXICu3d+uVEAClL0XPH5sMpybQ3pyOl3WBF badw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=E7hWlbrLCTwpGbsnZL2WDs2qTnoHtFgHXEAtv5irIT8=; b=RzQF+KIdawpjlemplkymkWT1h+7Vi050jaLfMm6kdKcakyFGWq6InZ06IUCraFFIGS /VEt8qJW82lavQZDywxNYjBqT+cyW66jDypLhxipUMewoHW+BO7qtpTjcV7vUfajvPM2 I136gj+l5MsJbYEfiWlXTcTJ6/UGrH7M77DZqzkdIlZLsVLksSGGvtm06Ss/7ghkKqzy dbuR2gY+7US4kx1x33yJTgWpHkH8x1HdjIIGvu1vAErpYHbTgwPeWsOJJCv1/qKGBDv5 0Fn93MGGKYZtXoufT6yhBxw8KcAtZ7dTB1OMGxcjcu4KT5TuFBF1hjNzmCcVt8LYVh9I HMoA== 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:in-reply-to :references: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=E7hWlbrLCTwpGbsnZL2WDs2qTnoHtFgHXEAtv5irIT8=; b=NaDTMImt7whe4Gug3z6OPDXd19Bl9yDRWj1eKxUMBjba369nM051+IJxx/qPE6SfSK o8NLmVouicuGepAIL6NgSs6c9+tcQmND7PSIYBmLVyDrMNJcbdBuRIHQ8a70YXuXH6dV VG9TyOref164s15TC8ncE79PBF88NIkaCst3V0oq+Bs6hQIQbFKo27SAxj/daMWZTcru 0USXFOfK+4vBQz1+V47kapoCatls8/z2Dmb1Z8+JMEnB6u8bk77sCnGATZRhsW8RlryL bGTew75TT7U8LzX64MllCNscszIzsbpUL3uggsTLKvbG/n2qN+8qg0v1hVlEDb9jW7UA YitA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532lTIPsPBNLShIeUQ87kOHbKfVXa7OVMfS3b93+vIJ8KGVx+Eav PNOkzf7Nt4j8ZAkgnKJ1H+0= X-Google-Smtp-Source: ABdhPJwu7qvyZsHArcCJOdhTywP1stjgXkYmKxYaHwPv0ti1RMu6b9tcFDVkokie+nv2GaD2rtH3yA== X-Received: by 2002:a4a:ea06:: with SMTP id x6mr1413810ood.14.1598203494653; Sun, 23 Aug 2020 10:24:54 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:e9f6:: with SMTP id w22ls438812ooc.4.gmail; Sun, 23 Aug 2020 10:24:52 -0700 (PDT) X-Received: by 2002:a4a:2c83:: with SMTP id o125mr1395211ooo.84.1598203491920; Sun, 23 Aug 2020 10:24:51 -0700 (PDT) In-Reply-To: <87r1rxa887.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 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:25973 Archived-At: ------=_Part_872_322069311.1598203490809 Content-Type: multipart/alternative; boundary="----=_Part_873_1425002529.1598203490810" ------=_Part_873_1425002529.1598203490810 Content-Type: text/plain; charset="UTF-8" Thanks! Yeah, I suppose we'll have to strike a balance in accommodating requests for layout tweaks, just like we do for the LaTeX template. Although additional CSS, which would potentially override the default one, can easily be added, e.g. with: --- header-includes: | --- On Sunday, August 23, 2020 at 1:54:11 PM UTC+2 Albert Krewinkel wrote: > Looks great, IMHO! The produced layout is beautiful, and > supporting more variables is nice, too. > > The only concern I have is that this could open pandora's box when > is comes to requests for CSS tweaks. But this seems like a minor > problem. > > > mb21 writes: > > > 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 > > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > -- 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/870bb19a-a503-4041-a1b3-1f32df467020n%40googlegroups.com. ------=_Part_873_1425002529.1598203490810 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks!


Yeah, I suppose we'll have to strike a balance in accomm= odating requests for layout tweaks, just like we do for the LaTeX template.= Although additional CSS, which would potentially override the default one,= can easily be added, e.g. with:

---
= header-includes: |
  <style>
  td {
  &nbs= p; border: 1px solid grey;
  }
  </style>
---


On Sunday, August 23, 2020 at 1:54:11 PM UTC+2 Albert Krewi= nkel wrote:
L= ooks great, IMHO! The produced layout is beautiful, and
supporting more variables is nice, too.

The only concern I have is that this could open pandora's box when
is comes to requests for CSS tweaks. But this seems like a minor
problem.


mb21 writes:

> We're looking for feedback on a pull request I made: it adds s= ome 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 gener= ate 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` opti= on,
> unless you also use the `--css` option or convert to slideshows. I= nclusion
> can be disabled e.g. with `pandoc -M document-css=3Dfalse`. Or cus= tomized
> (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 yo= u 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


--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124

--
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/870bb19a-a503-4041-a1b3-1f32df467020n%40googlegroups.= com.
------=_Part_873_1425002529.1598203490810-- ------=_Part_872_322069311.1598203490809--