tetra55

Untitled

Aug 16th, 2026 (edited)
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.67 KB | None | 0 0
  1. /* ── Variables ─────────────────────────────────────────────────────────── */
  2. :root {
  3. --findbar-border-radius: 8px;
  4. --findbar-separation: 4px;
  5. --findbar-offset: 12px;
  6. --uc-findbar-color: var(--toolbar-color, var(--arrowpanel-color, currentColor));
  7.  
  8. /* Crisp, defined outline for both light and dark backgrounds */
  9. --_fb-border: 1px solid light-dark(
  10. rgba(0, 0, 0, 0.22),
  11. rgba(255, 255, 255, 0.25)
  12. );
  13. --_fb-bg-color: var(--lwt-accent-color, var(--arrowpanel-background, -moz-Dialog));
  14. --_fb-bg-image: linear-gradient(var(--toolbar-bgcolor, transparent),
  15. var(--toolbar-bgcolor, transparent)),
  16. var(--toolbar-bgimage, none);
  17. }
  18.  
  19. /* ── Split-view checkbox visibility ────────────────────────────────────── */
  20. .split-view-panel .findbar-container > checkbox {
  21. display: inline-flex !important;
  22. }
  23.  
  24. /* ── Floating Overlay Grid Layout (Prevents Page Shift) ────────────────── */
  25. .browserContainer {
  26. display: grid !important;
  27. grid-template-rows: 0px 1fr !important;
  28. grid-template-columns: 1fr !important;
  29. }
  30.  
  31. .browserContainer > .browserStack {
  32. grid-row: 1 / -1 !important;
  33. grid-column: 1 !important;
  34. z-index: 1 !important;
  35. }
  36.  
  37. /* ── Findbar shell ─────────────────────────────────────────────────────── */
  38. findbar {
  39. grid-row: 1 !important;
  40. grid-column: 1 !important;
  41. z-index: 10000 !important;
  42. pointer-events: none;
  43.  
  44. /* Layout positioning & separation height */
  45. order: -1 !important;
  46. position: relative !important;
  47. height: calc(30px + var(--findbar-separation, 4px)) !important;
  48. padding-top: var(--findbar-separation, 4px) !important;
  49. padding-right: var(--findbar-offset, 11px) !important;
  50. padding-bottom: 0 !important;
  51. padding-left: 0 !important;
  52. margin: 0 !important;
  53.  
  54. /* Styling resets */
  55. border: none !important;
  56. transition: transform 100ms linear, opacity 100ms linear 50ms !important;
  57. background: transparent !important;
  58. background-image: none !important;
  59. white-space: nowrap;
  60. flex-direction: row !important;
  61. align-items: center !important;
  62. filter: drop-shadow(0 2px 6px light-dark(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.4)));
  63. }
  64.  
  65. findbar[hidden] {
  66. transform: translateY(-30px);
  67. opacity: 0;
  68. pointer-events: none;
  69. }
  70.  
  71. /* Spacer that pushes the bar elements to the right */
  72. findbar::after {
  73. content: "" !important;
  74. display: flex !important;
  75. flex-grow: 100 !important;
  76. }
  77.  
  78. /* ── Container + close button shared chrome ─────────────────────────────── */
  79. findbar .findbar-container,
  80. findbar .findbar-closebutton {
  81. border: var(--_fb-border) !important;
  82. background-color: var(--_fb-bg-color) !important;
  83. background-image: var(--_fb-bg-image) !important;
  84. color: var(--uc-findbar-color) !important;
  85. pointer-events: auto;
  86. box-sizing: border-box !important;
  87. height: 30px !important;
  88. }
  89.  
  90. /* ── Container specifics ────────────────────────────────────────────────── */
  91. findbar .findbar-container {
  92. border-width: 1px 0 1px 1px !important;
  93. border-radius: var(--findbar-border-radius) 0 0 var(--findbar-border-radius) !important;
  94. margin-inline: 0 !important;
  95. overflow-inline: visible !important;
  96. flex-direction: row !important;
  97. align-items: center !important;
  98. padding-inline: 4px !important;
  99. order: 1 !important;
  100. }
  101.  
  102. .findbar-container > .findbar-find-fast {
  103. padding: var(--toolbarbutton-inner-padding, 4px) 1px;
  104. margin: 0 !important;
  105. }
  106.  
  107. /* ── Close button specifics ─────────────────────────────────────── */
  108. findbar .findbar-closebutton {
  109. border-width: 1px 1px 1px 0 !important;
  110. border-radius: 0 var(--findbar-border-radius) var(--findbar-border-radius) 0 !important;
  111. margin: 0 !important;
  112. margin-inline-start: 0 !important;
  113. width: 28px !important;
  114. min-width: 28px !important;
  115. padding: 0 !important;
  116. order: 2 !important;
  117. display: inline-flex !important;
  118. align-items: center !important;
  119. justify-content: center !important;
  120. }
  121.  
  122. /* Keep bg stable on close-button hover */
  123. .findbar-closebutton:hover {
  124. background-color: var(--_fb-bg-color) !important;
  125. background-image: var(--_fb-bg-image) !important;
  126. }
  127.  
  128. /* ── Navigation buttons (prev / next) ───────────────────────────────────── */
  129. .findbar-find-previous,
  130. .findbar-find-next {
  131. width: 24px !important;
  132. min-width: 24px !important;
  133. height: 24px !important;
  134. margin: auto 1px !important;
  135. align-self: center !important;
  136. padding: 0 !important;
  137. }
  138.  
  139. .findbar-find-previous {
  140. order: 5 !important;
  141. margin-inline-start: 4px !important;
  142. }
  143.  
  144. .findbar-find-next {
  145. order: 6 !important;
  146. }
  147.  
  148. /* ── Button icon reset ── */
  149. .findbar-find-previous > image,
  150. .findbar-find-next > image {
  151. padding: 3px !important;
  152. margin: 0 !important;
  153. }
  154.  
  155. /* ── Ripple hover spotlight centering ── */
  156. .findbar-find-previous::after,
  157. .findbar-find-next::after {
  158. content: "" !important;
  159. position: absolute !important;
  160. width: 22px !important;
  161. height: 22px !important;
  162. top: 50% !important;
  163. left: calc(50% - 1px) !important;
  164. transform: translate(-50%, -50%) !important;
  165. border-radius: 50% !important;
  166. background: transparent !important;
  167. transition: background 150ms ease !important;
  168. pointer-events: none !important;
  169. }
  170.  
  171. /* Suppress default Firefox hover fill on prev/next */
  172. .findbar-find-previous:hover,
  173. .findbar-find-next:hover {
  174. background: transparent !important;
  175. }
  176.  
  177. /* ── Ripple hover layer (toolbarbuttons + close button) ─────────────────── */
  178. findbar toolbarbutton,
  179. findbar .findbar-closebutton {
  180. position: relative !important;
  181. }
  182.  
  183. findbar toolbarbutton::after,
  184. findbar .findbar-closebutton::after {
  185. content: "" !important;
  186. position: absolute !important;
  187. width: 22px !important;
  188. height: 22px !important;
  189. top: 50% !important;
  190. left: 50% !important;
  191. transform: translate(-50%, -50%) !important;
  192. border-radius: 50% !important;
  193. background: transparent !important;
  194. transition: background 150ms ease !important;
  195. pointer-events: none !important;
  196. }
  197.  
  198. findbar toolbarbutton:hover::after,
  199. findbar .findbar-closebutton:hover::after {
  200. background: var(--toolbarbutton-hover-background,
  201. color-mix(in srgb, currentColor 25%, transparent)) !important;
  202. }
  203.  
  204. /* ── Element Reordering & Layout Alignment ──────────────────────────────── */
  205. hbox[anonid="findbar-textbox-wrapper"],
  206. .findbar-textbox {
  207. order: 4 !important;
  208. height: 24px !important;
  209. min-height: 24px !important;
  210. max-height: 24px !important;
  211. margin-inline: 4px !important;
  212. margin-block: auto !important;
  213. border-radius: var(--findbar-border-radius) !important;
  214. box-sizing: border-box !important;
  215. }
  216.  
  217. /* ── Shared Match Count & Status Region ("X of Y" / "No results") ───────── */
  218. .findbar-label.found-matches,
  219. .findbar-find-status {
  220. order: 7 !important;
  221. display: inline-flex !important;
  222. align-items: center !important;
  223. justify-content: flex-start !important;
  224. width: 70px !important;
  225. min-width: 70px !important;
  226. max-width: 70px !important;
  227. height: 100% !important;
  228. font-size: 12px !important;
  229. font-weight: 400 !important;
  230. color: var(--uc-findbar-color) !important;
  231. white-space: nowrap !important;
  232. overflow: hidden !important;
  233. opacity: 0.85 !important;
  234. }
  235.  
  236. /* Hide native status element */
  237. .findbar-find-status {
  238. display: none !important;
  239. }
  240.  
  241. /* When matches are actively hidden (empty input), display "No results" via pseudo-element */
  242. .findbar-label.found-matches[hidden] {
  243. display: inline-flex !important;
  244. visibility: visible !important;
  245. font-size: 0 !important; /* Conceal default text node */
  246. }
  247.  
  248. .findbar-label.found-matches[hidden]::after {
  249. content: "No results" !important;
  250. font-size: 12px !important;
  251. font-weight: 400 !important;
  252. color: var(--uc-findbar-color) !important;
  253. opacity: 0.85 !important;
  254. }
  255.  
  256. .findbar-highlight { display: none !important; }
  257.  
  258. /* ── Toggle checkboxes (case / diacritics / whole-word) ─────────────────── */
  259. .findbar-case-sensitive { order: 1 !important; }
  260. .findbar-match-diacritics { order: 2 !important; }
  261. .findbar-entire-word { order: 3 !important; }
  262.  
  263. .findbar-case-sensitive > .checkbox-check,
  264. .findbar-case-sensitive > .checkbox-label-box,
  265. .findbar-match-diacritics > .checkbox-check,
  266. .findbar-match-diacritics > .checkbox-label-box,
  267. .findbar-entire-word > .checkbox-check,
  268. .findbar-entire-word > .checkbox-label-box {
  269. display: none !important;
  270. }
  271.  
  272. .findbar-case-sensitive,
  273. .findbar-match-diacritics,
  274. .findbar-entire-word {
  275. -moz-appearance: none !important;
  276. width: 28px !important;
  277. height: 26px !important;
  278. border: none !important;
  279. padding: 0 !important;
  280. margin: 0 2px !important;
  281. border-radius: 999px !important;
  282. position: relative !important;
  283. background-color: transparent !important;
  284. color: var(--uc-findbar-color) !important;
  285. }
  286.  
  287. .findbar-case-sensitive::before,
  288. .findbar-match-diacritics::before,
  289. .findbar-entire-word::before {
  290. content: "" !important;
  291. position: absolute !important;
  292. inset: 0 !important;
  293. background-color: currentColor !important;
  294. mask-size: 85% !important;
  295. mask-repeat: no-repeat;
  296. mask-position: center;
  297. }
  298.  
  299. .findbar-case-sensitive::before {
  300. mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='currentColor' d='m7.5 35 8.05 -22h2.65l8.1 22h-2.6l-2.15 -6.05H12.2L10.05 35H7.5Zm5.5 -8.25h7.75L16.9 15.9h-0.1L13 26.75Zm20.3 8.75c-1.7 0 -3.0917 -0.4333 -4.175 -1.3S27.5 32.1667 27.5 30.7c0 -1.5667 0.5917 -2.825 1.775 -3.775C30.4583 25.5 33 25.5 33.9 25.5c0.8667 0 1.675 0.075 2.425 0.225 0.75 0.15 1.3917 0.3583 1.925 0.625v-0.9c0 -1.2667 -0.3417 -2.2417 -1.025 -2.925 -0.6833 -0.6833 -1.675 -1.025 -2.975 -1.025 -0.7667 0 -1.4833 0.1333 -2.15 0.4 -0.6667 0.2667 -1.2833 0.6833 -1.85 1.25l-1.55 -1.4c0.8 -0.7667 1.6333 -1.3333 2.5 -1.7s1.8833 -0.55 3.05 -0.55c2.0667 0 3.625 0.5167 4.675 1.55 1.05 1.0333 1.575 2.5833 1.575 4.65V35h-2.2v-2.1h-0.2c-0.5333 0.8667 -1.2583 1.5167 -2.175 1.95 -0.9167 0.4333 -1.7917 0.65 -2.625 0.65Zm0 -1.9c1.2 0 2.3333 -0.5 3.4 -1.5s1.6 -2.2667 1.6 -3.8c-0.5333 -0.2667 -1.1667 -0.4833 -1.9 -0.65 -0.7333 -0.1667 -1.45 -0.25 -2.15 -0.25 -1.4 0 -2.4917 0.2917 -3.275 0.875 -0.7833 0.5833 -1.175 1.3917 -1.175 2.425 0 0.8667 0.3417 1.5667 1.025 2.1 0.6833 0.5333 1.5083 0.8 2.475 0.8Z'/></svg>");
  301. }
  302.  
  303. .findbar-match-diacritics::before {
  304. mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='currentColor' d='M22.03 33.3c-1.58 0 -2.84 -0.43 -3.8 -1.29 -1.06 -0.86 -1.43 -2.01 -1.43 -3.44 0 -1.58 0.56 -2.85 1.68 -3.82 1.12 -0.97 2.61 -1.46 4.48 -1.46 0.73 0 1.46 0.07 2.17 0.22 0.72 0.15 1.33 0.37 1.84 0.66v-1.1c0 -1.28 -0.35 -2.27 -1.05 -2.97 -0.7 -0.7 -1.69 -1.05 -2.97 -1.05 -0.81 0 -1.54 0.14 -2.2 0.41 -0.66 0.28 -1.28 0.69 -1.87 1.24l-1.6 -1.38c0.77 -0.81 1.61 -1.39 2.53 -1.76 0.92 -0.37 1.96 -0.55 3.14 -0.55 2.05 0 3.61 0.52 4.68 1.57 1.06 1.05 1.6 2.61 1.6 4.7v9.79h-2.2v-2.37h-0.22c-0.51 0.84 -1.17 1.49 -1.98 1.93 -0.81 0.44 -1.74 0.66 -2.81 0.66Zm0.5 -1.98c1.39 0 2.55 -0.5 3.47 -1.51 0.92 -1.01 1.38 -2.26 1.38 -3.77 -0.44 -0.29 -1.0 -0.51 -1.68 -0.66 -0.68 -0.15 -1.37 -0.22 -2.06 -0.22 -1.28 0 -2.3 0.29 -3.05 0.88 -0.75 0.59 -1.13 1.39 -1.13 2.42 0 0.88 0.28 1.58 0.83 2.09 0.55 0.51 1.3 0.77 2.24 0.77ZM25.7 16.25l-2.59 -5.12h-2.75l3.41 5.12H25.7Z'/></svg>");
  305. }
  306.  
  307. .findbar-entire-word::before {
  308. mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='currentColor' d='M2 38.0502v-9.5h3v6.5h38v-6.5h3v9.5H2Zm17.3 -8.1v-2.15h-0.2c-0.4667 0.7667 -1.0667 1.35 -1.8 1.75 -0.7333 0.4 -1.5833 0.6 -2.55 0.6 -1.4333 0 -2.5833 -0.3917 -3.45 -1.175 -0.8667 -0.7833 -1.3 -1.825 -1.3 -3.125 0 -1.4333 0.5083 -2.5917 1.525 -3.475 1.0167 -0.8833 2.375 -1.325 4.075 -1.325 0.6667 0 1.325 0.0667 1.975 0.2 0.65 0.1333 1.2083 0.3333 1.675 0.6v-1c0 -1.1667 -0.3167 -2.0667 -0.95 -2.7 -0.6333 -0.6333 -1.5333 -0.95 -2.7 -0.95 -0.7333 0 -1.4 0.125 -2 0.375 -0.6 0.25 -1.1667 0.625 -1.7 1.125l-1.45 -1.25c0.7 -0.7333 1.4667 -1.2667 2.3 -1.6 0.8333 -0.3333 1.7833 -0.5 2.85 -0.5 1.8667 0 3.2833 0.475 4.25 1.425 0.9667 0.95 1.45 2.375 1.45 4.275v8.9h-2Zm-3.4 -7.15c-1.1667 0 -2.0917 0.2667 -2.775 0.8 -0.6833 0.5333 -1.025 1.2667 -1.025 2.2 0 0.8 0.25 1.4333 0.75 1.9 0.5 0.4667 1.1833 0.7 2.05 0.7 1.2667 0 2.3167 -0.4583 3.15 -1.375 0.8333 -0.9167 1.25 -2.0583 1.25 -3.425 -0.4 -0.2667 -0.9083 -0.4667 -1.525 -0.6 -0.6167 -0.1333 -1.2417 -0.2 -1.875 -0.2Zm9.25 7.15v-20h2v6.65l-0.15 2h0.1c0.4333 -0.6667 1.0833 -1.2167 1.95 -1.65s1.8 -0.65 2.8 -0.65c1.7 0 3.1583 0.65 4.375 1.95 1.2167 1.3 1.825 2.95 1.825 4.95s-0.6 3.6583 -1.8 4.975c-1.2 1.3167 -2.6667 1.975 -4.4 1.975 -0.9667 0 -1.8583 -0.2 -2.675 -0.6 -0.8167 -0.4 -1.4583 -0.9333 -1.925 -1.6h-0.1v2h-2Zm6.3 -11.85c-1.2667 0 -2.325 0.4917 -3.175 1.475 -0.85 0.9833 -1.275 2.2083 -1.275 3.675s0.425 2.675 1.275 3.625c0.85 0.95 1.9083 1.425 3.175 1.425 1.2667 0 2.3333 -0.4833 3.2 -1.45 0.8667 -0.9667 1.3 -2.1833 1.3 -3.65s-0.4333 -2.6833 -1.3 -3.65c-0.8667 -0.9667 -1.9333 -1.45 -3.2 -1.45Z'/></svg>");
  309. }
  310.  
  311. .findbar-case-sensitive::after,
  312. .findbar-match-diacritics::after,
  313. .findbar-entire-word::after {
  314. content: "" !important;
  315. position: absolute !important;
  316. inset: 0 !important;
  317. border-radius: 999px !important;
  318. background: transparent;
  319. transition: background 150ms ease;
  320. pointer-events: none !important;
  321. }
  322.  
  323. .findbar-case-sensitive:hover::after,
  324. .findbar-match-diacritics:hover::after,
  325. .findbar-entire-word:hover::after {
  326. background: var(--toolbarbutton-hover-background,
  327. color-mix(in srgb, currentColor 25%, transparent)) !important;
  328. }
  329.  
  330. .findbar-case-sensitive[checked],
  331. .findbar-match-diacritics[checked],
  332. .findbar-entire-word[checked] {
  333. background-color: color-mix(in srgb, var(--uc-findbar-color) 25%, transparent) !important;
  334. outline: 1px solid color-mix(in srgb, var(--uc-findbar-color) 50%, transparent) !important;
  335. color: var(--uc-findbar-color) !important;
  336. }
Advertisement
Add Comment
Please, Sign In to add comment