diff --git a/docfx/templates/material/styles/docfx.js b/docfx/templates/material/styles/docfx.js index ed95a0de..855a8412 100644 --- a/docfx/templates/material/styles/docfx.js +++ b/docfx/templates/material/styles/docfx.js @@ -348,6 +348,12 @@ $(function () { $('#navbar ul a.active').parents('li').addClass(active); renderBreadcrumb(); showSearch(); + + // if window url is site root then set first item in navbar to active + if (window.location.pathname === '/') { + $('#navbar ul li:first-child').addClass(active); + } + } function showSearch() { @@ -1196,4 +1202,10 @@ $(function () { $('a:not([data-tab])').click(function (e) { delegateAnchors(e); }); }); } + + // Hide the contribution panel on home page, by-tool, by-product pages + if (window.location.pathname === '/' || window.location.pathname === '/index.html' || window.location.pathname === '/by-tool.html' + || window.location.pathname === '/by-product.html' || window.location.pathname === '/compact-view.html') { + $('.contribution-panel').hide(); + } }); \ No newline at end of file diff --git a/docfx/templates/material/styles/main.css b/docfx/templates/material/styles/main.css index 73a8fc4c..88ada893 100644 --- a/docfx/templates/material/styles/main.css +++ b/docfx/templates/material/styles/main.css @@ -178,7 +178,9 @@ article h4 { /* Both navbars use box-shadow */ -webkit-box-shadow: var(--card-box-shadow); -moz-box-shadow: var(--card-box-shadow); - box-shadow: var(--card-box-shadow); + /* box-shadow: var(--card-box-shadow); */ + box-shadow: 0 0 14px 12px rgb(0 0 0 / 30%); + min-height: 65px; } .subnav { @@ -884,7 +886,7 @@ p.sample-title { } .github-mark img{ height: 45px; - margin-top: 5px; + margin-top: 10px; } /* List view styles */ diff --git a/docfx/templates/material/styles/site.css b/docfx/templates/material/styles/site.css index f14cd4e1..5519a836 100644 --- a/docfx/templates/material/styles/site.css +++ b/docfx/templates/material/styles/site.css @@ -209,5 +209,5 @@ ul.github-facts li { .github-repository{ font-size: 18px; - margin: 5px 10px 0 0; + margin: 10px 10px 0 0; } \ No newline at end of file