Skip to content

Commit

Permalink
doc-rst: add CSS styles for :kbd: and :menuselection:
Browse files Browse the repository at this point in the history
As we're about to use those two markups, add them to the
theme style overrride.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
mchehab authored and Jonathan Corbet committed Sep 21, 2016
1 parent ebf137f commit 1414f04
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Documentation/sphinx-static/theme_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@
caption a.headerlink { opacity: 0; }
caption a.headerlink:hover { opacity: 1; }

/* Menu selection and keystrokes */

span.menuselection {
color: blue;
font-family: "Courier New", Courier, monospace
}

code.kbd, code.kbd span {
color: white;
background-color: darkblue;
font-weight: bold;
font-family: "Courier New", Courier, monospace
}

/* inline literal: drop the borderbox and red color */

code, .rst-content tt, .rst-content code {
Expand All @@ -54,5 +68,4 @@
.rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal {
color: inherit;
}

}

0 comments on commit 1414f04

Please sign in to comment.