diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-02-08 16:16:19 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-02-09 16:14:29 +0000 |
commit | 1481fc31f6500d899e2b8ea4f5ec5c80cfe36fbf (patch) | |
tree | d433da057d060aef65b3c4b8c7bac8cf21e31a79 /sources/shiboken6/doc/_themes/pysidedocs/static/pyside.css | |
parent | 720a4040bef4e614e4f03f4ae8b3c0f058d86be9 (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/shiboken6/doc/_themes/pysidedocs/static/pyside.css')
-rw-r--r-- | sources/shiboken6/doc/_themes/pysidedocs/static/pyside.css | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/sources/shiboken6/doc/_themes/pysidedocs/static/pyside.css b/sources/shiboken6/doc/_themes/pysidedocs/static/pyside.css index 64d7f1752..625a2d39b 100644 --- a/sources/shiboken6/doc/_themes/pysidedocs/static/pyside.css +++ b/sources/shiboken6/doc/_themes/pysidedocs/static/pyside.css @@ -52,7 +52,7 @@ div.body p.centered { margin-top: 25px; } -div.warning, div.seealso, div.note { +div.warning, div.seealso, div.note, div.important { padding: 6px 0px 6px 10px; border: none; } @@ -61,12 +61,18 @@ div.warning { background-color: #ffe4e4; } +div.important { + background-color: #fef9f3; + border-left: 5px solid #feeec8; +} + div.seealso { background-color: #fff2d6; } div.note { - background-color: #f3f3f4; + background-color: #c5d3f4; + border-left: 5px solid #7899f4; } table.docutils { @@ -346,7 +352,7 @@ tt.descname { #detailed-description dd > blockquote, #detailed-description dd > .field-list { - font-family: 'Droid Sans Mono'; + font-family: 'Droid Sans Mono', monospace; font-size: small; border-left: 10px solid #e2e2e2; padding-left: 10px; @@ -443,7 +449,7 @@ tt.descname { } #detailed-description .attribute td:nth-child(1) { - font-family: 'Droid Sans Mono'; + font-family: 'Droid Sans Mono', monospace; } /* Qt theme */ @@ -895,7 +901,7 @@ tt.descname { /* Legacy iOS */ } @font-face { - font-family:'Droid Sans Mono'; + font-family: 'Droid Sans Mono', monospace; font-style:normal; font-weight:400; src:local("Droid Sans Mono"),local("DroidSansMono"),url(//fonts.gstatic.com/s/droidsansmono/v7/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff) format("woff") @@ -2038,6 +2044,8 @@ table.special { border-collapse: separate; border-spacing: 20px; line-height: 1.5em; + table-layout: fixed; + width: 80%; } .special p { @@ -2073,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 { |