devdsavage

userChrome.css

Sep 24th, 2019
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.64 KB | None | 0 0
  1. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  2.  
  3. /* #################
  4. WINDOWS UWP DRAG BAR
  5. ################# */
  6. toolbarbutton#alltabs-button {
  7. -moz-binding: url("userChrome.xml#js");
  8. }
  9.  
  10.  
  11. /* #################
  12. - - - FONTS
  13. ################# */
  14. #urlbar, #TabsToolbar .tabbrowser-tab, menu, .autocomplete-richlistbox, #menubar-items, statuspanel[type="overLink"] .statuspanel-label, toolbarbutton, #placeContent, #placesList, .editBMPanel_rowLabel, .textbox-input-box, .viewer-title.label.toolbar, .downloadTarget, .downloadDetails, #bookmarks-view-children, #sidebar-search-label, #sidebar-title, .menubar-text {
  15. font-family: "NotoSans-Regular", !important;
  16. font-size: 12px !important;
  17. font-weight: 600 !important;
  18. }
  19. #clientBox {
  20. font-family: "NotoSans-Regular", !important;
  21. font-size: 12px !important;
  22. font-weight: 600 !important;
  23. }
  24.  
  25. :root
  26. {
  27. /* #################
  28. - - - COLORS
  29. ################# */
  30. /*var(--tab-bg)*/
  31. --alt-bg: #222 !important; /* tab bg (selected) */
  32.  
  33. --url-bg: #222 !important; /* nav bar/url section */
  34. --browser-bg: #191919 !important; /* tabs (unselected) + background */
  35.  
  36. --main-text: #888 !important; /* tab text */
  37. --secondary-text: #ccc !important; /* selected tab text*/
  38. --third-text: #ddd !important; /* url bar text*/
  39.  
  40. --debug-color: rgba(255, 0, 0, 0.5) !important;
  41.  
  42.  
  43. /* #################
  44. - - - - ROOT
  45. ################# */
  46. --chrome-background-color: var(--browser-bg) !important;
  47.  
  48. /* remove 1px line under background tabs */
  49. --toolbox-border-bottom-color: transparent !important;
  50. /* remove border around url bar */
  51. --chrome-nav-bar-controls-border-color: transparent !important;
  52. }
  53.  
  54.  
  55.  
  56. /* #################
  57. - - - NAV BAR
  58. ################# */
  59.  
  60. /* Color */
  61. #nav-bar {
  62. background: var(--url-bg) !important; /* bg, same as url bar */
  63.  
  64. /* Round buttons on hover*/
  65. --toolbarbutton-border-radius: 12px !important;
  66. }
  67.  
  68.  
  69. /* Make Toolbar Buttons Grayscale */
  70. .toolbarbutton-1 {
  71. filter: grayscale(100%) brightness(1000%) invert(10%) !important;
  72. }
  73.  
  74.  
  75. /* #################
  76. - - - URL BAR
  77. ################# */
  78.  
  79. #urlbar {
  80. /* No full url */
  81. /* -moz-binding: url("bindings.xml#urlbar") !important; */
  82.  
  83. /* Color */
  84. color: var(--third-text) !important; /* text */
  85. background: var(--url-bg) !important; /* bg */
  86. border: none !important;
  87. box-shadow: none !important;
  88. border-radius: 12px !important;
  89. /*max-width: 474px !important;*/
  90. }
  91. /* Center */
  92. #urlbar .urlbar-input-box {
  93. text-align: center;
  94. margin-bottom: 1px;
  95. /*margin-left: -53px !important;*/
  96. box-shadow: none !important;
  97. margin-left: -25px !important;
  98. margin-right: 35px !important;
  99. }
  100.  
  101. /*
  102. * Originally from:
  103. * http://forums.mozillazine.org/viewtopic.php?p=14404121#p14404121
  104. */
  105.  
  106. #urlbar {
  107. position: relative;
  108. z-index: 1;
  109. }
  110.  
  111. #identity-box:after {
  112. content: '';
  113. position: absolute;
  114. height: 100%;
  115. width: 100%;
  116. top: 0;
  117. left: 0;
  118. pointer-events: none;
  119. z-index: -1;
  120. background: transparent;
  121. opacity: 0.2;
  122. }
  123.  
  124. /* uBlock Origin Dashboard */
  125. #urlbar[pageproxystate='valid'] #identity-box.extensionPage:after {
  126. background: #45a1ff; /* Firefox Blue 40 */
  127. }
  128. /* https://mixed.badssl.com/ */
  129. #urlbar[pageproxystate='valid'] #identity-box.mixedDisplayContent:after {
  130. background: rgb(255, 136, 0); /* Firefox Yellow 60 */
  131. }
  132. /* https://very.badssl.com/ */
  133. #urlbar[pageproxystate='valid'] #identity-box.mixedDisplayContentLoadedActiveBlocked:after {
  134. background: rgb(255, 136, 0); /* Firefox Yellow 60 */
  135. }
  136. /* https://self-signed.badssl.com/ but add certificate exception */
  137. #urlbar[pageproxystate='valid'] #identity-box.certUserOverridden:after {
  138. background: rgb(255, 136, 0); /* Firefox Yellow 50 */
  139. }
  140. /* Don't know an example for this */
  141. #urlbar[pageproxystate='valid'] #identity-box.weakCipher:after {
  142. background: rgb(255, 136, 0); /* Firefox Yellow 70 */
  143. }
  144. /* https://mixed-script.badssl.com/ but disable protection */
  145. #urlbar[pageproxystate='valid'] #identity-box.mixedActiveContent:after {
  146. background: #f30323; /* Firefox Red 60 */
  147. }
  148. /* http://http-login.badssl.com/ */
  149. #urlbar[pageproxystate='valid'] #identity-box.insecureLoginForms:after {
  150. background: #f30323; /* Firefox Red 70 */
  151. }
  152.  
  153. #identity-box {
  154. background: rgb(255, 0, 0,0) !important; /* REMOVE ALPHA TO DEBUG*/
  155. color: rgba(0, 0, 0, 0) !important;
  156. width: 70px !important;
  157. }
  158.  
  159. /* Unhide when hovering/active */
  160. #identity-box:hover {
  161. color: var(--secondary-text) !important;
  162. }
  163. #identity-box[open="true"] {
  164. color: var(--secondary-text) !important;
  165. }
  166. #tracking-protection-icon-animatable-box, #connection-icon
  167. {
  168. opacity: 0 !important;
  169. }
  170. #identity-box:hover #tracking-protection-icon-animatable-box, #identity-box[open="true"] #tracking-protection-icon-animatable-box, #identity-box:hover #connection-icon, #identity-box[open="true"] #connection-icon
  171. {
  172. opacity: 100 !important;
  173. }
  174.  
  175. #context-stop,#context-reload[hidden="true"]
  176. {
  177. display: none;
  178. }
  179.  
  180.  
  181.  
  182. /* #################
  183. - - - - TABS
  184. ################# */
  185.  
  186. /* Unselected Color */
  187. #TabsToolbar {
  188. color: var(--main-text) !important; /*text color*/
  189. }
  190.  
  191. /* Selected Color */
  192. .tab-background[selected="true"] {
  193. background-attachment: none!important;
  194. background-color: var(--alt-bg) !important; /* bg color */
  195. background-image: none!important;
  196. }
  197. #TabsToolbar .tabbrowser-tab[selected] {
  198. color: var(--secondary-text) !important; /*text color*/
  199. }
  200.  
  201. /* New tab button color */
  202. #new-tab-button, .tabs-newtab-button {
  203. list-style-image: url("newtab.png") !important;
  204. -moz-image-region: auto !important;
  205. }
  206.  
  207. /* Close tab color */
  208. #TabsToolbar .close-icon {
  209. filter: opacity(17%) !important;
  210. }
  211.  
  212. /* FAVICONS Color */
  213. /* Default */
  214. .tab-icon-image
  215. {
  216. filter: grayscale(100%) opacity(90%) !important;
  217. /*display: none !important;*/
  218. }
  219. /* Selected */
  220. .tabbrowser-tab[selected] .tab-icon-image
  221. {
  222. filter: grayscale(50%) opacity(90%) !important;
  223. /*display: none !important;*/
  224. }
  225.  
  226. /* Pinned */
  227. .tabbrowser-tab[pinned] .tab-icon-image
  228. {
  229. filter: grayscale(0%) opacity(90%) !important;
  230. /*display: none !important;*/
  231. }
  232.  
  233. /* Unhide the tab close button on hover
  234. #TabsToolbar .close-icon {
  235. display: none !important;
  236. }
  237. #TabsToolbar .tabbrowser-tab:hover .close-icon {
  238. visibility: visible !important;
  239. }
  240. */
  241.  
  242. /* tab line - adjust color & size, default #0a84ff 2px */
  243. .tab-line {
  244. background-color: #0a84ff !important;
  245. height: 0px !important;
  246. }
  247.  
  248. /*Remove border between tabs */
  249. .tabbrowser-tab::after, .tabbrowser-tab::before {
  250. border-left: none !important;
  251.  
  252. color: #111 !important;
  253. opacity: 1 !important;
  254. }
  255.  
  256. /* Center Text */
  257. .tab-text {
  258. text-align: center !important;
  259. }
  260. .tab-label {
  261. -moz-box-flex: 1 !important;
  262. text-align: center !important;
  263. }
  264.  
  265.  
  266.  
  267.  
  268.  
  269. /* #################
  270. - - HIDE STUFF
  271. ################# */
  272. /* Menu */
  273. #appMenu-fxa-container,
  274. #appMenu-fxa-container+toolbarseparator,
  275. /* #appMenuRestoreLastSession, */
  276. #appMenu-zoom-controls,
  277. #appMenu-zoom-controls+toolbarseparator,
  278. #appMenu-edit-controls,
  279. #appMenu-edit-controls+toolbarseparator,
  280. #appMenu-library-button,
  281. #appMenu-customize-button,
  282. #appMenu-customize-button+toolbarseparator,
  283. #appMenu-open-file-button,
  284. #appMenu-save-file-button,
  285. #appMenu-find-button,
  286. #appMenu-more-button,
  287.  
  288.  
  289. #dropmarker-icon,
  290. #historydropmarker,
  291. #autocomplete-history-dropmarker,
  292. #urlbar-history-dropmarker,
  293. #dropmarker,
  294. #autocomplete-history-dropmarker,
  295. #urlbar-history-dropmarker,
  296. #urlbar-reload-button,
  297. #urlbar-zoom-button,
  298. #plugins-notification-icon,
  299. #notification-anchor-icon,
  300. #notification-popup-box,
  301. .scrollbutton-up,
  302. .scrollbutton-down,
  303. #alltabs-button,
  304. .autocomplete-history-dropmarker.urlbar-history-dropmarker,
  305. .toolbarbutton-menubutton-dropmarker,
  306. #memfx-toolbar-button,
  307. #reload-button,
  308. .box-inherit.toolbarbutton-menubutton-button,
  309. .scrollbutton-up,
  310. .scrollbutton-down,
  311.  
  312. #stop-button,
  313.  
  314.  
  315. /* URL Bar */
  316. #pageActionButton,
  317. #pocket-button-box,
  318. #ar-button,
  319. .autocomplete-history-dropmarker,
  320.  
  321. #page-action-buttons {
  322. /*** ICONS AND BUTTONS ***/
  323. display: none !important;
  324. }
  325. #dropmarker-icon,
  326.  
  327.  
  328. /* #################
  329. - SIZE & LOCATIONS
  330. ################# */
  331.  
  332. /* Move Tab-bar beside Nav-bar */
  333. #TabsToolbar {
  334. margin-bottom: 0px !important; /* not needed anymore? */
  335. margin-top: 0px !important; /* */
  336. margin-left: 35vw !important;
  337. margin-right: -34px !important;
  338. max-height: 32px !important;
  339. }
  340. #nav-bar {
  341. margin-bottom: -1px !important; /* remove navbar bottom 1px border */
  342. margin-top: -32px !important;
  343. margin-right: 65vw !important;
  344. border: none !important;
  345. }
  346. /* Remove padding above tabbar in compact mode */
  347. #main-window[sizemode="normal"] > #titlebar {
  348. -moz-appearance: initial !important;
  349. }
  350. /* Back & Forward buttons */
  351. #back-button > .toolbarbutton-icon,
  352. #forward-button > .toolbarbutton-icon {
  353. transform: scale(0.9, 0.9) !important;
  354. margin-left: -2px !important;
  355. margin-right: -2px !important;
  356. }
  357. /* Move hamburger menu to the left */
  358. #PanelUI-button,
  359. #customization-panel-container,
  360. #customization-panelWrapper .panel-arrow {
  361. -moz-box-ordinal-group: 0 !important;
  362. margin-right: -6px !important;
  363. }
  364. #appMenu-popup {
  365. margin-right: -258px !important;
  366. }
  367. #appMenu-popup .panel-arrow {
  368. margin-right: 248px !important;
  369. }
  370. /* More tools... button */
  371. #nav-bar-overflow-button {
  372. transform: scale(0.9, 0.9) !important;
  373. fill: var(--color-overflow) !important;
  374. }
  375. /* Tabs */
  376. .tabbrowser-tab {
  377. height: 32px !important;
  378. }
  379. .tab-content[pinned] {
  380. padding: 0 30px !important;
  381. }
  382. /* Remove empty space before first tab
  383. Delete this rule if you need a space to drag the window*/
  384. #TabsToolbar .titlebar-placeholder[type="pre-tabs"]{
  385. display: none !important;
  386. }
  387.  
  388.  
  389. /* #################
  390. - - CLOSE BUTTONS
  391. ################# */
  392.  
  393. /* #titlebar-buttonbox:-moz-window-inactive > * {
  394. list-style-image: url(buttons/nofocus.png) !important;
  395. } */
  396.  
  397.  
  398. .titlebar-min {
  399. padding: 0px !important;
  400. padding-left: 14px !important;
  401. padding-right: 14px !important;
  402.  
  403. margin-left: 0px !important;
  404. margin-right: -2px !important;
  405. margin-top: 0px !important;
  406. margin-bottom: 0px !important;
  407.  
  408.  
  409. background-color: transparent !important;
  410. list-style-image: url(buttons/minus_WAIT.png) !important;
  411. transform: scale(0.8,0.8) !important;
  412. }
  413. .titlebar-min:hover {
  414. list-style-image: url(buttons/minus_FULL.png) !important;
  415. }
  416.  
  417. .titlebar-max {
  418. padding: 0px !important;
  419. padding-left: 14px !important;
  420. padding-right: 14px !important;
  421.  
  422. margin-left: 0px !important;
  423. margin-right: 0px !important;
  424. margin-top: 0px !important;
  425. margin-bottom: 0px !important;
  426.  
  427. background-color: transparent !important;
  428. list-style-image: url(buttons/plus_WAIT.png) !important;
  429. transform: scale(0.8,0.8) !important;
  430. }
  431. .titlebar-max:hover {
  432. list-style-image: url(buttons/plus_FULL.png) !important;
  433. }
  434.  
  435. .titlebar-close {
  436. padding: 0px !important;
  437. padding-left: 14px !important;
  438. padding-right: 14px !important;
  439.  
  440. margin-left: 0px !important;
  441. margin-right: 33px !important;
  442. margin-top: 0px !important;
  443. margin-bottom: 0px !important;
  444.  
  445. background-color: transparent !important;
  446. list-style-image: url(buttons/cross_WAIT.png) !important;
  447. transform: scale(0.8,0.8) !important;
  448. }
  449. .titlebar-close:hover {
  450. list-style-image: url(buttons/cross_FULL.png) !important;
  451. }
  452.  
  453. /* #################
  454. SEARCH POPOUT MODS
  455. ################# */
  456.  
  457. /*
  458. https://www.jeffersonscher.com/gm/url-bar-tweaks.html
  459. */
  460. @-moz-document url(chrome://browser/content/browser.xul) {
  461. /* Remove " - Visit" or " - Search with" bar in the drop-down */
  462. #PopupAutoCompleteRichResult richlistitem:first-of-type[type*="heuristic"],
  463. #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="searchengine"],
  464. #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"],
  465. #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="keyword"] {
  466. display:none !important;
  467. }
  468. /* Hide line for searching sld.tld below "Visit" Line */
  469. #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"] +
  470. richlistitem[actiontype="searchengine"] {
  471. display:none !important;
  472. }
  473. #PopupAutoCompleteRichResult .autocomplete-richlistbox {
  474. padding-top: 0 !important;
  475. padding-bottom: 0 !important;
  476. }
  477.  
  478. /* Display drop-marker only when URL bar is hovered (Firefox default) */
  479. /* Set max-height for items visible without scrolling */
  480. #PopupAutoCompleteRichResult .autocomplete-richlistbox {
  481. /* height:auto doesn't work in photon */
  482. max-height: calc(45.5px * 10) !important;
  483. }
  484. /* Set drop-down width */
  485. #PopupAutoCompleteRichResult {
  486. width: 500px !important;
  487. max-width: 500px !important;
  488. margin-left: 0 !important;
  489. }
  490. #PopupAutoCompleteRichResult .autocomplete-richlistitem:not([actiontype="searchengine"]) .ac-title-text,
  491. #PopupAutoCompleteRichResult .autocomplete-richlistitem .ac-url-text {
  492. min-width: 610px !important;
  493. }
  494. /* Create sufficient height for two lines */
  495. #PopupAutoCompleteRichResult .autocomplete-richlistitem:not([actiontype="searchengine"]) {
  496. position: relative !important;
  497. height: 45.5px !important;
  498. }
  499. /* Subtle border between results */
  500. #PopupAutoCompleteRichResult .autocomplete-richlistitem {
  501. border-bottom-color: #eee !important;
  502. }
  503. /* Position page title, set font-size */
  504. #PopupAutoCompleteRichResult .autocomplete-richlistitem:not([actiontype="searchengine"]) .ac-title {
  505. position: absolute !important;
  506. left: 54px;
  507. top: 1px;
  508. font-size: 14px !important;
  509. }
  510. /* Position page url / action, set font-size */
  511. #PopupAutoCompleteRichResult .autocomplete-richlistitem:not([actiontype="searchengine"]) .ac-url,
  512. #PopupAutoCompleteRichResult .autocomplete-richlistitem:not([actiontype="searchengine"]) .ac-action {
  513. position: absolute !important;
  514. left: 54px;
  515. top: 20px;
  516. font-size: 12px !important;
  517. }
  518.  
  519. /* Position bookmark tags */
  520. #PopupAutoCompleteRichResult .autocomplete-richlistitem .ac-tags {
  521. position: absolute !important;
  522. right: 0px;
  523. top: 3px;
  524. }
  525. /* Hide separator between title and URL */
  526. #PopupAutoCompleteRichResult .autocomplete-richlistitem:not([actiontype="searchengine"]) .ac-separator {
  527. display: none !important;
  528. }
  529. /* Position special icon (bookmark, switch-to-tab) */
  530. #PopupAutoCompleteRichResult .autocomplete-richlistitem .ac-type-icon {
  531. margin-left: 4px !important;
  532. }
  533. /* Prevent excess indenting of icons in Photon */
  534. #PopupAutoCompleteRichResult .autocomplete-richlistitem [anonid="type-icon-spacer"] {
  535. display: none !important;
  536. }
  537. #PopupAutoCompleteRichResult {
  538. --item-padding-start: 0 !important;
  539. }
  540.  
  541. .autocomplete-richlistitem[selected=true] {
  542. background-color: Highlight !important;
  543. }
  544. .autocomplete-richlistitem[selected=true] .ac-title,
  545. .ac-title[selected],
  546. .autocomplete-richlistitem[selected=true] .ac-url,
  547. .ac-url[selected],
  548. .autocomplete-richlistitem[selected=true] .ac-action,
  549. .ac-action[selected],
  550. .autocomplete-richlistitem[selected=true] .ac-separator,
  551. .ac-separator[selected] {
  552. color: HighlightText !important;
  553. }
  554. /* Use default text matching style */
  555. /* Ability to scroll in Fx57 */
  556. #PopupAutoCompleteRichResult .autocomplete-richlistbox > scrollbox {
  557. overflow-y: auto !important;
  558. padding-right: 3px !important;
  559. }
  560. #PopupAutoCompleteRichResult .autocomplete-richlistbox {
  561. padding-right: 0 !important;
  562. }
  563. }
Advertisement
Add Comment
Please, Sign In to add comment