mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
Make it easier to figure out the where a menuselection starts and ends
by controling the font.
This commit is contained in:
parent
a66b6c1267
commit
bd5fdd93a9
3 changed files with 4 additions and 2 deletions
|
@ -115,6 +115,7 @@ div.note .label { margin-right: 0.5em;
|
||||||
.newsgroup { font-family: avantgarde, sans-serif; }
|
.newsgroup { font-family: avantgarde, sans-serif; }
|
||||||
.url { font-family: avantgarde, sans-serif; }
|
.url { font-family: avantgarde, sans-serif; }
|
||||||
.file { font-family: avantgarde, sans-serif; }
|
.file { font-family: avantgarde, sans-serif; }
|
||||||
|
.menuselection { font-family: avantgarde, sans-serif; }
|
||||||
|
|
||||||
.tableheader { background-color: #99ccff;
|
.tableheader { background-color: #99ccff;
|
||||||
font-family: avantgarde, sans-serif; }
|
font-family: avantgarde, sans-serif; }
|
||||||
|
|
|
@ -95,7 +95,8 @@ sub do_cmd_textless{ '<' . $_[0]; }
|
||||||
sub do_cmd_textunderscore{ '_' . $_[0]; }
|
sub do_cmd_textunderscore{ '_' . $_[0]; }
|
||||||
sub do_cmd_infinity{ '∞' . $_[0]; }
|
sub do_cmd_infinity{ '∞' . $_[0]; }
|
||||||
sub do_cmd_plusminus{ '±' . $_[0]; }
|
sub do_cmd_plusminus{ '±' . $_[0]; }
|
||||||
sub do_cmd_menuselection{ $_[0]; }
|
sub do_cmd_menuselection{
|
||||||
|
return use_wrappers($_[0], '<span class="menuselection">', '</span>'); }
|
||||||
sub do_cmd_sub{ ' > ' . $_[0]; }
|
sub do_cmd_sub{ ' > ' . $_[0]; }
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -822,7 +822,7 @@
|
||||||
\newcommand{\infinity}{\ensuremath{\infty}}
|
\newcommand{\infinity}{\ensuremath{\infty}}
|
||||||
\newcommand{\plusminus}{\ensuremath{\pm}}
|
\newcommand{\plusminus}{\ensuremath{\pm}}
|
||||||
% \menuselection{Start \sub Programs \sub Python}
|
% \menuselection{Start \sub Programs \sub Python}
|
||||||
\newcommand{\menuselection}[1]{{\def\sub{ \ensuremath{>} }#1}}
|
\newcommand{\menuselection}[1]{\textsf{\def\sub{ \ensuremath{>} }#1}}
|
||||||
|
|
||||||
% Also for consistency: spell Python "Python", not "python"!
|
% Also for consistency: spell Python "Python", not "python"!
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue