From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-5.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id 252267D90D for ; Tue, 1 Oct 2019 18:25:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732291AbfJASZl (ORCPT ); Tue, 1 Oct 2019 14:25:41 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45425 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732282AbfJASZk (ORCPT ); Tue, 1 Oct 2019 14:25:40 -0400 Received: by mail-pf1-f194.google.com with SMTP id y72so8630624pfb.12 for ; Tue, 01 Oct 2019 11:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z78DOvz8kzmGfG9Z2xiQ3oJZKxQKLVG8/acy4oN8Dcw=; b=eGWf2T8sSynGC2rohuPpxezKnt/2MdAbe2kmU38KOEEr1AOEToOk+D0v0KZgZpCnQH OaMpO5xtn/aw6XxNXr5X64tnTR2Qmbg+2qEbDNDp6cG8k3Qkw9S8ogPg/E/woKdUQKZR WDi2F+Z93nlXJm1SKJW+RCLLKdqR8+/DCZAVI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=z78DOvz8kzmGfG9Z2xiQ3oJZKxQKLVG8/acy4oN8Dcw=; b=VqCaYpaCTB1oiZGNs++FwPggz+8VjH63n3KN79xbzgg96T1ysKPpK7J+3O4Da8Q1qF qrtdmoWgyGPLA0mAV/9hTJCw5j+5Y478MasrvU5OhTZjgRzT8D2PbhheB2348+mhfD5J gBeqHMWpABb+f/umaCFF1ytiGgOd/Ef+szbFGtFs+2FgG8kZtoKajiWYKLCIZtJyEnMn AGtsLQS1DquM6P29fRn0MSL5VYYil5cpWMGX4x6xdyDHIub2IRhkPUsn88ux92QH71rU mUQ0pkpn3+caKLu2sLHPUF4xISYoJVTadV2MXZb80QkscjCw6albQb0OwN8gchyNiliE AupA== X-Gm-Message-State: APjAAAV0lvjwg0ggf2z1A6T9rkuNmENS0fSqvapmwl5JP5yze4EcTWQm IA8mWRWD7gJSt7Pv5LkowK+RkQ== X-Google-Smtp-Source: APXvYqxmcbMyJTaRzE/DNM8yFk2B+0LtMbDGHuNUFGXfcfl6cq9uMy+/Tm1S4m5uWiep+jpOqZsiQg== X-Received: by 2002:a63:d901:: with SMTP id r1mr31912514pgg.159.1569954338929; Tue, 01 Oct 2019 11:25:38 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id b11sm17860627pgr.20.2019.10.01.11.25.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2019 11:25:36 -0700 (PDT) From: Kees Cook To: Jonathan Corbet Cc: Kees Cook , Mauro Carvalho Chehab , Jani Nikula , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] doc-rst: Reduce CSS padding around Field Date: Tue, 1 Oct 2019 11:25:31 -0700 Message-Id: <20191001182532.21538-2-keescook@chromium.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191001182532.21538-1-keescook@chromium.org> References: <20191001182532.21538-1-keescook@chromium.org> Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org Right now any ":Field Name: Field Contents" lines end up with significant padding due to CSS from the "table" CSS which rightly needs padding to make tables readable. However, field lists don't need this as they tend to be stacked together. The future heavy use of fields in the parsed MAINTAINERS file needs this cleaned up, and existing users look better too. Note the needless white space (and misalignment of name/contents) between "Date" and "Author": https://www.kernel.org/doc/html/latest/accounting/psi.html This patch fixes this by lowering the padding with a more specific CSS. Signed-off-by: Kees Cook --- Documentation/sphinx-static/theme_overrides.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/sphinx-static/theme_overrides.css b/Documentation/sphinx-static/theme_overrides.css index e21e36cd6761..459ec5b29d68 100644 --- a/Documentation/sphinx-static/theme_overrides.css +++ b/Documentation/sphinx-static/theme_overrides.css @@ -53,6 +53,16 @@ div[class^="highlight"] pre { line-height: normal; } +/* Keep fields from being strangely far apart due to inheirited table CSS. */ +.rst-content table.field-list th.field-name { + padding-top: 1px; + padding-bottom: 1px; +} +.rst-content table.field-list td.field-body { + padding-top: 1px; + padding-bottom: 1px; +} + @media screen { /* content column -- 2.17.1