Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  2. /* TABS */
  3. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  4.  
  5. /* Tab background color (pinned & unpinned) */
  6. .tab-background { background: transparent !important }
  7. .tab-content { color: #fff !important }
  8. .tabbrowser-tab[pending]:not(:hover) .tab-content { opacity: 0.5 }
  9.  
  10. /* Hover tab background color (pinned & unpinned) */
  11. .tabbrowser-tab:hover .tab-background { background: var(--lwt-toolbarbutton-active-background, hsla(0,0%,70%,.3)) !important }
  12.  
  13. /* Selected tab background color (pinned & unpinned) */
  14. .tabbrowser-tab .tab-background[selected="true"],
  15. .tab-background[multiselected] { background: #38688f !important }
  16. .tabbrowser-tab[selected="true"]::after { display: none !important }
  17.  
  18. /* Active (loaded) not selected tab (not discarded) */
  19. .tabbrowser-tab:not([pending]):not([selected]):not([busy]) .tab-content {
  20. opacity: 1 !important;
  21. background: #151515 !important }
  22.  
  23. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  24. /* TABS: HIDE STUFF */
  25.  
  26. /* Hide top line on tabs */
  27. .tab-line { display: none !important }
  28.  
  29. /* Hide tab container underline */
  30. .tab-bottom-line { display: none !important }
  31.  
  32. /* Hide tab-throbber */
  33. .tab-throbber { display: none !important }
  34. .tabbrowser-tab[progress="true"] .tab-icon-image,
  35. .tab-icon-image {
  36. visibility: visible !important;
  37. display: block !important }
  38.  
  39. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  40. /* TABS: Separators */
  41.  
  42. #tabbrowser-tabs .tab-background-inner {
  43. display: -moz-box !important;
  44. border-right: 1px solid #505050 }
  45. .tabbrowser-tab:-moz-any([selected],[beforeselected-visible]) .tab-background-inner { border-color: #38688f !important }
  46.  
  47. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  48. /* TABS: FAVICONS */
  49.  
  50. /* Favicon default */
  51. .tab-icon-image:not([src]) { list-style-image: url(../Icons/FaviconDefault.svg) !important }
  52. .tabbrowser-tab[selected="true"] .tab-icon-image:not([src]) { filter: brightness(150%) !important }
  53.  
  54. /* Partial solution to tab-black-favicons under dark-theme */
  55. tab .tab-icon, .tab-icon-image { filter: invert(40%) saturate(220%) brightness(130%) contrast(150%) !important }
  56.  
  57. /* Correction github favicon under dark theme */
  58. .tabbrowser-tab[image^="data:image/x-icon;base64,AAABAAIAEBAAAAEAIAAoBQAAJgAAACAgAAABACAAKBQAAE4FAAAoAAAAEAAAACAAAAABACAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABERE3YTExPFDg4OEgAAAAAAAAAADw8PERERFLETExNpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQUFJYTExT8ExMU7QAAABkAAAAAAAAAAAAAABgVFRf/FRUX/xERE4UAAAAAAAAAAAAAAAAAAAAAAAAAABEREsETExTuERERHhAQEBAAAAAAAAAAAAAAAAAAAAANExMU9RUVF/8VFRf/EREUrwAAAAAAAAAAAAAAABQUFJkVFRf/BgYRLA4ODlwPDw/BDw8PIgAAAAAAAAAADw8PNBAQEP8VFRf/FRUX/xUVF/8UFBSPAAAAABAQEDAPDQ//AAAA"] .tab-icon-image { filter: invert(1.0) contrast(200%) brightness(200%) !important }
  59.  
  60. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  61. /* TABS: CLOSE BUTTON */
  62. /* CREDITS: https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/tab_close_button_always_on_hover.css
  63. Always show tab close button on hover and never otherwise. */
  64. .tabbrowser-tab .tab-close-button {
  65. display: none }
  66. .tabbrowser-tab:not([pinned]):hover .tab-close-button {
  67. display:-moz-box !important }
  68.  
  69. /* Tab close button unselected tab */
  70. .tab-content:not([selected]):hover .tab-close-button {
  71. border-radius: 50px;
  72. background-color: #999 !important }
  73.  
  74. /* Tab close button selected tab */
  75. .tab-close-button {
  76. border-radius: 50px;
  77. background-color: #303030 !important }
  78.  
  79. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  80. /* TABS: ICON SOUND */
  81.  
  82. .tab-icon-sound {
  83. fill: #12BC00 !important;
  84. opacity: 1 !important;
  85. background-color: transparent !important;
  86. margin-top: -18px !important }
  87.  
  88. .tab-icon-sound[muted] {
  89. list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio-playing.svg) !important;
  90. fill: red !important;
  91. opacity: 1 !important;
  92. filter: brightness(350%) !important;
  93. background-color: transparent !important;
  94. margin-top: -18px !important }
  95.  
  96. .tab-icon-overlay[pinned] {
  97. list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio-playing.svg) !important;
  98. fill: #12BC00 !important;
  99. opacity: 1 !important;
  100. background-color: transparent !important;
  101. margin-top: -18px !important }
  102.  
  103. .tab-icon-overlay[muted][pinned] {
  104. list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio-playing.svg) !important;
  105. fill: red !important;
  106. opacity: 1 !important;
  107. filter: brightness(350%) !important;
  108. background-color: transparent !important;
  109. margin-top: -18px !important }
  110.  
  111. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  112. /* TABS: LOADING PROGRESS LINE TAB INDICATOR */
  113. /* CREDITS: https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/ */
  114.  
  115. @keyframes loadingLine { from{background-size: 0 2px}to{background-size: 20% 2px} }
  116.  
  117. .tabbrowser-tab .tab-loading-burst {
  118. background-image: linear-gradient(100deg, red, red) !important;
  119. background-repeat: no-repeat !important;
  120. transition-property: background-size, opacity;
  121. transition-timing-function: sine, linear;
  122. transition-delay: 0s, 0.4s;
  123. transition-duration: 0.4s, 0.4s;
  124. background-size: 100% 2px;
  125. background-position-y: bottom;
  126. margin-right: 2px /* clip the right side */;
  127. opacity: 0 }
  128.  
  129. .tabbrowser-tab[busy] .tab-loading-burst,
  130. .tabbrowser-tab[bursting] .tab-loading-burst {
  131. opacity: 1;
  132. transition-delay: 0s, 0s }
  133.  
  134. .tabbrowser-tab[busy]:not([progress]) .tab-loading-burst {
  135. animation: loadingLine 0.4s ease-out backwards !important;
  136. background-size: 20% 2px }
  137.  
  138. .tabbrowser-tab[progress] .tab-loading-burst {
  139. background-size: 100% 2px !important;
  140. transition-duration: 2s, 2s }
  141.  
  142. .tabbrowser-tab[bursting] .tab-loading-burst {
  143. background-size: 100% 2px;
  144. transition-duration: 0.1s, 0.3s }
  145.  
  146. /* Resizing loading-progress-line under tab */
  147. .tab-loading-burst { margin: 0 0 0 0 }
  148.  
  149. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  150. /* TABS: REDUCE "WHITE FLASHING" */
  151. .browserContainer,
  152. browser.display.background_color,
  153. browser[type="content-primary"],
  154. browser[type=content-primary],
  155. browser[type=content] > html,
  156. #browser vbox#appcontent tabbrowser,
  157. #content,
  158. #main-window,
  159. /* CREDITS: https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/blank_page_background.css */
  160. #tabbrowser-tabpanels,
  161. tabbrowser tabpanels,
  162. tabpanels,
  163. #tab-view-deck #browser tabbrowser#content { background-color: #202020 !important }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement