Skip to content

Commit 4b8fae7

Browse files
mchehabJonathan Corbet
authored andcommitted
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>
1 parent 6a4931a commit 4b8fae7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Documentation/sphinx-static/custom.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ dl.function dt { margin-left: 10em; text-indent: -10em; }
4343
dt.sig-object { font-size: larger; }
4444
div.kernelindent { margin-left: 2em; margin-right: 4em; }
4545

46+
/*
47+
* Parameters for the display of function prototypes and such included
48+
* from Python source files.
49+
*/
50+
dl.py { margin-top: 2em; background-color: #ecf0f3; }
51+
dl.py.class { margin-left: 2em; text-indent: -2em; padding-left: 2em; }
52+
dl.py.method, dl.py.attribute { margin-left: 2em; text-indent: -2em; }
53+
dl.py li, pre { text-indent: 0em; padding-left: 0 !important; }
54+
4655
/*
4756
* Tweaks for our local TOC
4857
*/

0 commit comments

Comments
 (0)