* Copyright (c) 2025 Huawei Technologies Co., Ltd.
* This program is free software, you can redistribute it and/or modify it under the terms and conditions of
* CANN Open Software License Agreement Version 2.0 (the "License").
* Please refer to the License for details. You may not use this file except in compliance with the License.
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
* See LICENSE in the root of the software repository for the full text of the License.
* -------------------------------------------------------------------------------- */
* Custom styles for navigation
*
* - Hide +/- buttons in page content (TOC)
* - Keep +/- buttons in left sidebar navigation
* - Fix +/- button logic (+ = collapsed, - = expanded)
*/
.rst-content .toctree-expand,
.document .toctree-expand,
article .toctree-expand,
.section .toctree-expand {
display: none !important;
}
.wy-menu-vertical .toctree-expand {
display: inline-block !important;
}
.rst-content .toctree-wrapper .toctree-expand {
display: none !important;
}
.wy-menu-vertical button.toctree-expand {
font-size: 0;
width: auto;
min-width: 20px;
cursor: pointer;
background: transparent;
border: none;
padding: 0;
margin-right: 4px;
}
.wy-menu-vertical button.toctree-expand::before {
content: "+";
font-size: 14px;
font-weight: bold;
display: inline-block;
}
.wy-menu-vertical button.toctree-expand[data-expanded="true"]::before {
content: "-";
}
.wy-menu-vertical li.toctree-l1.current > a > button.toctree-expand::before {
content: "-";
}
.wy-menu-vertical button.toctree-expand:hover {
opacity: 0.7;
}