From 939c4204356b3bcedd49ba4dfe2b33900e4b5c29 Mon Sep 17 00:00:00 2001 From: Nikolay Tyukaev Date: Fri, 11 Mar 2022 11:09:54 +0300 Subject: [PATCH] benchmark legal, snippet margin bottom (#10887) --- docs/_static/css/custom.css | 24 ++++++++++++++++++++++++ docs/_static/js/custom.js | 9 +++++++++ 2 files changed, 33 insertions(+) diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css index 07533f91be3..423839b4186 100644 --- a/docs/_static/css/custom.css +++ b/docs/_static/css/custom.css @@ -49,7 +49,31 @@ main img { background-image: url('media/union-up.svg'); } +div.highlight { + margin-bottom: 1.15rem; +} + .highlight .err { border:none; color:inherit; } + +.opt-notice-wrapper { + position: fixed; + bottom:0; + background: black; + width:100%; + text-align: center; + padding: 1rem; + z-index: 1000; +} + +.opt-notice { + margin-bottom: 0; + position: absolute; + top: 50%; + transform: translateY(-50%); + text-align: center; + width:100%; + color: #fff; +} diff --git a/docs/_static/js/custom.js b/docs/_static/js/custom.js index bfc54b881be..23763b3f0ca 100644 --- a/docs/_static/js/custom.js +++ b/docs/_static/js/custom.js @@ -25,6 +25,14 @@ var wapSection = 'openvinotoolkit'; s.appendChild(po); })(); +// legal notice for benchmarks +function addLegalNotice() { + if (window.location.href.indexOf('openvino_docs_performance_') !== -1) { + var legalNotice = $('

Results may vary. For workloads and configurations visit: www.intel.com/PerformanceIndex and Legal Information.

'); + $('body').append(legalNotice); + } +} + $(document).ready(function () { createVersions(); updateTitleTag(); @@ -36,6 +44,7 @@ $(document).ready(function () { if (TABLE_SORT) { addTableSort(); } + addLegalNotice(); }); // Determine where we'd go if clicking on a version selector option