aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-02-08 16:16:19 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-02-09 16:14:29 +0000
commit1481fc31f6500d899e2b8ea4f5ec5c80cfe36fbf (patch)
treed433da057d060aef65b3c4b8c7bac8cf21e31a79 /sources/pyside6
parent720a4040bef4e614e4f03f4ae8b3c0f058d86be9 (diff)
doc: add tool to generate examples gallery
This script generates a gallery for all the example currently in pyside-setup/examples. Using this tool will overwrite the index rst file for the examples located in 'sources/pyside6/doc/examples/index.rst Additionally, to display the code of each example, this will generate one extra .rst file for each example that contains a .pyproject file, for example: 'sources/pysides6/doc/examples/example_widgets__tetrix.rst' Currently, the usage of this tool is not incorporated in the documentation building process. Task-number: PYSIDE-1490 Change-Id: I78546d4c7905fd8b521f4112457980b4d1d56860 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit e8eac85a5db8386689ffe174694f82c1e5dad854) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources/pyside6')
-rw-r--r--sources/pyside6/doc/_themes/pysidedocs/static/pyside.css8
1 files changed, 6 insertions, 2 deletions
diff --git a/sources/pyside6/doc/_themes/pysidedocs/static/pyside.css b/sources/pyside6/doc/_themes/pysidedocs/static/pyside.css
index a9e7a0b05..625a2d39b 100644
--- a/sources/pyside6/doc/_themes/pysidedocs/static/pyside.css
+++ b/sources/pyside6/doc/_themes/pysidedocs/static/pyside.css
@@ -2044,6 +2044,8 @@ table.special {
border-collapse: separate;
border-spacing: 20px;
line-height: 1.5em;
+ table-layout: fixed;
+ width: 80%;
}
.special p {
@@ -2079,12 +2081,14 @@ table.special td {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
+ overflow: hidden;
}
.special td:hover {
- padding-top: 2px;
- padding-bottom: 2px;
+ padding-top: 14px;
+ padding-bottom: 10px;
border-bottom: 4px solid #41cd52;
+ overflow: hidden;
}
.command {