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 22
22
<script >
23
23
window .addEventListener (' load' , () => {
24
24
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
25
41
let logo = document .querySelector (' img[src$="ibexa-dxp-logo.png"]' );
26
42
logo .onclick = () => {
27
43
let pathParts = document .location .pathname .split (' /' ).slice (0 , 3 );
You can’t perform that action at this time.
0 commit comments