Merge pull request #14801 from Snuffleupagus/findbar-simplify-button-styling
[GENERIC viewer] Simplify the styling of the previous/next findbar buttons
This commit is contained in:
commit
c58ff7c301
@ -51,7 +51,6 @@
|
||||
--field-color: rgba(6, 6, 6, 1);
|
||||
--field-bg-color: rgba(255, 255, 255, 1);
|
||||
--field-border-color: rgba(187, 187, 188, 1);
|
||||
--findbar-nextprevious-btn-bg-color: rgba(227, 228, 230, 1);
|
||||
--treeitem-color: rgba(0, 0, 0, 0.8);
|
||||
--treeitem-hover-color: rgba(0, 0, 0, 0.9);
|
||||
--treeitem-selected-color: rgba(0, 0, 0, 0.9);
|
||||
@ -135,7 +134,6 @@
|
||||
--field-color: rgba(250, 250, 250, 1);
|
||||
--field-bg-color: rgba(64, 64, 68, 1);
|
||||
--field-border-color: rgba(115, 115, 115, 1);
|
||||
--findbar-nextprevious-btn-bg-color: rgba(89, 89, 89, 1);
|
||||
--treeitem-color: rgba(255, 255, 255, 0.8);
|
||||
--treeitem-hover-color: rgba(255, 255, 255, 0.9);
|
||||
--treeitem-selected-color: rgba(255, 255, 255, 0.9);
|
||||
@ -433,6 +431,9 @@ select {
|
||||
.findbar > div {
|
||||
height: 32px;
|
||||
}
|
||||
.findbar > div#findbarInputContainer {
|
||||
margin-inline-end: 4px;
|
||||
}
|
||||
.findbar.wrapContainers > div,
|
||||
.findbar.wrapContainers > div#findbarMessageContainer > * {
|
||||
clear: both;
|
||||
@ -441,30 +442,6 @@ select {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.findbar .splitToolbarButton {
|
||||
margin-top: 3px;
|
||||
margin-inline: 0 5px;
|
||||
}
|
||||
|
||||
.findbar .splitToolbarButton > .toolbarButton {
|
||||
background-color: var(--findbar-nextprevious-btn-bg-color);
|
||||
border-radius: 0;
|
||||
height: 26px;
|
||||
border-top: 1px solid var(--field-border-color);
|
||||
border-bottom: 1px solid var(--field-border-color);
|
||||
}
|
||||
|
||||
.findbar .splitToolbarButton > .toolbarButton::before {
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
.findbar .splitToolbarButton > .findNext {
|
||||
width: 29px;
|
||||
border-start-end-radius: 2px;
|
||||
border-end-end-radius: 2px;
|
||||
border-inline-end: 1px solid var(--field-border-color);
|
||||
}
|
||||
|
||||
.findbar input[type="checkbox"] {
|
||||
pointer-events: none;
|
||||
}
|
||||
@ -486,8 +463,6 @@ select {
|
||||
|
||||
#findInput {
|
||||
width: 200px;
|
||||
border-start-end-radius: 0;
|
||||
border-end-end-radius: 0;
|
||||
}
|
||||
#findInput::-webkit-input-placeholder {
|
||||
color: rgba(191, 191, 191, 1);
|
||||
@ -675,12 +650,6 @@ select {
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
.findbar .splitToolbarButtonSeparator {
|
||||
background-color: var(--field-border-color);
|
||||
margin: 0;
|
||||
padding: 13px 0;
|
||||
}
|
||||
|
||||
.toolbarButton,
|
||||
.dropdownToolbarButton,
|
||||
.secondaryToolbarButton,
|
||||
@ -830,11 +799,11 @@ select {
|
||||
transform: scaleX(var(--dir-factor));
|
||||
}
|
||||
|
||||
.toolbarButton.findPrevious::before {
|
||||
#findPrevious.toolbarButton::before {
|
||||
mask-image: var(--findbarButton-previous-icon);
|
||||
}
|
||||
|
||||
.toolbarButton.findNext::before {
|
||||
#findNext.toolbarButton::before {
|
||||
mask-image: var(--findbarButton-next-icon);
|
||||
}
|
||||
|
||||
|
@ -118,11 +118,11 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||
<div id="findbarInputContainer">
|
||||
<input id="findInput" class="toolbarField" title="Find" placeholder="Find in document…" tabindex="91" data-l10n-id="find_input" aria-invalid="false">
|
||||
<div class="splitToolbarButton">
|
||||
<button id="findPrevious" class="toolbarButton findPrevious" title="Find the previous occurrence of the phrase" tabindex="92" data-l10n-id="find_previous">
|
||||
<button id="findPrevious" class="toolbarButton" title="Find the previous occurrence of the phrase" tabindex="92" data-l10n-id="find_previous">
|
||||
<span data-l10n-id="find_previous_label">Previous</span>
|
||||
</button>
|
||||
<div class="splitToolbarButtonSeparator"></div>
|
||||
<button id="findNext" class="toolbarButton findNext" title="Find the next occurrence of the phrase" tabindex="93" data-l10n-id="find_next">
|
||||
<button id="findNext" class="toolbarButton" title="Find the next occurrence of the phrase" tabindex="93" data-l10n-id="find_next">
|
||||
<span data-l10n-id="find_next_label">Next</span>
|
||||
</button>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user