Advertisement
vcxzokz

Firefox main content window issue.

Nov 4th, 2024
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.24 KB | None | 0 0
  1. /* GLOBAL SETTING */
  2.  
  3. /* Fonts */
  4.  
  5. * {
  6. font-family: monospace !important;
  7. }
  8.  
  9. /*------------------------------------------------*/
  10. /* Background Color */
  11.  
  12.  
  13.  
  14. @media (prefers-color-scheme: dark) {
  15. #navigator-toolbox,
  16. #sidebar-box,
  17. #tabbrowser-tabbox,
  18. #tabbrowser-tabpanels,
  19. #browser,
  20. #appcontent,
  21. #sidebar-select-box,
  22. .browser-sidebar2,
  23. tab.tabbrowser-tab *{
  24. background-color: #1a1a1a !important;
  25. }
  26.  
  27. }
  28. @media (prefers-color-scheme: light) {
  29. #navigator-toolbox,
  30. #sidebar-box,
  31. #tabbrowser-tabbox,
  32. #tabbrowser-tabpanels,
  33. #browser,
  34. #appcontent,
  35. #sidebar-select-box,
  36. .browser-sidebar2,
  37. tab.tabbrowser-tab *{
  38. background-color: #e6e6e6 !important;
  39. }
  40. }
  41.  
  42. @media (prefers-color-scheme: dark) {
  43. #navigator-toolbox {
  44. background: #1a1a1a !important;
  45. }
  46. }
  47.  
  48. @media (prefers-color-scheme: light) {
  49. #navigator-toolbox {
  50. background: #e6e6e6 !important;
  51. }
  52. }
  53.  
  54. #PersonalToolbar,
  55. #nav-bar {
  56. background: transparent !important;
  57. }
  58.  
  59. /*============================================================================================*/
  60. /* NAV BAR */
  61.  
  62. /* Auto hide icons on the Nav Bar */
  63. #nav-bar > #nav-bar-customization-target *:not(#urlbar-container):not(#urlbar-container *),
  64. #PanelUI-button {
  65. opacity: 0 !important;
  66. transition: opacity 0.7s ease !important;
  67. }
  68.  
  69. #nav-bar:hover > #nav-bar-customization-target *:not(#urlbar-container):not(#urlbar-container *),
  70. #nav-bar:hover > #PanelUI-button {
  71. opacity: 1 !important;
  72. transition: opacity 0.3s ease !important;
  73. }
  74.  
  75. /*------------------------------------------------*/
  76. /* Remove line between website content and top bar */
  77.  
  78. #navigator-toolbox {
  79. border-bottom: var(--firefoxcss-top-bar-border-bottom-size) solid
  80. var(--firefoxcss-top-bar-border-bottom-color) !important;
  81. }
  82.  
  83. /*------------------------------------------------*/
  84. /* Remove the all tab and new tab button */
  85. #alltabs-button,
  86. #tabs-newtab-button {
  87. display: none !important;
  88. }
  89.  
  90. /*------------------------------------------------*/
  91. /* Remove the 3 dots from Alt Key */
  92.  
  93. #titlebar #toolbar-menubar .titlebar-buttonbox-container{
  94. display: none !important;
  95. }
  96.  
  97. /*------------------------------------------------*/
  98. /* Move menu buttons to the left side */
  99.  
  100. #nav-bar #PanelUI-button #PanelUI-menu-button {
  101. padding-right: 2px !important;
  102. padding-left: 4px !important;
  103. }
  104.  
  105. #nav-bar #PanelUI-button {
  106. -moz-box-ordinal-group: 0 !important;
  107. order: 0 !important;
  108. }
  109.  
  110. toolbar:not([customizing]) > #nav-bar-overflow-button {
  111. -moz-box-ordinal-group: 1 !important;
  112. order: 1 !important;
  113. }
  114.  
  115. toolbar:not([customizing]) > #nav-bar-customization-target {
  116. -moz-box-ordinal-group: 2 !important;
  117. order: 2 !important;
  118. }
  119.  
  120. #appMenu-popup {
  121. margin-inline: -244px !important;
  122. }
  123.  
  124. #widget-overflow {
  125. margin-inline: -320px !important;
  126. }
  127.  
  128. /*------------------------------------------------*/
  129. /* Macos Style window buttons */
  130.  
  131. :root {
  132. --firefoxcss-control-buttons-margin: 95px;
  133. }
  134.  
  135. #navigator-toolbox #nav-bar {
  136. padding-right: calc(var(--firefoxcss-control-buttons-margin) - 10px) !important;
  137. }
  138.  
  139. #navigator-toolbox:not([inFullscreen])
  140. #TabsToolbar
  141. .titlebar-buttonbox-container {
  142. visibility: visible !important;
  143. display: flex !important;
  144. position: absolute !important;
  145. top: 2px !important;
  146. left: unset !important;
  147. right: 0 !important;
  148. padding-top: 10px !important;
  149. padding-bottom: 2px !important;
  150. padding-right: 8px !important;
  151. padding-left: 2px !important;
  152. }
  153.  
  154. #TabsToolbar .titlebar-buttonbox-container .titlebar-button {
  155. width: 14px !important;
  156. min-width: 14px !important;
  157. min-height: 14px !important;
  158. height: 14px !important;
  159. }
  160.  
  161. #navigator-toolbox[inFullscreen] #TabsToolbar .titlebar-buttonbox-container{
  162. padding-top:4px !important;
  163. padding-bottom: 4px !important;
  164. padding-right: 8px !important;
  165. padding-left: 4px !important;
  166. margin: 0 !important;
  167. align-items: center !important;
  168. }
  169.  
  170. :root:-moz-window-inactive:not([customizing])
  171. :is(.titlebar-buttonbox)
  172. > toolbarbutton:not(:hover) {
  173. opacity: 0.65 !important;
  174. }
  175.  
  176. :is(.titlebar-buttonbox) .toolbarbutton-icon {
  177. opacity: 1 !important;
  178. appearance: none !important;
  179. }
  180.  
  181. #TabsToolbar .titlebar-button > .toolbarbutton-icon {
  182. width: 14px !important;
  183. min-width: 14px !important;
  184. min-height: 14px !important;
  185. height: 14px !important;
  186. stroke: none !important;
  187. }
  188.  
  189. #TabsToolbar .titlebar-buttonbox {
  190. margin-right: 2px !important;
  191. margin-left: 0px !important;
  192. }
  193.  
  194. #TabsToolbar .titlebar-button {
  195. background-color: transparent !important;
  196. appearance: none !important;
  197. padding: 0px !important;
  198. margin: 0 !important;
  199. padding-left: 0px !important;
  200. padding-right: 0px !important;
  201. }
  202.  
  203. #TabsToolbar .titlebar-close {
  204. appearance: none !important;
  205. -moz-box-ordinal-group: 2 !important;
  206. order:2 !important;
  207. }
  208.  
  209. #TabsToolbar .titlebar-min {
  210. appearance: none !important;
  211. -moz-box-ordinal-group: 0 !important;
  212. order:0 !important;
  213. }
  214.  
  215. #TabsToolbar .titlebar-max,
  216. #TabsToolbar .titlebar-restore {
  217. appearance: none !important;
  218. -moz-box-ordinal-group: 1 !important;
  219. order:1!important;
  220. }
  221.  
  222. #TabsToolbar .titlebar-buttonbox-container:not(:hover) .titlebar-buttonbox .titlebar-button {
  223. background-color: hsla(0, 0%, 65%, 1) !important;
  224. transition: background-color 400ms ease 400ms !important;
  225. }
  226.  
  227. #TabsToolbar .titlebar-buttonbox-container .titlebar-button > .toolbarbutton-icon {
  228. list-style-image: none !important;
  229. margin: 0px !important;
  230. padding: 0px !important;
  231. }
  232.  
  233. #TabsToolbar .titlebar-buttonbox-container .titlebar-buttonbox .titlebar-button {
  234. border-radius: 50% !important;
  235. margin-left: 8px !important;
  236. position: relative !important;
  237. }
  238.  
  239. #TabsToolbar .titlebar-buttonbox-container .titlebar-min{
  240. background-color: #fac536 !important;
  241. overflow: hidden !important;
  242. transition: background-color 200ms ease !important;
  243. }
  244.  
  245. #TabsToolbar .titlebar-buttonbox-container .titlebar-min::before{
  246. content: '';
  247. position: absolute;
  248. top: 100%;
  249. left: 50%;
  250. transform: translate(-50%, -50%);
  251. width: 70%;
  252. height: 2px;
  253. opacity: 0;
  254. background: rgba(0, 0, 0, 0.6);
  255. border-radius: 2px;
  256. transition: 200ms;
  257. }
  258.  
  259. #TabsToolbar .titlebar-buttonbox-container .titlebar-min:hover::before{
  260. opacity: 1;
  261. top: 50%;
  262. }
  263.  
  264. #TabsToolbar .titlebar-buttonbox-container .titlebar-max,
  265. #TabsToolbar .titlebar-buttonbox-container .titlebar-restore{
  266. background: #39ea49 !important;
  267. overflow: hidden !important;
  268. transition: background-color 200ms ease !important;
  269. }
  270. #TabsToolbar .titlebar-buttonbox-container .titlebar-max::before{
  271. content: '';
  272. position: absolute;
  273. top: 100%;
  274. left: 50%;
  275. transform: translate(-50%, -50%);
  276. width: 55%;
  277. height: 55%;
  278. opacity: 0;
  279. background: rgba(0, 0, 0, 0.6);
  280. border-radius: 2px;
  281. transition: 200ms;
  282. }
  283. #TabsToolbar .titlebar-buttonbox-container .titlebar-max::after{
  284. content: '';
  285. position: absolute;
  286. top: 100%;
  287. left: 50%;
  288. transform: translate(-50%, -50%) rotate(-45deg);
  289. width: 3px;
  290. height: 80%;
  291. opacity: 0;
  292. background: #39ea49;
  293. transition: 200ms;
  294. }
  295. #TabsToolbar .titlebar-buttonbox-container .titlebar-max:hover::before,
  296. #TabsToolbar .titlebar-buttonbox-container .titlebar-max:hover::after{
  297. opacity: 1;
  298. top: 50%;
  299. }
  300. #TabsToolbar .titlebar-buttonbox-container .titlebar-close{
  301. background: #f25056 !important;
  302. overflow: hidden !important;
  303. transition: background-color 200ms ease !important;
  304. }
  305. #TabsToolbar .titlebar-buttonbox-container .titlebar-close::before{
  306. content: '';
  307. position: absolute;
  308. top: 100%;
  309. left: 50%;
  310. transform: translate(-50%, -50%) rotate(-45deg);
  311. width: 2px;
  312. height: 9px;
  313. opacity: 0;
  314. background: rgba(0, 0, 0, 0.65);
  315. border-radius: 1px;
  316. transition: 200ms;
  317. }
  318. #TabsToolbar .titlebar-buttonbox-container .titlebar-close::after{
  319. content: '';
  320. position: absolute;
  321. top: 100%;
  322. left: 50%;
  323. transform: translate(-50%, -50%) rotate(45deg);
  324. width: 2px;
  325. height: 9px;
  326. opacity: 0;
  327. background: rgba(0, 0, 0, 0.65);
  328. border-radius: 1px;
  329. transition: 200ms;
  330.  
  331. }
  332. #TabsToolbar .titlebar-buttonbox-container .titlebar-close:hover::before,
  333. #TabsToolbar .titlebar-buttonbox-container .titlebar-close:hover::after{
  334. opacity: 1;
  335. top: 50%;
  336. }
  337.  
  338. #TabsToolbar .titlebar-buttonbox-container .titlebar-restore:before {
  339. content: '';
  340. position: absolute;
  341. top: 100%;
  342. left: 50%;
  343. transform: translate(-50%, -50%);
  344. width: 8px;
  345. height: 8px;
  346. opacity: 0;
  347. background: rgba(0, 0, 0, 0.65);
  348. border-radius: 2px;
  349. transition:200ms;
  350. }
  351.  
  352. #TabsToolbar .titlebar-buttonbox-container .titlebar-restore:after{
  353. content: '';
  354. position: absolute;
  355. top: 100%;
  356. left: 50%;
  357. transform: translate(-50%, -50%);
  358. width: 4px;
  359. height: 4px;
  360. opacity: 0;
  361. background: #39ea49;
  362. border-radius: 0px;
  363. transition: 200ms;
  364. }
  365.  
  366. #TabsToolbar .titlebar-buttonbox-container .titlebar-restore:hover::before,
  367. #TabsToolbar .titlebar-buttonbox-container .titlebar-restore:hover::after{
  368. opacity: 1;
  369. top: 50%;
  370. }
  371.  
  372. #navigator-toolbox #TabsToolbar .titlebar-buttonbox-container {
  373. -moz-box-ordinal-group: 1 !important;
  374. }
  375. #navigator-toolbox[inFullscreen] #navigator-toolbox #TabsToolbar .titlebar-buttonbox-container {
  376. -moz-box-ordinal-group: 1 !important;
  377. }
  378.  
  379. @media only screen and (max-width: 370px) {
  380. #main-window #navigator-toolbox:not([inFullscreen])
  381. #TabsToolbar
  382. .titlebar-buttonbox-container {
  383. visibility: visible !important;
  384. position: relative !important;
  385. padding-top: 4px !important;
  386. padding-bottom: 2px !important;
  387. padding-right: 8px !important;
  388. padding-left: 2px !important;
  389. }
  390.  
  391. #main-window #navigator-toolbox:not([inFullscreen]) #nav-bar {
  392. padding-right: initial !important;
  393. }
  394. }
  395.  
  396. /*------------------------------------------------*/
  397. /* Make Tab Bar join with URL Bar on the left */
  398.  
  399. :root {
  400. --tab-border-radius: 3px !important;
  401. --NavbarWidth: 2;
  402. --TabsHeight: 36;
  403. --TabsBorder: 8;
  404. --NavbarHeightSmall: calc(var(--TabsHeight) + var(--TabsBorder))
  405. }
  406.  
  407. #nav-bar {
  408. margin-top:calc(var(--TabsHeight) * -1px - var(--TabsBorder) * 1px)!important;
  409. height: calc((var(--TabsHeight) * 1px + var(--TabsBorder) * 1px) + 0px)
  410. }
  411.  
  412.  
  413.  
  414. #nav-bar {
  415. margin-left: 35px !important;
  416. }
  417.  
  418. #urlbar-container {
  419. min-width: 0px !important;
  420. flex: auto !important;
  421. }
  422.  
  423.  
  424. @media screen and (max-width:100px) {
  425. #TabsToolbar {
  426. margin-right: 0 !important;
  427. }
  428. #nav-bar {
  429. margin-left: 0 !important;
  430. }
  431. }
  432.  
  433. /* Fix for Firefox 123 */
  434. #nav-bar:not([tabs-hidden="true"])
  435. {
  436. position: static !important;;
  437. }
  438.  
  439. #nav-bar-customization-target,
  440. #PanelUI-button {
  441. position: relative !important;
  442. z-index: 3 !important;
  443. }
  444.  
  445. /*------------------------------------------------*/
  446. /* Make active tab to hidden tab */
  447.  
  448. tab:not([selected="true"]),
  449. [part="overflow-start-indicator"],
  450. [part="overflow-end-indicator"],
  451. #scrollbutton-up,
  452. #scrollbutton-down,
  453. #TabsToolbar .titlebar-spacer,
  454. .tabbrowser-tab[selected="true"] .tab-text,
  455. .tabbrowser-tab[selected="true"] .tab-close-button,
  456. .tab-line,
  457. .tab-throbber {
  458. display: none !important;
  459. }
  460.  
  461. .tabbrowser-tab[selected="true"] {
  462. min-width: 37px !important;
  463. max-width: 37px !important;
  464. }
  465.  
  466. tab,
  467. .tabbrowser-tab {
  468. padding-left: 0 !important;
  469. margin-left: 0 !important;
  470. }
  471.  
  472. .tab-background {
  473. outline: none !important;
  474. box-shadow: none !important;
  475. }
  476.  
  477. .tab-icon-image {
  478. height: 32px !important;
  479. width: 32px !important;
  480. border-radius: 10px !important;
  481. }
  482.  
  483. @media (prefers-color-scheme: dark) {
  484. .tab-icon-image {
  485. content: url('dark.png') !important;
  486. }
  487. }
  488.  
  489. @media (prefers-color-scheme: light) {
  490. .tab-icon-image {
  491. content: url('light.png') !important;
  492. }
  493. }
  494.  
  495.  
  496. /*------------------------------------------------*/
  497. /* Hide all buttons in active tab context menu except for split tab and extensions */
  498.  
  499. #main-window #context_openANewTab,
  500. #main-window #context_reloadTab,
  501. #main-window #context_toggleMuteTab,
  502. #main-window #context_playTab,
  503. #main-window #context_pinTab,
  504. #main-window #context_duplicateTab,
  505. #main-window #context_bookmarkTab,
  506. #main-window #context_moveTabOptions,
  507. #main-window #context_reopenInContainer,
  508. #main-window #context_toggleToPrivateContainer,
  509. #main-window #context_selectAllTabs,
  510. #main-window #context_closeTab,
  511. #main-window #context_closeTabOptions,
  512. #main-window #context_undoCloseTab,
  513. #context_MoveTabToOtherWorkspace,
  514. #main-window #tabContextMenu menuseparator {
  515. display: none !important;
  516. }
  517.  
  518.  
  519.  
  520. /*============================================================================================*/
  521. /* EXTENSION */
  522.  
  523. /* Make extensions looks minimal */
  524.  
  525. #unified-extensions-view #unified-extensions-manage-extensions .toolbarbutton-text::before {
  526. content: "• • •";
  527. font-size: 15px;
  528. visibility: visible !important;
  529. display: block;
  530. text-align: center;
  531. }
  532.  
  533. #unified-extensions-panel #unified-extensions-view {
  534. width: 100% !important;
  535. }
  536.  
  537. #unified-extensions-view{
  538. --uei-icon-size: 22px;
  539. --firefoxcss-number-of-extensions-in-a-row: 4;
  540. }
  541.  
  542.  
  543. #unified-extensions-view .unified-extensions-item-menu-button.subviewbutton,
  544. #unified-extensions-view .unified-extensions-item-action-button .unified-extensions-item-contents{
  545. display:none !important;
  546. }
  547.  
  548. #unified-extensions-view .panel-subview-body {
  549. padding: 10px !important;
  550. }
  551.  
  552. #unified-extensions-view .unified-extensions-item .unified-extensions-item-icon,
  553. #unified-extensions-view .unified-extensions-item .toolbarbutton-badge-stack {
  554. margin-inline-end: 0px !important;
  555. }
  556.  
  557. #unified-extensions-view #overflowed-extensions-list,
  558. #unified-extensions-view #unified-extensions-area,
  559. #unified-extensions-view .unified-extensions-list {
  560. display: grid !important;
  561. grid-template-columns: repeat(var(--firefoxcss-number-of-extensions-in-a-row),auto);
  562. justify-items:left !important;
  563. align-items:left !important;
  564. }
  565.  
  566.  
  567.  
  568. /*============================================================================================*/
  569. /* URL BAR */
  570.  
  571. /* Make text in URL bar in the center */
  572.  
  573. #nav-bar {
  574. display: flex;
  575. justify-content: center;
  576. }
  577.  
  578. #urlbar-container {
  579. flex: 1;
  580. max-width: 1000px;
  581. min-width: 200px;
  582. margin: auto !important;
  583. }
  584.  
  585. #main-window #urlbar {
  586. z-index: 9999 !important;
  587. width: 100% !important;
  588. margin-top: 0 !important;
  589. margin-left: 0 !important;
  590. margin-right: 0 !important;
  591. transition: width 0.3s ease, left 0.3s ease, margin-top 0.3s ease, margin-left 0.3s ease, margin-right 0.3s ease;
  592. }
  593.  
  594. #main-window #urlbar[breakout][breakout-extend] {
  595. opacity: 0.97 !important;
  596. width: 150% !important;
  597. left: 0;
  598. right: 0;
  599. margin-left: auto !important;
  600. margin-right: auto !important;
  601. margin-top: 30vh !important;
  602. transition: width 0.3s ease, left 0.3s ease, margin-top 0.3s ease, margin-left 0.3s ease, margin-right 0.3s ease;
  603. }
  604.  
  605. #urlbar-background,
  606. #urlbar-input-container {
  607. --toolbarbutton-border-radius: calc(var(--urlbar-min-height) / 2);
  608. }
  609.  
  610. #urlbar-input-container {
  611. --urlbar-icon-border-radius: calc(var(--toolbarbutton-border-radius) - 1px);
  612. }
  613.  
  614. #urlbar:not([focused]) #urlbar-input {
  615. text-align: center !important;
  616. }
  617.  
  618. #urlbar:not([breakout][breakout-extend]) #urlbar-input {
  619. text-align: center !important;
  620. }
  621.  
  622. /*------------------------------------------------*/
  623. /* Change URL Bar background color */
  624. @media (prefers-color-scheme: dark) {
  625. #urlbar-background {
  626. background-color: #2a2a2a !important;
  627. }
  628. }
  629.  
  630. @media (prefers-color-scheme: light) {
  631. #urlbar-background {
  632. background-color: #d6d6d6 !important;
  633. }
  634. }
  635.  
  636. @media (prefers-color-scheme: dark) {
  637. #urlbar-results > *[selected=""] {
  638. background-color: #424242 !important;
  639. }
  640. }
  641.  
  642. @media (prefers-color-scheme: light) {
  643. #urlbar-results > *[selected=""] {
  644. background-color: #e8e8e8 !important;
  645. }
  646. }
  647.  
  648.  
  649. /*------------------------------------------------*/
  650. /* Hide and Hover icons in URL Bar */
  651.  
  652. #nav-bar:not([customizing="true"]):not(.searchButton)
  653. > #nav-bar-customization-target
  654. > #urlbar-container:not(:hover)
  655. > #urlbar:not([focused])
  656. > #urlbar-input-container
  657. > #page-action-buttons
  658. .urlbar-page-action {
  659. opacity: 0;
  660. transition-delay: 500ms;
  661. }
  662.  
  663. #nav-bar:not([customizing="true"]):not(.searchButton)
  664. > #nav-bar-customization-target
  665. > #urlbar-container:not(:hover)
  666. > #urlbar:not([focused])
  667. > #urlbar-input-container
  668. > #identity-box
  669. > #identity-permission-box:not([open]) {
  670. opacity: 0;
  671. transition-delay: 500ms;
  672. }
  673.  
  674. #page-action-buttons .urlbar-page-action,
  675. #identity-permission-box,
  676. #notification-popup-box .notification-anchor-icon {
  677. transition: opacity 0.2s ease;
  678. }
  679.  
  680. #urlbar #identity-icon-box,
  681. #urlbar #identity-permission-box {
  682. opacity: 0 !important;
  683. margin-inline-start: calc(-16px - 2 * var(--urlbar-icon-padding));
  684. transition: margin-inline-start 100ms linear, opacity 200ms linear;
  685. }
  686.  
  687. #urlbar #identity-box.notSecureText #identity-icon-box {
  688. margin-inline-start: initial !important;
  689. opacity: 1 !important;
  690. color: #e36f6f !important;
  691. }
  692.  
  693. #urlbar #identity-box.extensionPage #identity-icon-box {
  694. margin-inline-start: initial !important;
  695. opacity: 1 !important;
  696. }
  697.  
  698. #identity-box:hover #identity-icon-box,
  699. #identity-box:hover #identity-permission-box,
  700. #identity-box #identity-permission-box[open="true"] {
  701. opacity: 1 !important;
  702. margin-inline-start: initial !important;
  703. }
  704.  
  705. #urlbar-input-container .urlbar-input-box {
  706. padding-inline-start: 2px !important;
  707. }
  708.  
  709. #identity-box:hover ~ .urlbar-input-box > #urlbar-input {
  710. mask-image: linear-gradient(to right, transparent, black 3ch) !important;
  711. }
  712.  
  713. #page-action-buttons {
  714. padding-inline-start: 8px;
  715. }
  716.  
  717. #page-action-buttons .urlbar-page-action {
  718. margin-inline-end: calc(-16px - 2 * var(--urlbar-icon-padding));
  719. opacity: 0;
  720. transition: margin-inline-end 100ms linear, opacity 200ms linear;
  721. }
  722.  
  723. #page-action-buttons:hover > .urlbar-page-action,
  724. .urlbar-page-action[open],
  725. .urlbar-page-action[open] ~ .urlbar-page-action {
  726. opacity: 1;
  727. margin-inline-end: 0px !important;
  728. }
  729.  
  730. #identity-box.chromeUI #identity-icon-box {
  731. opacity: 1 !important;
  732. margin-inline-start: initial;
  733. }
  734.  
  735. #identity-box.chromeUI::after,
  736. #identity-box.chromeUI:hover::after {
  737. opacity: 0 !important;
  738. }
  739.  
  740. #page-action-buttons:not(:hover) #translations-button[translationsactive="true"]:not([open]) {
  741. visibility:collapse !important;
  742. }
  743.  
  744.  
  745. /*------------------------------------------------*/
  746. /* Create visual dots on both sides */
  747. #identity-box::after,
  748. #page-action-buttons::before {
  749. position: relative;
  750. content: "•••";
  751. pointer-events: none;
  752. transition: opacity 100ms ease;
  753. align-self: center;
  754. font-size: 0.7em;
  755. }
  756.  
  757. #identity-box::after,
  758. #page-action-buttons::before {
  759. opacity: 0.2;
  760. }
  761.  
  762. #identity-box::after {
  763. transform: rotate(90deg);
  764. left: 4px;
  765. }
  766.  
  767. #page-action-buttons::before {
  768. transform: rotate(-90deg);
  769. right: 4px;
  770. }
  771.  
  772. #identity-box:hover::after,
  773. #page-action-buttons:hover::before {
  774. opacity: 0.2 !important;
  775. transition: opacity 50ms ease;
  776. pointer-events: none;
  777. }
  778.  
  779. #identity-box[pageproxystate="invalid"]::after,
  780. #urlbar-input-container[pageproxystate="invalid"]
  781. > #page-action-buttons::before {
  782. opacity: 0 !important;
  783. transition: opacity 50ms ease;
  784. }
  785.  
  786. /* Linux changes for visual dots */
  787. @media (-moz-platform: linux) {
  788. #identity-box::after,
  789. #page-action-buttons::before {
  790. content: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F><svg fill="%23FFFFFF" width="11px" height="11px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M20.25 16c0 2.347-1.903 4.25-4.25 4.25s-4.25-1.903-4.25-4.25c0-2.347 1.903-4.25 4.25-4.25s4.25 1.903 4.25 4.25zM20.25 27c0 2.347-1.903 4.25-4.25 4.25s-4.25-1.903-4.25-4.25c0-2.347 1.903-4.25 4.25-4.25s4.25 1.903 4.25 4.25zM20.25 5c0 2.347-1.903 4.25-4.25 4.25s-4.25-1.903-4.25-4.25c0-2.347 1.903-4.25 4.25-4.25s4.25 1.903 4.25 4.25z"></path></svg>');
  791. transform: none;
  792. font-size: unset;
  793. }
  794.  
  795. #page-action-buttons::before {
  796. right: 2px;
  797. }
  798.  
  799. #identity-box::after {
  800. left: 2px;
  801. }
  802. }
  803.  
  804. #identity-box[pageproxystate="valid"].notSecureText > .identity-box-button,
  805. #identity-box[pageproxystate="valid"].extensionPage > .identity-box-button,
  806. #identity-box[pageproxystate="valid"].chromeUI > .identity-box-button,
  807. #urlbar-label-box,
  808. #urlbar-zoom-button {
  809. background-color: var(--firefoxcss-item-bg-color) !important;
  810. }
  811.  
  812. #urlbar-zoom-button:hover {
  813. background-color: var(--firefoxcss-urlbar-zoom-button) !important;
  814. }
  815.  
  816. #urlbar-input-container #identity-box > .identity-box-button,
  817. #tracking-protection-icon-container,
  818. #urlbar-go-button,
  819. #page-action-buttons .urlbar-page-action,
  820. #notification-popup-box {
  821. border-radius: 8px !important;
  822. }
  823.  
  824. #urlbar-go-button,
  825. #tracking-protection-icon-container
  826. {
  827. display: none !important;
  828. }
  829.  
  830.  
  831.  
  832. /*============================================================================================*/
  833. /* BOOKMARK BAR */
  834.  
  835. /* Variables for toolbar & bookmark attributes */
  836. :root {
  837. --bm-height: 24px;
  838. --bm-padding: 6px;
  839. }
  840.  
  841. /* Style for Personal Toolbar */
  842. #PersonalToolbar {
  843. position: relative !important;
  844. padding: 1px 6px !important;
  845. }
  846.  
  847. /* Additional padding for touch density */
  848. :root[uidensity="touch"] #PersonalToolbar {
  849. --bm-padding: 6px;
  850. }
  851.  
  852. /* Transform and delay transition of Personal Toolbar */
  853. #PersonalToolbar:not([customizing]) {
  854. margin-bottom: calc(2px - var(--bm-height) - 2 * var(--bm-padding)) !important;
  855. transform: rotateX(90deg) !important;
  856. transform-origin: top !important;
  857. transition: transform 0.1s ease-in-out 0.6s !important;
  858. z-index: -10000 !important;
  859. }
  860.  
  861. /* Bookmark item padding and icon transition */
  862. #PlacesToolbarItems > .bookmark-item {
  863. padding-block: var(--bm-padding) !important;
  864. padding-left: 6px !important;
  865. padding-right: 6px !important;
  866. }
  867. #PlacesToolbarItems > .bookmark-item .toolbarbutton-icon {
  868. transition: opacity 0.1s ease-in-out 0.4s !important;
  869. opacity: 0 !important;
  870. }
  871.  
  872. /* Hover effect for toolbar and bookmark icon/text */
  873. #navigator-toolbox:hover > #PersonalToolbar,
  874. #navigator-toolbox:hover #PlacesToolbarItems > .bookmark-item .toolbarbutton-icon,
  875. #navigator-toolbox:hover #PlacesToolbarItems > .bookmark-item .toolbarbutton-text {
  876. transition-delay: 100ms !important;
  877. transform: rotateX(0) !important;
  878. opacity: 1 !important;
  879. }
  880.  
  881. /* Bookmark item text transition */
  882. #PlacesToolbarItems > .bookmark-item .toolbarbutton-text {
  883. transition: opacity 0.1s ease-in-out 0.4s !important;
  884. opacity: 0 !important;
  885. }
  886.  
  887. /* Fix the white line above the bookmarks bar when it's empty */
  888. #personal-toolbar-empty {
  889. padding: 2px !important;
  890. }
  891.  
  892. /*------------------------------------------------*/
  893. /* Make it good in transparent bg */
  894.  
  895. @media (prefers-color-scheme: dark) {
  896. #PlacesToolbarItems > * {
  897. background: #333333 !important;
  898. }
  899.  
  900. #PlacesToolbarItems > *:hover {
  901. background: #555555 !important;
  902. }
  903. }
  904.  
  905. @media (prefers-color-scheme: light) {
  906. #PlacesToolbarItems > * {
  907. background: #cccccc !important;
  908. }
  909.  
  910. #PlacesToolbarItems > *:hover {
  911. background: #eeeeee !important;
  912. }
  913. }
  914.  
  915.  
  916.  
  917. /*============================================================================================*/
  918. /* SIDE BAR */
  919.  
  920. /* Expand Side bar on hover */
  921.  
  922. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] {
  923. --sidebar-width: 48px !important;
  924. --sidebar-hover-width: 250px;
  925. --autohide-sidebar-delay: 50ms; /* Wait 0.3s before hiding sidebar */
  926. position: fixed;
  927. top:45px;
  928. bottom:0;
  929.  
  930. right: 0;
  931. min-width: var(--uc-sidebar-width) !important;
  932. width: var(--uc-sidebar-width) !important;
  933. max-width: var(--uc-sidebar-width) !important;
  934. z-index: 9999 !important;
  935. background-color: transparent !important; /* Set background color to transparent */
  936. box-shadow: none !important; /* Remove any box shadow */
  937.  
  938. }
  939.  
  940. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"]>#sidebar {
  941. transition: min-width 200ms linear var(--autohide-sidebar-delay) !important;
  942. min-width: var(--sidebar-width) !important;
  943. will-change: min-width;
  944. float: right;
  945.  
  946. }
  947.  
  948. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"]:hover>#sidebar {
  949. min-width: var(--sidebar-hover-width) !important;
  950. transition-delay: 0.1s !important; /* No delay on hover on */
  951. }
  952.  
  953. #sidebar-box {
  954. opacity: 0.9;
  955. }
  956.  
  957.  
  958.  
  959.  
  960. /*------------------------------------------------*/
  961. /* Hide Side bar header and line */
  962.  
  963. #sidebar-header,
  964. #sidebar-splitter {
  965. display: none !important;
  966. }
  967.  
  968. /*------------------------------------------------*/
  969. /* Sidebar Border */
  970.  
  971. @media (prefers-color-scheme: dark) {
  972. #sidebar-box #sidebar,
  973. #sidebar-box #webextpanels-window {
  974. border-radius: 15px !important;
  975. margin: 15px 15px 15px 5px !important;
  976. border: 3px solid rgba(204, 204, 204, 0.3);
  977. transition: border 0.3s ease;
  978. box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);
  979.  
  980. }
  981.  
  982. #sidebar-box #sidebar:hover,
  983. #sidebar-box #webextpanels-:hover {
  984. border: 3px solid rgba(204, 204, 204, 0.6);
  985. box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);
  986. }
  987. }
  988.  
  989. @media (prefers-color-scheme: light) {
  990. #sidebar-box #sidebar,
  991. #sidebar-box #webextpanels-window {
  992. border-radius: 15px !important;
  993. margin: 15px 15px 15px 5px !important;
  994. border: 3px solid rgba(51, 51, 51, 0.1);
  995. transition: border 0.3s ease;
  996. box-shadow: 0 0 10px 5px rgba(255,255,255,0.5);
  997. }
  998.  
  999. #sidebar-box #sidebar:hover,
  1000. #sidebar-box #webextpanels-window:hover {
  1001. border: 3px solid rgba(51, 51, 51, 0.6);
  1002. box-shadow: 0 0 10px 5px rgba(255,255,255,0.5);
  1003. }
  1004. }
  1005. /*============================================================================================*/
  1006. /* MAIN BROWSER */
  1007.  
  1008. /* Browser Border */
  1009.  
  1010. @media (prefers-color-scheme: dark) {
  1011. #main-window:not([sizemode="fullscreen"]) #appcontent browser {
  1012. border-radius: 15px !important;
  1013. margin: 150px 15px 15px 15px !important;
  1014. border: 3px solid rgba(0, 0, 0, 0);
  1015. transition: border 0.3s ease;
  1016. box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);
  1017. clip-path: circle(80%) !important;
  1018. margin-right: 80px !important;
  1019. }
  1020.  
  1021. #main-window:not([sizemode="fullscreen"]) #appcontent browser:hover {
  1022. border: 3px solid rgba(204, 204, 204, 0.3);
  1023. box-shadow: 0 0 10px 5px rgba(0,0,0,0.8);
  1024.  
  1025.  
  1026. }
  1027. }
  1028.  
  1029. @media (prefers-color-scheme: light) {
  1030. #main-window:not([sizemode="fullscreen"]) #appcontent browser {
  1031. border-radius: 15px !important;
  1032. margin: 15px 15px 15px 15px !important;
  1033. border: 3px solid rgba(51, 51, 51, 0.1);
  1034. transition: border 0.3s ease;
  1035. box-shadow: 0 0 10px 5px rgba(255,255,255,0.5);
  1036. clip-path: circle(80%) !important;
  1037. }
  1038.  
  1039. #main-window:not([sizemode="fullscreen"]) #appcontent browser:hover {
  1040. border: 3px solid rgba(51, 51, 51, 0.6);
  1041. box-shadow: 0 0 10px 5px rgba(255,255,255,0.5);
  1042. }
  1043. }
  1044.  
  1045. /*============================================================================================*/
  1046. /* FIND BAR */
  1047.  
  1048. /* CTRL+F Search Bar Border */
  1049.  
  1050. @media (prefers-color-scheme: dark) {
  1051. .browserContainer > findbar {
  1052. border-radius: 15px !important;
  1053. margin: 0px 15px 0px 15px !important;
  1054. border: 3px solid rgba(204, 204, 204, 0.3) !important;
  1055. transition: border 0.3s ease !important;
  1056. box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);
  1057. }
  1058.  
  1059. .browserContainer > findbar:hover {
  1060. border: 3px solid #ccc !important;
  1061. box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);
  1062. }
  1063. }
  1064.  
  1065. @media (prefers-color-scheme: light) {
  1066. .browserContainer > findbar {
  1067. border-radius: 15px !important;
  1068. margin: 0px 15px 0px 15px !important;
  1069. border: 3px solid rgba(51, 51, 51, 0.1) !important;
  1070. transition: border 0.3s ease !important;
  1071. box-shadow: 0 0 10px 5px rgba(255,255,255,0.5);
  1072. }
  1073.  
  1074. .browserContainer > findbar:hover {
  1075. border: 3px solid rgba(51, 51, 51, 0.6) !important;
  1076. box-shadow: 0 0 10px 5px rgba(255,255,255,0.5);
  1077. }
  1078. }
  1079.  
  1080. /*------------------------------------------------*/
  1081. /* Text in the center */
  1082. .browserContainer > findbar .findbar-textbox {
  1083. border-radius: 10px !important;
  1084. text-align: center !important;
  1085. }
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement