Improved styling of scrollable tabs.

Scroll buttons are now better aligned with tab text, have the correct
Material Design icon colour, and tab text is better vertically centered.
Disabled scroll buttons also no longer cause hovering cursors to display
pointers.
This commit is contained in:
Oliver Hamlet
2014-12-28 13:39:35 +00:00
parent 524d3254a2
commit fd7b3d3ef0
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -98,10 +98,15 @@ html /deep/ core-menu .core-selected {
html /deep/ paper-tabs::shadow #selectionBar {
height: 2px;
}
html /deep/ paper-tabs::shadow .scroll-button > paper-icon-button {
vertical-align: middle;
color: rgba(0, 0, 0, 0.54);
}
/* paper-tab */
html /deep/ paper-tab::shadow .tab-content {
text-transform: uppercase;
line-height: 48px;
}
/* core-drawer-panel */
+5
View File
@@ -47,6 +47,11 @@ html /deep/ paper-tabs::shadow #selectionBar {
html /deep/ paper-tab::shadow #ink {
color: #64B5F6;
}
/* Set the paper tab scroll buttons so they don't cause the cursor to display as
as a pointer when they are disabled. */
html /deep/ paper-tabs::shadow .scroll-button .hidden {
pointer-events: none;
}
/* Set the drawer z-index so that it doesn't appear below plugin cards. */
core-drawer-panel::shadow #drawer {
z-index: 1;