File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 2222 <script >
2323 window .addEventListener (' load' , () => {
2424 window .setTimeout (() => {
25+ // Remove badges from TOC
26+ document .querySelectorAll (' .menu-content [role="menuitem"] [type="badge"]' ).forEach (el => el .remove ());
27+
28+ // Apply badge styling
29+ document .querySelectorAll (' .api-content [data-section-id] h2 [type="primary"]' ).forEach (el => {
30+ const color = el .getAttribute (' color' );
31+ el .style .backgroundColor = " #FFF" ;
32+ el .style .border = " 1px solid " + color;
33+ el .style .padding = " 1px 8px" ;
34+ el .style .marginRight = " 8px" ;
35+ el .style .color = color;
36+ el .style .fontWeight = " initial" ;
37+ el .style .borderRadius = " 0px" ;
38+ });
39+
40+ // Style logo
2541 let logo = document .querySelector (' img[src$="ibexa-dxp-logo.png"]' );
2642 logo .onclick = () => {
2743 let pathParts = document .location .pathname .split (' /' ).slice (0 , 3 );
You can’t perform that action at this time.
0 commit comments