2020-05-22 05:13:58 +00:00
|
|
|
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/floating_findbar_on_top.css made available under Mozilla Public License v. 2.0
|
|
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
|
2023-01-21 07:56:17 +00:00
|
|
|
/* This style makes findbar appear as floating box at the top-left of the content area.
|
|
|
|
* If you want the findbar on right side instead then create a new pref
|
|
|
|
* userchrome.floating-findbar-on-right.enabled and set it to true and restart Firefox
|
2023-01-21 07:25:38 +00:00
|
|
|
*
|
|
|
|
* Note that privacy.resistFingerprinting.letterboxing prevents this from working properly
|
|
|
|
*/
|
2021-04-28 17:33:52 +00:00
|
|
|
|
2018-12-27 16:41:09 +00:00
|
|
|
findbar{
|
2023-03-11 10:26:07 +00:00
|
|
|
-moz-box-ordinal-group: 0; /* Fx <112 compatibility */
|
|
|
|
order: -1;
|
2021-04-28 17:33:52 +00:00
|
|
|
margin-bottom: -33px;
|
2018-12-28 14:18:26 +00:00
|
|
|
position: relative;
|
|
|
|
border-top: none !important;
|
2021-04-28 17:33:52 +00:00
|
|
|
padding: 0 !important;
|
2018-12-27 17:07:12 +00:00
|
|
|
transition: transform 82ms linear, opacity 82ms linear 32ms !important;
|
2018-12-28 03:29:03 +00:00
|
|
|
background: none !important;
|
|
|
|
pointer-events: none;
|
2019-12-11 16:04:30 +00:00
|
|
|
z-index: 1;
|
2023-03-22 05:03:47 +00:00
|
|
|
white-space: nowrap;
|
2018-12-27 16:41:09 +00:00
|
|
|
}
|
2018-12-28 03:29:03 +00:00
|
|
|
|
2018-12-29 05:17:39 +00:00
|
|
|
.findbar-container > .findbar-find-fast{
|
2018-12-30 05:02:26 +00:00
|
|
|
padding: var(--toolbarbutton-inner-padding) 1px;
|
2018-12-29 05:17:39 +00:00
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
|
2018-12-28 03:29:03 +00:00
|
|
|
findbar[hidden]{ transform: translateY(-30px);}
|
|
|
|
|
|
|
|
findbar > .findbar-container,
|
|
|
|
findbar > .close-icon{
|
|
|
|
border: 1px solid var(--chrome-content-separator-color);
|
|
|
|
border-width: 0 0 1px 0px;
|
2018-12-29 05:16:30 +00:00
|
|
|
background: var(--uc-light-bkgnd-color,var(--toolbar-bgcolor)) !important;
|
2018-12-28 03:29:03 +00:00
|
|
|
pointer-events: auto;
|
|
|
|
}
|
2023-01-21 07:56:17 +00:00
|
|
|
|
2018-12-28 03:29:03 +00:00
|
|
|
findbar > .findbar-container{
|
2023-01-21 07:56:17 +00:00
|
|
|
border-bottom-right-radius: 4px;
|
|
|
|
border-right-width: 1px;
|
2022-11-15 21:38:42 +00:00
|
|
|
height: initial !important;
|
2023-01-21 07:56:17 +00:00
|
|
|
margin-inline: 0px !important;
|
2023-03-22 05:03:47 +00:00
|
|
|
overflow-inline: visible !important;
|
2018-12-28 03:29:03 +00:00
|
|
|
}
|
|
|
|
|
2021-11-06 10:10:00 +00:00
|
|
|
.findbar-find-status{
|
2023-03-11 10:26:07 +00:00
|
|
|
display: flex;
|
2021-11-06 10:10:00 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2023-03-11 10:26:07 +00:00
|
|
|
-moz-box-flex: 1; /* Fx <112 compatibility */
|
|
|
|
flex-grow: 1;
|
2021-11-06 10:10:00 +00:00
|
|
|
}
|
2023-01-21 07:56:17 +00:00
|
|
|
|
2021-11-06 10:10:00 +00:00
|
|
|
.findbar-closebutton{
|
|
|
|
margin: 0 !important;
|
|
|
|
border-radius: 0 !important;
|
|
|
|
padding: 5px !important;
|
2022-11-15 21:38:42 +00:00
|
|
|
width: initial !important;
|
2023-03-11 10:26:07 +00:00
|
|
|
-moz-box-ordinal-group: 0; /* Fx <112 compatibility */
|
|
|
|
order: -1;
|
2021-11-06 10:10:00 +00:00
|
|
|
}
|
2021-04-28 17:33:52 +00:00
|
|
|
.findbar-closebutton > image{ padding: 3px }
|
2021-11-06 10:10:00 +00:00
|
|
|
.findbar-closebutton:hover > image{
|
|
|
|
background: var(--toolbarbutton-hover-background) !important;
|
|
|
|
border-radius: 4px
|
|
|
|
}
|
2018-12-28 03:29:03 +00:00
|
|
|
findbar > .findbar-container > hbox{ margin: 0 5px }
|
2023-01-21 07:25:38 +00:00
|
|
|
|
2023-01-21 07:56:17 +00:00
|
|
|
findbar::after{
|
2018-12-28 03:29:03 +00:00
|
|
|
content:"";
|
2023-03-11 10:26:07 +00:00
|
|
|
display: flex;
|
|
|
|
-moz-box-flex: 100; /* Fx <112 compatibility */
|
|
|
|
flex-grow: 100;
|
2023-01-21 07:56:17 +00:00
|
|
|
}
|
2018-12-29 05:16:30 +00:00
|
|
|
|
2023-01-21 07:56:17 +00:00
|
|
|
@supports -moz-bool-pref("userchrome.floating-findbar-on-right.enabled"){
|
2023-01-21 07:25:38 +00:00
|
|
|
findbar{
|
2023-03-11 10:26:07 +00:00
|
|
|
-moz-box-direction: reverse; /* Fx <112 compatibility */
|
|
|
|
flex-direction: row-reverse;
|
2023-01-21 07:25:38 +00:00
|
|
|
}
|
|
|
|
findbar > .findbar-container{
|
2023-01-21 07:56:17 +00:00
|
|
|
-moz-box-direction: reverse;
|
2023-03-11 10:26:07 +00:00
|
|
|
flex-direction: row-reverse;
|
2023-01-21 07:56:17 +00:00
|
|
|
border-inline-width: 1px 0px;
|
|
|
|
border-bottom-right-radius: 0px;
|
|
|
|
border-bottom-left-radius: 4px;
|
2023-01-21 07:25:38 +00:00
|
|
|
}
|
|
|
|
/*
|
|
|
|
Move findbar so it isn't over the scrollbar
|
|
|
|
Delete if you want findbar to begin from right window edge
|
|
|
|
*/
|
|
|
|
findbar{
|
|
|
|
margin-right: 16px;
|
|
|
|
border-right: 1px solid var(--chrome-content-separator-color);
|
|
|
|
}
|
|
|
|
}
|