From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25969 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Adding minimal CSS to pandoc's default HTML template Date: Sun, 23 Aug 2020 13:54:00 +0200 Message-ID: <87r1rxa887.fsf@zeitkraut.de> References: <41422a08-cc8d-4480-8bfc-03d907cb2794n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32656"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBXVRRH5AKGQEDOVIVEY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Aug 23 13:54:10 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ej1-f58.google.com ([209.85.218.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k9oZe-0008Lc-4X for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 23 Aug 2020 13:54:10 +0200 Original-Received: by mail-ej1-f58.google.com with SMTP id kt27sf2725217ejb.22 for ; Sun, 23 Aug 2020 04:54:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1598183650; cv=pass; d=google.com; s=arc-20160816; b=glOhwL5kKoEr9PV7CsfLsFYTZNp29Xg/4p7hd2XhzcxFKzyIU5WO8Hwj3KTlEpCqFt Mdpzc44cpNauxGoXr5SC59Eq/agk38S3+7YWKuLBv0+8xVnclJjLQESP/3hw0yhq8co+ JJ/v/JN4PhW0nn9DU2Ty2FgV04NX4TQL+V6TSuualvom1i9DMMGJGdaPxAPRMpatBZHM sFeuj79GcEu9aLJJQyBJC2DMNVWEqYaG0lk0lukmhQRtdVwk5pDoq1ckhFhTUC80Yd8Y 5QDAyOxgZPbjERGYhU0y6TGrsVLaojH69OEpQXAiKJO7u7+kl9GUWMN1RzpJuznS356B yRIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:in-reply-to:subject:to:from:references:sender:dkim-signature; bh=FG1ak2r+cccyf5QJdIdgRw9+wwlQT25LoTx88cahAm8=; b=UWingkbIkREnkQqjneDsalnadLIp8WtXssbzSCAHdst/3OQKShBpqO8ZcEQtGj1RJ2 bFeMaztNXqSpS0Q5m/3RpuO1pTH948uH8NKWAC/FHbdksK0zMykBcP9R0lQ67BgKHOJG PDbTrKA9MTd5YngNmuR2Xf9uWCOwtrKS5GT+Zhlt0uEZySpGu/7BqgmA1XxxFgBzlA6y IOY1s1lxt5h8QMdxK+fkv0tkQBMr8kLcB/EkSqzHoENQJB2mX+W/70gioiwP6lPrEutl gqoX7L05PXz5sXCyjvbMxgRukCfWa4MZ7dKI4eh0jmr36r4oeQxL26mzE0HbTJbjTniB Nj9Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050::465:101 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:references:from:to:subject:in-reply-to:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=FG1ak2r+cccyf5QJdIdgRw9+wwlQT25LoTx88cahAm8=; b=mnKuKlokCDnb33HpHlW5xTfWHz6INO/LVYe3K/u8SmQLffy4p+pEdecVpnAGawXAiz DKrazcHj4LM0G/hR2pjM5m7Ep3Y1PXHlmgCX7E+vtIbFwD0j1kuaG80bwifXj90rETys 9sJ54CA8g5H97/4QXQ+K3iacTKsBggmJX7HRg4iVBKKbUxoCRDodfKjSv1P/dhJN0vrm GYnR9AUX8zBpdrwuvdKZDdaWR29/tjhyb9r//HTldPZZvkeqIiiptpplUYd7hZvztFvW TQ/Dux/i9zxukaTOJmvLXrZRDvVymahJN31c1k/OZ2jGejaEf/7f+K5LXhe34POu4AYq ZRDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:references:from:to:subject:in-reply-to :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=FG1ak2r+cccyf5QJdIdgRw9+wwlQT25LoTx88cahAm8=; b=Svrusm3MsDm4dtJycn7UnKXYgAHpFMQ0y1QWj+dylMV4GyCrCd65ORY+yjxXdmfdZB Mx+42HHglDZcQuG3Zaa9VJzptQRPa9MJa/nJ2ustttDpdAIWvpA7MlEQOybo/GymIu/D VMxE6AHk8tdK+rdrW0cUTBFVuIkIlSoaAO5WRrmJABtfQ/5Ogq4roFA/5rwe/qfFFF9D ZvnYLQPbLOEZZ0Bh+MvzWG3aUFE5ZtS1XgPq4OsDalgflLjaVG0QK7g6tXA6TQWeSBCh fepLRWFeYHzrD9C45Ar5LEL/vimeCNNBy/96AE0dYimlNhVcSdZNBIrMnUwgZf63mG+3 ngLg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530+RWrsfGFJpYU9DElA8KyEF2nq84aBt6oDTdsBSGVElUeK0IGN S/mCBIW5rV9oPQt5USvmlJk= X-Google-Smtp-Source: ABdhPJzBauRBJn3OoCuevgpDetFJ3P3K4kd6iVRxSE2N2EucK5LSwYcnDYBF9nVHjzSoQTLpZwt9Og== X-Received: by 2002:a17:906:ca8c:: with SMTP id js12mr1195879ejb.195.1598183649879; Sun, 23 Aug 2020 04:54:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a50:bc05:: with SMTP id j5ls6449490edh.0.gmail; Sun, 23 Aug 2020 04:54:06 -0700 (PDT) X-Received: by 2002:a50:fb94:: with SMTP id e20mr1080492edq.103.1598183646339; Sun, 23 Aug 2020 04:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598183646; cv=none; d=google.com; s=arc-20160816; b=RM6a+d8fJfh0JBkylHHpX0OyeHWoz/J2PimRR00zyl+DCrSQ5hE0LYgufl8cFcGVNM kTtbpc+pm6iGUmgz5xZ4ytimRwUtakYmqGHjVrLm+NRhcRLO8WnYtX73iUyeF4WSH+7U cWmXTbZiB4jtoqmHIYLKPhxmvK6ZRuh+zA8P5D8XVpxOBuPAsHJdEZ3vXF0FuCqa9PgH 07oJhMLtaorxbAx2eGtw0BVQeOQpCY04rqk+yFgLrLK238sP+FWxb9GXOhE3E/978h2P Qim/NvyFuJ8wuwU59EZjhOGurScjIJYI4ZHDXnegJjlKztF9VdD7jUFsizHGBW7FK7oe 9Ifw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:in-reply-to:subject:to:from:references; bh=gFE0O3fCZr4p/KG2w+IUaM6GRzRheTWomemdKi7VCPs=; b=xzx9udNm9wXx1lZtA+fs97slWq2qCFjyjAsBaD978J2iQ7n+wxFLnj00fZgLUkZLnW Rgmhq5/6EC1BWa2QLX5CSXltL7yuuGNzpIPnSZOCPE8OyGMFI4eNzXhr14uqc92sj9ym bnCUjjptsCgET1MvVS2KkBGJtS88v1Pf+RSH3IN1sPlZDX5tPZiKWaFbWRvLpfyNDM1x WLtR5U/lHwUGpEgldicWhsE6lErEbAHs2XfXLoPy8Fur5InUqxIHyVE2m0SxJK5jxOpI BC8lhxbBfsrqizs/ZP+0zco4lJFBZw52VFYiGQYMgw8pHJJl1KA/+HLKBtVSgxGfGLuF xeZQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050::465:101 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org. [2001:67c:2050::465:101]) by gmr-mx.google.com with ESMTPS id i11si36920edf.5.2020.08.23.04.54.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2020 04:54:06 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050::465:101 as permitted sender) client-ip=2001:67c:2050::465:101; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4BZDDs71HZzKmlm for ; Sun, 23 Aug 2020 13:54:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id AIQhbd_hdhzW for ; Sun, 23 Aug 2020 13:54:02 +0200 (CEST) In-reply-to: <41422a08-cc8d-4480-8bfc-03d907cb2794n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Rspamd-Score: -6.87 / 15.00 / 15.00 X-Rspamd-Queue-Id: A3B1F594 X-Rspamd-UID: e3716c X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050::465:101 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@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:25969 Archived-At: 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