Tweak the UI of tabs
Standard gray text color for unselected tabs. Normal font-weight for focused tabs. Reduce the width of tabs from 15rem to 12em. Screenshots: https://imgur.com/a/X7YwFjF Change-Id: I65c05c24a6fa228ddd8d03d7b098c3301248ad9d
This commit is contained in:
@@ -235,7 +235,7 @@ limitations under the License.
|
|||||||
}
|
}
|
||||||
paper-tab {
|
paper-tab {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
max-width: 15rem;
|
max-width: 12em;
|
||||||
--paper-tab-ink: var(--link-color);
|
--paper-tab-ink: var(--link-color);
|
||||||
}
|
}
|
||||||
gr-thread-list,
|
gr-thread-list,
|
||||||
|
|||||||
@@ -123,6 +123,16 @@ limitations under the License.
|
|||||||
--paper-toggle-button-checked-bar-color: var(--link-color);
|
--paper-toggle-button-checked-bar-color: var(--link-color);
|
||||||
--paper-toggle-button-checked-button-color: var(--link-color);
|
--paper-toggle-button-checked-button-color: var(--link-color);
|
||||||
}
|
}
|
||||||
|
paper-tabs {
|
||||||
|
--paper-tab-content-focused: {
|
||||||
|
/* paper-tabs uses 700 here, which can look awkward */
|
||||||
|
font-weight: var(--font-weight-normal);
|
||||||
|
};
|
||||||
|
--paper-tab-content-unselected: {
|
||||||
|
/* paper-tabs uses 0.8 here, but we want to control the color directly */
|
||||||
|
opacity: 1;
|
||||||
|
color: var(--deemphasized-text-color);
|
||||||
|
}; }
|
||||||
strong {
|
strong {
|
||||||
font-weight: var(--font-weight-bold);
|
font-weight: var(--font-weight-bold);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user