-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
5,264 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,269 @@ | ||
/* | ||
* classic.css_t | ||
* ~~~~~~~~~~~~~ | ||
* | ||
* Sphinx stylesheet -- classic theme. | ||
* | ||
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. | ||
* :license: BSD, see LICENSE for details. | ||
* | ||
*/ | ||
|
||
@import url("basic.css"); | ||
|
||
/* -- page layout ----------------------------------------------------------- */ | ||
|
||
html { | ||
/* CSS hack for macOS's scrollbar (see #1125) */ | ||
background-color: #FFFFFF; | ||
} | ||
|
||
body { | ||
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; | ||
font-size: 100%; | ||
background-color: white; | ||
color: #000; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
div.document { | ||
display: flex; | ||
background-color: white; | ||
} | ||
|
||
div.documentwrapper { | ||
float: left; | ||
width: 100%; | ||
} | ||
|
||
div.bodywrapper { | ||
margin: 0 0 0 230px; | ||
} | ||
|
||
div.body { | ||
background-color: white; | ||
color: #222222; | ||
padding: 0 20px 30px 20px; | ||
} | ||
|
||
div.footer { | ||
color: #555555; | ||
width: 100%; | ||
padding: 9px 0 9px 0; | ||
text-align: center; | ||
font-size: 75%; | ||
} | ||
|
||
div.footer a { | ||
color: #555555; | ||
text-decoration: underline; | ||
} | ||
|
||
div.related { | ||
background-color: white; | ||
line-height: 30px; | ||
color: #666666; | ||
} | ||
|
||
div.related a { | ||
color: #444444; | ||
} | ||
|
||
div.sphinxsidebar { | ||
} | ||
|
||
div.sphinxsidebar h3 { | ||
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; | ||
color: #444444; | ||
font-size: 1.4em; | ||
font-weight: normal; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
div.sphinxsidebar h3 a { | ||
color: #444444; | ||
} | ||
|
||
div.sphinxsidebar h4 { | ||
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; | ||
color: #444444; | ||
font-size: 1.3em; | ||
font-weight: normal; | ||
margin: 5px 0 0 0; | ||
padding: 0; | ||
} | ||
|
||
div.sphinxsidebar p { | ||
color: #444444; | ||
} | ||
|
||
div.sphinxsidebar p.topless { | ||
margin: 5px 10px 10px 10px; | ||
} | ||
|
||
div.sphinxsidebar ul { | ||
margin: 10px; | ||
padding: 0; | ||
color: #444444; | ||
} | ||
|
||
div.sphinxsidebar a { | ||
color: #444444; | ||
} | ||
|
||
div.sphinxsidebar input { | ||
border: 1px solid #444444; | ||
font-family: sans-serif; | ||
font-size: 1em; | ||
} | ||
|
||
|
||
|
||
/* -- hyperlink styles ------------------------------------------------------ */ | ||
|
||
a { | ||
color: #0090c0; | ||
text-decoration: none; | ||
} | ||
|
||
a:visited { | ||
color: #00608f; | ||
text-decoration: none; | ||
} | ||
|
||
a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
|
||
|
||
/* -- body styles ----------------------------------------------------------- */ | ||
|
||
div.body h1, | ||
div.body h2, | ||
div.body h3, | ||
div.body h4, | ||
div.body h5, | ||
div.body h6 { | ||
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; | ||
background-color: white; | ||
font-weight: normal; | ||
color: #1a1a1a; | ||
border-bottom: 1px solid #ccc; | ||
margin: 20px -20px 10px -20px; | ||
padding: 3px 0 3px 10px; | ||
} | ||
|
||
div.body h1 { margin-top: 0; font-size: 200%; } | ||
div.body h2 { font-size: 160%; } | ||
div.body h3 { font-size: 140%; } | ||
div.body h4 { font-size: 120%; } | ||
div.body h5 { font-size: 110%; } | ||
div.body h6 { font-size: 100%; } | ||
|
||
a.headerlink { | ||
color: #aaaaaa; | ||
font-size: 0.8em; | ||
padding: 0 4px 0 4px; | ||
text-decoration: none; | ||
} | ||
|
||
a.headerlink:hover { | ||
background-color: #aaaaaa; | ||
color: white; | ||
} | ||
|
||
div.body p, div.body dd, div.body li, div.body blockquote { | ||
text-align: justify; | ||
line-height: 130%; | ||
} | ||
|
||
div.admonition p.admonition-title + p { | ||
display: inline; | ||
} | ||
|
||
div.admonition p { | ||
margin-bottom: 5px; | ||
} | ||
|
||
div.admonition pre { | ||
margin-bottom: 5px; | ||
} | ||
|
||
div.admonition ul, div.admonition ol { | ||
margin-bottom: 5px; | ||
} | ||
|
||
div.note { | ||
background-color: #eee; | ||
border: 1px solid #ccc; | ||
} | ||
|
||
div.seealso { | ||
background-color: #ffc; | ||
border: 1px solid #ff6; | ||
} | ||
|
||
nav.contents, | ||
aside.topic, | ||
div.topic { | ||
background-color: #eee; | ||
} | ||
|
||
div.warning { | ||
background-color: #ffe4e4; | ||
border: 1px solid #f66; | ||
} | ||
|
||
p.admonition-title { | ||
display: inline; | ||
} | ||
|
||
p.admonition-title:after { | ||
content: ":"; | ||
} | ||
|
||
pre { | ||
padding: 5px; | ||
background-color: #eeffcc; | ||
color: #333333; | ||
line-height: 120%; | ||
border: 1px solid #ac9; | ||
border-left: none; | ||
border-right: none; | ||
} | ||
|
||
code { | ||
background-color: #ecf0f3; | ||
padding: 0 1px 0 1px; | ||
font-size: 0.95em; | ||
} | ||
|
||
th, dl.field-list > dt { | ||
background-color: #ede; | ||
} | ||
|
||
.warning code { | ||
background: #efc2c2; | ||
} | ||
|
||
.note code { | ||
background: #d6d6d6; | ||
} | ||
|
||
.viewcode-back { | ||
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; | ||
} | ||
|
||
div.viewcode-block:target { | ||
background-color: #f4debf; | ||
border-top: 1px solid #ac9; | ||
border-bottom: 1px solid #ac9; | ||
} | ||
|
||
div.code-block-caption { | ||
color: #efefef; | ||
background-color: #1c4e63; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
// ``function*`` denotes a generator in JavaScript, see | ||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function* | ||
function* getHideableCopyButtonElements(rootElement) { | ||
// yield all elements with the "go" (Generic.Output), | ||
// "gp" (Generic.Prompt), or "gt" (Generic.Traceback) CSS class | ||
for (const el of rootElement.querySelectorAll('.go, .gp, .gt')) { | ||
yield el | ||
} | ||
// tracebacks (.gt) contain bare text elements that need to be | ||
// wrapped in a span to hide or show the element | ||
for (let el of rootElement.querySelectorAll('.gt')) { | ||
while ((el = el.nextSibling) && el.nodeType !== Node.DOCUMENT_NODE) { | ||
// stop wrapping text nodes when we hit the next output or | ||
// prompt element | ||
if (el.nodeType === Node.ELEMENT_NODE && el.matches(".gp, .go")) { | ||
break | ||
} | ||
// if the node is a text node with content, wrap it in a | ||
// span element so that we can control visibility | ||
if (el.nodeType === Node.TEXT_NODE && el.textContent.trim()) { | ||
const wrapper = document.createElement("span") | ||
el.after(wrapper) | ||
wrapper.appendChild(el) | ||
el = wrapper | ||
} | ||
yield el | ||
} | ||
} | ||
} | ||
|
||
|
||
const loadCopyButton = () => { | ||
/* Add a [>>>] button in the top-right corner of code samples to hide | ||
* the >>> and ... prompts and the output and thus make the code | ||
* copyable. */ | ||
const hide_text = "Hide the prompts and output" | ||
const show_text = "Show the prompts and output" | ||
|
||
const button = document.createElement("span") | ||
button.classList.add("copybutton") | ||
button.innerText = ">>>" | ||
button.title = hide_text | ||
button.dataset.hidden = "false" | ||
const buttonClick = event => { | ||
// define the behavior of the button when it's clicked | ||
event.preventDefault() | ||
const buttonEl = event.currentTarget | ||
const codeEl = buttonEl.nextElementSibling | ||
if (buttonEl.dataset.hidden === "false") { | ||
// hide the code output | ||
for (const el of getHideableCopyButtonElements(codeEl)) { | ||
el.hidden = true | ||
} | ||
buttonEl.title = show_text | ||
buttonEl.dataset.hidden = "true" | ||
} else { | ||
// show the code output | ||
for (const el of getHideableCopyButtonElements(codeEl)) { | ||
el.hidden = false | ||
} | ||
buttonEl.title = hide_text | ||
buttonEl.dataset.hidden = "false" | ||
} | ||
} | ||
|
||
const highlightedElements = document.querySelectorAll( | ||
".highlight-python .highlight," | ||
+ ".highlight-python3 .highlight," | ||
+ ".highlight-pycon .highlight," | ||
+ ".highlight-pycon3 .highlight," | ||
+ ".highlight-default .highlight" | ||
) | ||
|
||
// create and add the button to all the code blocks that contain >>> | ||
highlightedElements.forEach(el => { | ||
el.style.position = "relative" | ||
|
||
// if we find a console prompt (.gp), prepend the (deeply cloned) button | ||
const clonedButton = button.cloneNode(true) | ||
// the onclick attribute is not cloned, set it on the new element | ||
clonedButton.onclick = buttonClick | ||
if (el.querySelector(".gp") !== null) { | ||
el.prepend(clonedButton) | ||
} | ||
}) | ||
} | ||
|
||
if (document.readyState !== "loading") { | ||
loadCopyButton() | ||
} else { | ||
document.addEventListener("DOMContentLoaded", loadCopyButton) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* This file intentionally left blank. */ | ||
.class { | ||
border: 2px solid #f06c6c; /* Отделяет классы горизонтальной линией */ | ||
padding: 50px; | ||
|
||
} | ||
|
||
.method, .function { | ||
border: 1px solid #84f368; /* Легкая линия между методами и функциями */ | ||
padding: 5px; | ||
} | ||
|
||
.signature { | ||
font-style: italic; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import url("classic.css"); |
Oops, something went wrong.