Improved sidebar tab switching performance.

Pretty much no lag now. Fixes #365.
This commit is contained in:
Oliver Hamlet
2014-12-28 00:31:47 +00:00
parent 452a032351
commit fbd1409004
2 changed files with 6 additions and 3 deletions
+5 -3
View File
@@ -25,9 +25,11 @@ paper-icon-button[disabled] {
bottom: 0;
right: 0;
}
/* This stops transitions from overflowing onto other elements. */
html /deep/ core-animated-pages {
overflow: hidden;
/* This speeds up tab switching. The 1px height is so that core-list children
don't complain about not having a height set. */
core-animated-pages::shadow ::content > *:not(.core-selected):not([animate]) {
display: block !important;
height: 1px;
}
/* This makes checkboxes have the same padding as icons in lists. */
html /deep/ core-menu paper-checkbox::shadow #checkboxLabel {
+1
View File
@@ -225,6 +225,7 @@ paper-item > a:hover {
}
#filters {
padding: 8px 0;
overflow: hidden;
}
#filters > * {
padding: 0 16px;