From 1a4c160a4fd9872266f66cd035e2250be79be647 Mon Sep 17 00:00:00 2001 From: "ziyad@zbmed.de" Date: Thu, 14 Sep 2023 12:18:34 +0200 Subject: [PATCH] - Few more UI changes --- _includes/aside.html | 333 ------------------------------------------ assets/css/docs53.css | 4 +- assets/js/main.js | 10 +- 3 files changed, 11 insertions(+), 336 deletions(-) diff --git a/_includes/aside.html b/_includes/aside.html index 94255f9a..14255942 100644 --- a/_includes/aside.html +++ b/_includes/aside.html @@ -49,336 +49,3 @@
Browse docs
- - - \ No newline at end of file diff --git a/assets/css/docs53.css b/assets/css/docs53.css index 8e213ead..48c4f911 100644 --- a/assets/css/docs53.css +++ b/assets/css/docs53.css @@ -1322,7 +1322,7 @@ details[open]>.bd-summary-link { .bd-links-link:focus, .bd-links-link.active { - color: var(--bs-emphasis-color); + color: #ffb12d; /* var(--bs-emphasis-color); */ background-color: var(--bd-grey) } @@ -1927,7 +1927,7 @@ details[open]>.bd-summary-link { } .btn-bd-light { - --btn-custom-color: #9461fb; + --btn-custom-color: #ffb12d; --bs-btn-color: var(--bs-gray-600); --bs-btn-border-color: var(--bs-border-color); --bs-btn-hover-color: var(--btn-custom-color); diff --git a/assets/js/main.js b/assets/js/main.js index af99d7d4..20c6d3f5 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,9 +1,17 @@ $(document).ready(function () { - AutoActivateFirstChildTab(); + //AutoActivateFirstChildTab(); GenerateScrollSpy(); + ChangeMenuTablets(); }); + +function ChangeMenuTablets(){ + var headingtext = $('#content').text() + $('.active').removeClass('active'); + $('.bd-links-link:contains("'+ headingtext +'")').addClass('active'); +} + // tab UI first child auto active function AutoActivateFirstChildTab() {