Added tooltip to home icon, stopped it changing window title.

This commit is contained in:
Oliver Hamlet
2014-12-29 00:49:13 +00:00
parent 9131dbdb07
commit c817a26414
4 changed files with 9 additions and 10 deletions
-1
View File
@@ -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. */
+1 -7
View File
@@ -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;
}
+5 -1
View File
@@ -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');
+3 -1
View File
@@ -88,7 +88,9 @@
<div main layout vertical>
<core-toolbar id="mainToolbar">
<paper-icon-button icon="menu" id="drawerToggle" core-drawer-toggle></paper-icon-button>
<a href="#summary"><paper-icon-button icon="home"></paper-icon-button></a>
<core-tooltip label="Jump To General Information" noarrow>
<paper-icon-button id="jumpToGeneralInfo" icon="home"></paper-icon-button>
</core-tooltip>
<loot-dropdown-menu id="gameMenu" class="title dark">
<!-- Generated game <li> elements go here. -->
</loot-dropdown-menu>