mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
docs: custom.css: add CSS for python
As we'll start adding python to documentation, add some CSS templates to better display python code. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <b5a3dfd551b887a2885b85b4c9433e757c77628a.1768838938.git.mchehab+huawei@kernel.org>
This commit is contained in:
parent
6a4931a7fe
commit
4b8fae7a16
1 changed files with 9 additions and 0 deletions
|
|
@ -43,6 +43,15 @@ dl.function dt { margin-left: 10em; text-indent: -10em; }
|
|||
dt.sig-object { font-size: larger; }
|
||||
div.kernelindent { margin-left: 2em; margin-right: 4em; }
|
||||
|
||||
/*
|
||||
* Parameters for the display of function prototypes and such included
|
||||
* from Python source files.
|
||||
*/
|
||||
dl.py { margin-top: 2em; background-color: #ecf0f3; }
|
||||
dl.py.class { margin-left: 2em; text-indent: -2em; padding-left: 2em; }
|
||||
dl.py.method, dl.py.attribute { margin-left: 2em; text-indent: -2em; }
|
||||
dl.py li, pre { text-indent: 0em; padding-left: 0 !important; }
|
||||
|
||||
/*
|
||||
* Tweaks for our local TOC
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue