From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932095AbcGCMZs (ORCPT ); Sun, 3 Jul 2016 08:25:48 -0400 Received: from smtp1.goneo.de ([85.220.129.30]:53594 "EHLO smtp1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752672AbcGCMZf (ORCPT ); Sun, 3 Jul 2016 08:25:35 -0400 X-Spam-Flag: NO X-Spam-Score: -2.8 From: Markus Heiser Cc: Markus Heiser , Hans Verkuil , Daniel Vetter , Airlie , Likely , Dunlap , Packard , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Heiser Subject: [RFC PATCH 3/3] doc-rst: customize RTD theme, captions & inline literal Date: Sun, 3 Jul 2016 14:24:55 +0200 Message-Id: <1467548695-16403-4-git-send-email-markus.heiser@darmarit.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1467548695-16403-1-git-send-email-markus.heiser@darmarit.de> References: <1467548695-16403-1-git-send-email-markus.heiser@darmarit.de> To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Heiser To: Jonathan Corbet To: Mauro Carvalho Chehab Cc: Hans Verkuil Cc: Daniel Vetter Cc: Airlie Cc: Likely Cc: Dunlap Cc: Packard Cc: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org The layout of (table) captions in the RTD theme is a bit ugly and the bordered, red colored of inline literals is a bit to gaudy. The requirements has been discussed in the ML [1]. captions: - captions should have 100% (not 85%) font size - hide the permalink symbol as long as link is not hovered inline literal: - drop the borderbox and red color [1] http://article.gmane.org/gmane.linux.drivers.video-input-infrastructure/101099 Signed-off-by: Markus Heiser --- Documentation/sphinx-static/theme_overrides.css | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/sphinx-static/theme_overrides.css b/Documentation/sphinx-static/theme_overrides.css index ea06799..c97d842 100644 --- a/Documentation/sphinx-static/theme_overrides.css +++ b/Documentation/sphinx-static/theme_overrides.css @@ -25,4 +25,29 @@ .wy-table-responsive { overflow: auto; } .rst-content table.docutils caption { text-align: left; font-size: 100%; } + /* captions: + * + * - captions should have 100% (not 85%) font size + * - hide the permalink symbol as long as link is not hovered + */ + + caption, .wy-table caption, .rst-content table.field-list caption { + font-size: 100%; + } + caption a.headerlink { opacity: 0; } + caption a.headerlink:hover { opacity: 1; } + + /* inline literal: drop the borderbox and red color */ + + code, .rst-content tt, .rst-content code { + color: inherit; + border: none; + background: inherit; + font-size: 85%; + } + + .rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal { + color: inherit; + } + } -- docs-next/sphinx-4.8