From 9e3c08db40b8916968b9f30096c7be3f00ce9647 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:44:51 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- docs/_static/custom_theme.css | 71 +++++++++++++++++++++++++++++++++++++++++ docs/_static/sphinx_design.css | 21 ++++++++++++ docs/_static/sphinx_design.js | 72 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 164 insertions(+) create mode 100644 docs/_static/custom_theme.css create mode 100644 docs/_static/sphinx_design.css create mode 100644 docs/_static/sphinx_design.js (limited to 'docs/_static') diff --git a/docs/_static/custom_theme.css b/docs/_static/custom_theme.css new file mode 100644 index 0000000000..c8e34c03ca --- /dev/null +++ b/docs/_static/custom_theme.css @@ -0,0 +1,71 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/* Increase the size of the content */ +.wy-nav-content { + max-width: 80% !important; +} + +/* Increase the size of the tables */ +table.docutils { + width: 90%; +} + +/* Override the default values for multiline text in a table */ +table.docutils td, table.docutils th +{ + font-size: 16px !important; +} + +.rst-content .line-block { + margin-bottom: 0px !important; +} + +/* Add the strikethrough feature */ +span.strikethrough { + text-decoration: line-through; +} + +/* Better control over the table on this page */ +.matcher-cookbook td { + white-space: break-spaces !important; +} + +.wy-table-responsive table td, .wy-table-responsive table th { + white-space: normal; +} + +img.center { + display: block; + margin: auto; +} + +img.border { + border: 1px solid black; + display: block; + margin: auto; +} + +.center { + text-align: center; +} + +/* Keyboard shortcuts styling */ +kbd { + background: linear-gradient(180deg,#f4f4f4,#d5d5d5); + background-color: #f4f4f4; + border: 1px solid #d5d5d5; + border-radius: 6px; + font-family: consolas,"Liberation Mono",courier,monospace; + font-size: .9rem; + font-weight: 700; + line-height: 2.3; + margin: 3px; + padding: 4px 6px 1px 6px; + white-space: nowrap; +} + +table.docutils { + width: 100%; +} diff --git a/docs/_static/sphinx_design.css b/docs/_static/sphinx_design.css new file mode 100644 index 0000000000..86d1ad7b08 --- /dev/null +++ b/docs/_static/sphinx_design.css @@ -0,0 +1,21 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/* For Dropdown Link in panels of sphinx-panels */ +a.dropdown-link { + color: #DDD; + margin-left: 0.5em; + padding: 0.25em; + visibility: hidden; +} + +details.sd-dropdown:hover a.dropdown-link { + visibility: visible; +} + +a.dropdown-link:hover { + background-color: #36557c; + color: #ffffff; + text-decoration: none; +} diff --git a/docs/_static/sphinx_design.js b/docs/_static/sphinx_design.js new file mode 100644 index 0000000000..d080f2d634 --- /dev/null +++ b/docs/_static/sphinx_design.js @@ -0,0 +1,72 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +(function () { + "use strict"; + + var dropdownClassName = "sd-dropdown"; + + function getDropdownElement() { + var dropdownId = window.location.hash; + if (!dropdownId) { + return false; + } + + var dropdownElement = document.getElementById(dropdownId.substring(1)); + if ( + !dropdownElement || + !dropdownElement.classList.contains(dropdownClassName) + ) { + return false; + } + + return dropdownElement; + } + + function setupDropdownLink() { + var dropdowns = document.getElementsByClassName(dropdownClassName); + for (var i = 0; i < dropdowns.length; i++) { + for (var j = 0; j < dropdowns[i].classList.length; j++) { + if (dropdowns[i].classList[j].startsWith("anchor-id-")) { + dropdowns[i].id = dropdowns[i].classList[j].replace("anchor-id-", ""); + } + } + + var aTag = document.createElement("a"); + aTag.setAttribute("href", "#" + dropdowns[i].id); + aTag.classList.add("dropdown-link"); + aTag.innerHTML = "ΒΆ"; + + var summaryElement = + dropdowns[i].getElementsByClassName("sd-summary-title")[0]; + summaryElement.insertBefore( + aTag, + summaryElement.getElementsByClassName("docutils")[0] + ); + } + } + + function scrollToDropdown() { + var dropdownElement = getDropdownElement(); + if (dropdownElement) { + dropdownElement.open = true; + dropdownElement.scrollIntoView(true); + } + } + + // Initiallize dropdown link + window.addEventListener("DOMContentLoaded", () => { + if (document.getElementsByClassName(dropdownClassName).length) { + setupDropdownLink(); + window.onhashchange = scrollToDropdown; + } + }); + + // Scroll to and open the dropdown direct links + window.onload = () => { + if (document.getElementsByClassName(dropdownClassName).length) { + scrollToDropdown(); + } + }; +})(); -- cgit v1.2.3