OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[DOCS] Page adjustment (#26637)
Andrzej Kopytko220e28a88bed
diff --git a/docs/openvino_sphinx_theme/openvino_sphinx_theme/templates/layout.html b/docs/openvino_sphinx_theme/openvino_sphinx_theme/templates/layout.htmlindex 0f66b46780c..25acb3c1e5c 100644--- a/docs/openvino_sphinx_theme/openvino_sphinx_theme/templates/layout.html+++ b/docs/openvino_sphinx_theme/openvino_sphinx_theme/templates/layout.html@@ -95,11 +95,12 @@ or not theme_secondary_sidebar_items %}<div class="bd-container"><div class="bd-container__inner bd-page-width">{# Primary sidebar #}- <div class="bd-sidebar-primary bd-sidebar{% if not sidebars %} hide-on-wide{% endif %}">+ <div id="bd-sidebar" class="bd-sidebar-primary bd-sidebar{% if not sidebars %} hide-on-wide{% endif %}">{% include "sections/sidebar-primary.html" %}</div>{# Using an ID here so that the skip-link works #}- <main id="main-content" class="bd-main">+ <div id="bd-resizer"></div>+ <main class="bd-main">{# Main content area #}{% block docs_main %}<div class="bd-content">diff --git a/docs/sphinx_setup/_static/css/custom.css b/docs/sphinx_setup/_static/css/custom.cssindex 0c0a1b421b9..3f57eb122b2 100644--- a/docs/sphinx_setup/_static/css/custom.css+++ b/docs/sphinx_setup/_static/css/custom.css@@ -20,18 +20,29 @@ main .searchForm {pre {white-space: pre-wrap;word-wrap: break-word;- /*background-color: white;- color: red !important; */+ border-radius: 0 !important;+ margin-bottom: 10px !important;}-/*confirm this is not necessary, if so, remove */+div.sd-tab-content pre {+ margin-bottom: 0 !important;+ background-color: white !important;+}button.copybtn {opacity: 100;border: white 1px solid;+}++.sd-tab-content button.copybtn {background-color: white !important;}+ul.simple,+ul.simple li ul {+ margin-bottom: 15px;+}+/* cookie wap requirement */a#wap_dns {display: none;@@ -96,6 +107,9 @@ a#wap_dns {padding-right: 4px;padding-left: 4px;padding-bottom: 6px;+ padding-left: 10px;+ padding-right: 10px;+ padding-bottom: 12px;margin: 0 0 0 0;}@@ -171,8 +185,10 @@ li.breadcrumb-item {align-items: center !important;}-.bd-sidebar-primary {+div.bd-page-width .bd-sidebar-primary {display: block !important;+ border-right: 0 !important;+ /* top: 0 !important; */}a.nav-link:hover {@@ -194,12 +210,26 @@ a.nav-link:hover {transform: rotate(270deg);}-/* Move sidebar menu arrows to the left */.bd-sidebar label {left: 5px;height: 20px;width: 20px;top: 5px;++}++#bd-resizer {+ flex-basis: 2px;+ z-index: 2;+ cursor: col-resize;+ background: #e3e3e3;+ margin-left: 0px;+}++#bd-resizer:hover {+ background: #0068b5;+ flex-basis: 2px;+ box-shadow: 0 5px 5px rgba(36, 36, 36, 0.5) !important;}nav.bd-links li>a {@@ -345,7 +375,15 @@ div.admonition.note {}details.sd-dropdown summary.sd-card-header+div.sd-summary-content {- background-color: rgb(242, 248, 251);+ background-color: #F8F8F8;+}++details.sd-dropdown summary.sd-card-header {+ background-color: #E5E5E5 !important;+}++details.sd-dropdown summary.sd-card-header:hover {+ background-color: #CCCCCC !important;}/* Table Sort Button */@@ -380,10 +418,6 @@ details.sd-dropdown summary.sd-card-header+div.sd-summary-content {background-image: url('media/union-up.svg');}-div.highlight {- margin-bottom: 1.15rem;-}-.highlight .err {border: none;color: inherit;@@ -434,6 +468,7 @@ div.highlight {margin-bottom: 0;}+.transition-banner .close-banner {position: absolute;top: 0;@@ -496,7 +531,9 @@ div.highlight {}}+/* Performance Benchmark Graphs */+/* =================================================== */.configure-graphs-header {padding-left: 16px;display: flex;@@ -507,6 +544,10 @@ div.highlight {float: left;}+.configure-graphs-content {+ overflow: auto;+}+.header-inactive {color: lightgray;}@@ -706,31 +747,8 @@ div.highlight {background-color: rgba(0, 0, 0, 0.4);}-/* The Modal (filters modal) */-.modal-filter {- display: none;- position: fixed;- z-index: 2;- left: 0;- top: 0;- width: 100%;- height: 100%;- overflow: auto;- background-color: rgb(0, 0, 0);- background-color: rgba(0, 0, 0, 0.4);-}--/* Modal Content/Box */-.modal-filters-content {- background-color: #fefefe;- margin: 5% auto;- padding: 36px;- border: 1px solid #888;- width: 50%;- border-radius: var(--bs-modal-border-radius)-}-.modal-content {+ overflow: auto;background-color: #fefefe;margin: 3% auto;padding: 36px;@@ -738,7 +756,6 @@ div.highlight {width: 95%;max-width: 1140px;max-height: 85%;- border-radius: var(--bs-modal-border-radius)}.modal-content h2 {@@ -783,7 +800,6 @@ div.highlight {display: grid;padding-top: .5rem;grid-template-columns: 1fr;- overflow: auto;}.modal-content-grid-container .column {@@ -803,18 +819,54 @@ div.highlight {margin-left: -14px;}-.modal-content-grid-item h5 {- display: inline-block;- font-weight: 530;- margin: 0;- margin-left: 22px;+h1 {+ display: block;+ font-size: 1.9em;+ margin-top: 0.67em;+ margin-bottom: 0.67em;+ margin-left: 0;+ margin-right: 0;+ font-weight: 480;}-.modal-filters-content h5 {- display: inline-block;- font-weight: 530;- margin: 0;- margin-left: 22px;+h2 {+ display: block;+ font-size: 1.6em;+ margin-top: 0.83em;+ margin-bottom: 0.83em;+ margin-left: 0;+ margin-right: 0;+ font-weight: 480;+}++h3 {+ display: block;+ font-size: 1.35em;+ margin-top: 1em;+ margin-bottom: 1em;+ margin-left: 0;+ margin-right: 0;+ font-weight: 500;+}++h4 {+ display: block;+ font-size: 1.15em;+ margin-top: 1.33em;+ margin-bottom: 1.33em;+ margin-left: 0;+ margin-right: 0;+ font-weight: 500;+}++h5 {+ display: block;+ font-size: 1em;+ margin-top: 1.67em;+ margin-bottom: 1.67em;+ margin-left: 0;+ margin-right: 0;+ font-weight: 500;}.modal-footer {@@ -891,6 +943,10 @@ div.highlight {gap: .5rem;}+ .clear-all-btn {+ padding: 0;+ }+.modal-content-grid-container {grid-template-columns: 1fr;grid-template-rows: auto;@@ -906,21 +962,14 @@ div.highlight {grid-template-columns: 1fr 1fr;column-gap: 1rem;}-}-.show-allcheckbox {- cursor: pointer;- float: left;+ .span-element-big {+ grid-column: 1 / span 2;+ }}-.close:hover,-.close:focus {- color: black;- text-decoration: none;- cursor: pointer;-}-/* Modal buttons */+/* Modal buttons */.modal-close {color: #aaaaaa;float: right;@@ -944,11 +993,9 @@ div.highlight {}.build-graphs-btn {- border: 1.5px solid black;border-color: #0054AE;background-color: #0054AE;color: #fff;- padding: 4px 10px;}.build-graphs-btn:disabled {@@ -958,14 +1005,10 @@ div.highlight {.clear-all-btn {cursor: pointer;- padding: 0;- /* Disabled Clear All button. It is temporary solution */- display: none;}.clear-all-btn-content {border: 1.5px solid black;- display: none;padding: 6px 10px;}@@ -985,43 +1028,18 @@ div.highlight {content: url('media/edit-settings.svg');}-.arrow-back-icon {- content: url('media/arrow-back.svg');-}--.filters-label {- position: absolute;- font-weight: 400;- font-size: small;- /* top: -2px; */- right: 0px;- width: 90px;-}--.show-filter {- cursor: pointer;- position: relative;- float: right;-}--.show-filters-icon {- content: url('media/show-filters.svg');-}-.close-btn {- padding: 12px 24px;- cursor: pointer;+ padding: 4px 16px;+ border-color: #0054AE;+ background-color: #0054AE;color: #fefefe;float: right;align-self: flex-start;}-.close-filters{- cursor: pointer;- float: right;-}/* Content formatting for the benchmark pages */+/* =================================================== */.picker-options {margin: 15px 0;}@@ -1435,4 +1453,49 @@ input:-webkit-autofill {nav.bd-links p.bd-links__title {display: none;+}++div[class*="highlight-"] {+ margin: 0 0;+}++.bd-sidebar::-webkit-scrollbar,+.scrollbox::-webkit-scrollbar {+ height: 8px;+ width: 5px;+}++.bd-sidebar::-webkit-scrollbar-track,+.scrollbox::-webkit-scrollbar-track {+ border-radius: 4px;+ background-color: white;+}++.bd-sidebar::-webkit-scrollbar-track:hover,+.scrollbox::-webkit-scrollbar-track:hover {+ background-color: white;+}++.bd-sidebar::-webkit-scrollbar-track:active,+.scrollbox::-webkit-scrollbar-track:active {+ background-color: white;+}++.bd-sidebar::-webkit-scrollbar-thumb,+.scrollbox::-webkit-scrollbar-thumb {+ border-radius: 4px;+ background-color: #cdcdcd;+ width: 8px !important;+}++.bd-sidebar::-webkit-scrollbar-thumb:hover,+.scrollbox::-webkit-scrollbar-thumb:hover {+ background-color: #7a7676;+ width: 8px !important;+}++.bd-sidebar::-webkit-scrollbar-thumb:active,+.scrollbox::-webkit-scrollbar-thumb:active {+ background-color: #7a7676;+ width: 8px !important;}\ No newline at end of filediff --git a/docs/sphinx_setup/_static/js/custom.js b/docs/sphinx_setup/_static/js/custom.jsindex 80330bf5dab..e67a09e84f7 100644--- a/docs/sphinx_setup/_static/js/custom.js+++ b/docs/sphinx_setup/_static/js/custom.js@@ -43,8 +43,6 @@ document.addEventListener('click', () => {});});--document.addEventListener('DOMContentLoaded', function () {var dropdownButtons = document.querySelectorAll('.sst-btn');dropdownButtons.forEach((ddBtn) => {@@ -88,8 +86,10 @@ function addLegalNotice() {}}+$(document).ready(function () {- addFooter();+ initSidebar();+ handleSidebar();createVersions();updateTitleTag();updateLanguageSelector();@@ -103,8 +103,37 @@ $(document).ready(function () {initCollapsibleHeaders(); // included with the new benchmarks pagecreateSphinxTabSets();initSplide();+ addFooter();});+function handleSidebar() {+ const resizer = document.querySelector("#bd-resizer");+ const sidebar = document.querySelector("#bd-sidebar");+ resizer.addEventListener("mousedown", (event) => {+ document.addEventListener("mousemove", resize, false);+ document.addEventListener("mouseup", () => {+ document.removeEventListener("mousemove", resize, false);+ }, false);+ });++ function resize(e) {+ const size = `${e.x}px`;+ localStorage['resizeSidebarX'] = size;+ sidebar.style.flexBasis = size;+ }+}++function initSidebar() {+ const sidebar = document.querySelector("#bd-sidebar");+ var size;+ if(localStorage['resizeSidebarX'] == null){+ size = "350px";+ }else{+ size = localStorage['resizeSidebarX'];+ }+ sidebar.style.flexBasis = size;+}+// Determine where we'd go if clicking on a version selector optionfunction getPageUrlWithVersion(version) {const currentUrl = window.location.href;@@ -321,7 +350,6 @@ function addFooter() {}function initSplide() {-var splide = new Splide('.splide', {type: 'fade',autoHeight: true,