diff --git a/resources/report/css/overrides.css b/resources/report/css/overrides.css index cf5733a9..d737c44b 100644 --- a/resources/report/css/overrides.css +++ b/resources/report/css/overrides.css @@ -54,7 +54,6 @@ html /deep/ paper-tabs::shadow .scroll-button .hidden { } /* Set the drawer z-index so that it doesn't appear below plugin cards. */ core-drawer-panel::shadow #drawer { - z-index: 1; /* max-width disabled because the panel doesn't shift over when the max is reached, due to the percentage drawer width, and setting it to a constant 400px is too wide in many window sizes. */ diff --git a/resources/report/css/style.css b/resources/report/css/style.css index 07831908..ca571a65 100644 --- a/resources/report/css/style.css +++ b/resources/report/css/style.css @@ -50,9 +50,6 @@ core-toolbar, div[drawer] > div:first-child { color: white; height: 56px; } -core-toolbar > a { - color: white; -} #mainToolbar { box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); z-index: 1; @@ -72,7 +69,6 @@ core-toolbar > a { /* Drawer / Sidebar */ div[drawer] { background: white; - z-index: 1; } div[drawer] > * { border-right: 1px rgba(0, 0, 0, 0.12) solid; @@ -122,6 +118,7 @@ paper-item > a:hover { #summary > h1 { margin: -16px 0 0; line-height: 56px; + color: inherit; } #summary > table { display: inline-block; @@ -137,9 +134,6 @@ paper-item > a:hover { text-align: right; padding-left: 16px; } -ul, ol { - margin: 8px 0; -} #main li { padding: 8px 16px; } diff --git a/resources/report/js/script.js b/resources/report/js/script.js index bdd85180..9783d62d 100644 --- a/resources/report/js/script.js +++ b/resources/report/js/script.js @@ -985,7 +985,6 @@ function handleClearMetadata(evt) { } function handleSidebarClick(evt) { if (evt.target.hasAttribute('data-index')) { - window.location.hash = ''; document.getElementById('main').lastElementChild.scrollToItem(evt.target.getAttribute('data-index')); if (evt.type == 'dblclick') { @@ -1002,6 +1001,10 @@ function handleQuit(evt) { window.close(); } } +function jumpToGeneralInfo(evt) { + window.location.hash = ''; + document.getElementById('main').scrollTop = 0; +} function setupEventHandlers() { /*Set up handlers for filters.*/ document.getElementById('hideVersionNumbers').addEventListener('change', toggleDisplayCSS, false); @@ -1033,6 +1036,7 @@ function setupEventHandlers() { document.getElementById('applySortButton').addEventListener('click', applySort, false); document.getElementById('cancelSortButton').addEventListener('click', cancelSort, false); document.getElementById('sidebarTabs').addEventListener('core-select', switchSidebarTab, false); + document.getElementById('jumpToGeneralInfo').addEventListener('click', jumpToGeneralInfo, false); /* Set up event handlers for settings dialog. */ var settings = document.getElementById('settingsDialog'); diff --git a/resources/report/report.html b/resources/report/report.html index f0a369d9..51c24992 100644 --- a/resources/report/report.html +++ b/resources/report/report.html @@ -88,7 +88,9 @@