diff mbox

doc-rst: customize RTD theme, drop padding of inline literal

Message ID 1470388783-5200-1-git-send-email-markus.heiser@darmarit.de (mailing list archive)
State New, archived
Headers show

Commit Message

Markus Heiser Aug. 5, 2016, 9:19 a.m. UTC
From: Markus Heiser <markus.heiser@darmarIT.de>

Remove the distracting (left/right) padding of inline literals. (HTML
<code>). Requested and discussed in [1].

[1] http://www.spinics.net/lists/linux-media/msg103991.html

Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de>
---
 Documentation/sphinx-static/theme_overrides.css | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Hans Verkuil Aug. 5, 2016, 9:27 a.m. UTC | #1
On 08/05/2016 11:19 AM, Markus Heiser wrote:
> From: Markus Heiser <markus.heiser@darmarIT.de>
> 
> Remove the distracting (left/right) padding of inline literals. (HTML
> <code>). Requested and discussed in [1].
> 
> [1] http://www.spinics.net/lists/linux-media/msg103991.html
> 
> Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de>

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>

Thank you! Thank you! Thank you!

So much better!

Regards,

	Hans

> ---
>  Documentation/sphinx-static/theme_overrides.css | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/sphinx-static/theme_overrides.css b/Documentation/sphinx-static/theme_overrides.css
> index 3a2ac4b..e88461c 100644
> --- a/Documentation/sphinx-static/theme_overrides.css
> +++ b/Documentation/sphinx-static/theme_overrides.css
> @@ -42,11 +42,12 @@
>      caption a.headerlink { opacity: 0; }
>      caption a.headerlink:hover { opacity: 1; }
>  
> -    /* inline literal: drop the borderbox and red color */
> +    /* inline literal: drop the borderbox, padding and red color */
>  
>      code, .rst-content tt, .rst-content code {
>          color: inherit;
>          border: none;
> +        padding: unset;
>          background: inherit;
>          font-size: 85%;
>      }
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jonathan Corbet Aug. 14, 2016, 6:24 p.m. UTC | #2
On Fri, 5 Aug 2016 11:27:07 +0200
Hans Verkuil <hverkuil@xs4all.nl> wrote:

> On 08/05/2016 11:19 AM, Markus Heiser wrote:
> > From: Markus Heiser <markus.heiser@darmarIT.de>
> > 
> > Remove the distracting (left/right) padding of inline literals. (HTML
> > <code>). Requested and discussed in [1].
> > 
> > [1] http://www.spinics.net/lists/linux-media/msg103991.html
> > 
> > Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de>  
> 
> Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
> 
> Thank you! Thank you! Thank you!
> 
> So much better!

Agreed, this one was really needed.  Applied to the 4.8-fixes branch,
thanks.

jon
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/Documentation/sphinx-static/theme_overrides.css b/Documentation/sphinx-static/theme_overrides.css
index 3a2ac4b..e88461c 100644
--- a/Documentation/sphinx-static/theme_overrides.css
+++ b/Documentation/sphinx-static/theme_overrides.css
@@ -42,11 +42,12 @@ 
     caption a.headerlink { opacity: 0; }
     caption a.headerlink:hover { opacity: 1; }
 
-    /* inline literal: drop the borderbox and red color */
+    /* inline literal: drop the borderbox, padding and red color */
 
     code, .rst-content tt, .rst-content code {
         color: inherit;
         border: none;
+        padding: unset;
         background: inherit;
         font-size: 85%;
     }