mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Rely on the style sheet more for the distutils markup.
This commit is contained in:
parent
20a175a34a
commit
972c9e85bb
2 changed files with 18 additions and 5 deletions
|
@ -150,6 +150,19 @@ div.note .label { margin-right: 0.5em;
|
||||||
.availability .platform { font-weight: bold; }
|
.availability .platform { font-weight: bold; }
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Additional styles for the distutils package.
|
||||||
|
*/
|
||||||
|
.du-command { font-family: monospace; }
|
||||||
|
.du-option { font-family: avantgarde, sans-serif; }
|
||||||
|
.du-filevar { font-family: avantgarde, sans-serif;
|
||||||
|
font-style: italic; }
|
||||||
|
.du-xxx:before { content: "** ";
|
||||||
|
font-weight: bold; }
|
||||||
|
.du-xxx:after { content: " **";
|
||||||
|
font-weight: bold; }
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Some specialization for printed output.
|
* Some specialization for printed output.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -3,19 +3,19 @@
|
||||||
package main;
|
package main;
|
||||||
|
|
||||||
sub do_cmd_command {
|
sub do_cmd_command {
|
||||||
return use_wrappers(@_[0], '<code>', '</code>');
|
return use_wrappers(@_[0], '<code class="du-command">', '</code>');
|
||||||
}
|
}
|
||||||
|
|
||||||
sub do_cmd_option {
|
sub do_cmd_option {
|
||||||
return use_wrappers(@_[0], '<font face="sans-serif">', '</font>');
|
return use_wrappers(@_[0], '<span class="du-option">', '</span>');
|
||||||
}
|
}
|
||||||
|
|
||||||
sub do_cmd_filevar {
|
sub do_cmd_filevar {
|
||||||
return use_wrappers(@_[0], '<font face="sans-serif"><i>', '</i></font>');
|
return use_wrappers(@_[0], '<span class="du-filevar">', '</span>');
|
||||||
}
|
}
|
||||||
|
|
||||||
sub do_cmd_XXX {
|
sub do_cmd_XXX {
|
||||||
return use_wrappers(@_[0], '<b>** ', ' **</b>');
|
return use_wrappers(@_[0], '<b class="du-xxx">', '</b>');
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1; # Bad Perl.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue