Commit 539ededd authored by John Lee's avatar John Lee Committed by Commit Bot

PDF Viewer: Add rounded border to selected tab

https://imgur.com/a/OxpFoac

Change-Id: I07d79f0b682cf8da7ca1416a7882d34b560ee767
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2390963Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Commit-Queue: John Lee <johntlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#804329}
parent 3f85aed2
...@@ -27,18 +27,32 @@ ...@@ -27,18 +27,32 @@
} }
.button-wrapper { .button-wrapper {
--highlight-border-width: 4px;
align-items: center; align-items: center;
border-inline-start: var(--highlight-border-width) solid transparent;
display: flex; display: flex;
height: var(--cr-icon-button-size); height: var(--cr-icon-button-size);
justify-content: center;
margin: 6px 0; margin: 6px 0;
width: calc(100% - var(--highlight-border-width)); width: 100%;
} }
.button-wrapper.selected { .button-wrapper::before {
border-color: var(--sidenav-selected-tab-color); border-radius: 0 3px 3px 0;
content: '';
display: block;
height: 100%;
width: 4px;
}
.button-wrapper.selected::before {
background: var(--sidenav-selected-tab-color);
}
:host-context([dir=rtl]) .button-wrapper::before {
/* Border-radius based on block/inline is not yet supported. */
transform: scaleX(-1);
}
cr-icon-button {
margin: 0 auto;
} }
</style> </style>
<div id="icons" hidden$="[[!bookmarks.length]]"> <div id="icons" hidden$="[[!bookmarks.length]]">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment