module helpgen.style_css_template

Short summary

module pyquickhelper.helpgen.style_css_template

Custom style for the documentation.

source on GitHub

Documentation

Custom style for the documentation.

source on GitHub

pyquickhelper.helpgen.style_css_template.THUMBNAIL_TEMPLATE = '\n.. raw:: html\n\n <div class="sphx-pyq-thumb" tooltip="{snippet}">\n\n.. only:: html\n\n .. figure:: /{thumbnail}\n\n :ref:`{ref_name}`\n\n.. raw:: html\n\n </div>\n'[source]

base string for creating the thumbnail, layout=classic

pyquickhelper.helpgen.style_css_template.THUMBNAIL_TEMPLATE_TABLE = ' * - .. image:: /{thumbnail}\n :target: {nb_name}\n - :ref:`{ref_name}`\n - {snippet}'[source]

base string for creating the thumbnail, layout=table

pyquickhelper.helpgen.style_css_template.style_figure_notebook = ('style_notebook_snippet.css', '\ndiv.sphx-pyq-thumb {\n box-shadow: none;\n background: #FFF;\n margin: 5px;\n padding-top: 5px;\n min-height: 230px;\n border: solid white 1px;\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n border-radius: 5px;\n float: left;\n position: relative;\n}\n\ndiv.sphx-pyq-thumb:hover {\n box-shadow: 0 0 15px rgba(142, 176, 202, 0.5);\n border: solid #B4DDFC 1px; }\n div.sphx-pyq-thumb a.internal {\n display: block;\n position: absolute;\n padding: 150px 10px 0px 10px;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n}\n\ndiv.sphx-pyq-thumb p {\n margin: 0 0 .1em 0;\n}\n\ndiv.sphx-pyq-thumb .figure {\n margin: 10px;\n width: 160px;\n}\n\ndiv.sphx-pyq-thumb img {\n max-width: 100%;\n max-height: 160px;\n display: inline;\n}\n\ndiv.sphx-pyq-thumb[tooltip]:hover:after {\n background: rgba(0, 0, 0, 0.8);\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n border-radius: 5px;\n color: white;\n content: attr(tooltip);\n left: 95%;\n padding: 5px 15px;\n position: absolute;\n z-index: 98;\n width: 220px;\n bottom: 52%;\n}\n\ndiv.sphx-pyq-thumb[tooltip]:hover:before {\n content: "";\n position: absolute;\n z-index: 99;\n border: solid;\n border-color: #333 transparent;\n border-width: 18px 0px 0px 20px;\n left: 85%;\n bottom: 58%;\n}\n\n.sphx-pyq-download {\n background-color: #ffc;\n border: 1px solid #c2c22d;\n border-radius: 4px;\n margin: 1em auto 1ex auto;\n max-width: 45ex;\n padding: 1ex;\n}\n\n.sphx-pyq-download a {\n color: #4b4600;\n}\n')[source]

style for thumbnails