diff --git a/_javascripts/page-loader.js b/_javascripts/page-loader.js index 848d1a239559..912a401eb73c 100644 --- a/_javascripts/page-loader.js +++ b/_javascripts/page-loader.js @@ -8,6 +8,7 @@ const urlMappings = { "openshift-builds": "https://docs.openshift.com/builds/", "openshift-enterprise": "https://docs.openshift.com/container-platform/", "openshift-gitops": "https://docs.openshift.com/gitops/", + "openshift-lightspeed": "https://docs.openshift.com/lightspeed/", "openshift-origin": "https://docs.okd.io/", "openshift-pipelines": "https://docs.openshift.com/pipelines/", "openshift-serverless": "https://docs.openshift.com/serverless/", diff --git a/_stylesheets/docs.css b/_stylesheets/docs.css index 69cd654f3f74..20d7be3177d7 100644 --- a/_stylesheets/docs.css +++ b/_stylesheets/docs.css @@ -53,6 +53,21 @@ div.gsc-option-menu-container>div.gsc-selected-option-container { margin: 0 10px; } +/* target safari only hack: https://stackoverflow.com/a/25975282/6758654 */ +/* Addresses https://github.com/openshift/openshift-docs/issues/40909 */ +@media not all and (min-resolution:.001dpcm) { @supports (-webkit-appearance:none) and (stroke-color:transparent) { + #hc-search.wide { + z-index: 50; + margin-top: 28px; + margin-left: -15px; + } + + .sidebar.wide { + padding-top: 30px; + } +}} +/* end safari only */ + /* ------------------------------------------------------------ Image: "Spin" https://www.flickr.com/photos/eflon/3655695161/ Author: eflon https://www.flickr.com/photos/eflon/ @@ -532,6 +547,7 @@ h2:hover>a.anchor, h2>a.anchor:hover, h3:hover>a.anchor, h3>a.anchor:hover, h4:h } #toc { + user-select: none; float: right; padding-top: 0.1em !important; font-size: 0.8em; diff --git a/_templates/_page_openshift.html.erb b/_templates/_page_openshift.html.erb index 0d9f528df9ce..468ec5c0ed18 100644 --- a/_templates/_page_openshift.html.erb +++ b/_templates/_page_openshift.html.erb @@ -15,13 +15,13 @@ <%= ((["3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.9", "3.10", "4.1", "4.2", "4.3", "4.4", "4.5", "4.6", "4.7"].include?(version)) && distro_key == "openshift-enterprise") ? '' : '' %>