Advertisement
kisazeky

photonLikeProton.css

Aug 21st, 2023
663
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/urlbar_full_width.css made available under Mozilla Public License v. 2.0
  2. See the above repository for updates as well as full license text. */
  3. /* This is just one place I pulled code from. I putt it it all together. Funtime60*/
  4.  
  5. /* Make urlbar popup appear full size like it did before urlbar re-design */
  6. #urlbar-container, #urlbar{
  7.     position: static !important;
  8.     display: -moz-box !important;
  9. }
  10. #urlbar{
  11.     height: auto !important;
  12.     width: auto !important;
  13.     box-shadow: inset 0 0 0 1px var(--lwt-toolbar-field-border-color, hsla(240,5%,5%,.25));
  14.     background-color: hsla(0,0%,100%,1.0);
  15.     border-radius: var(--toolbarbutton-border-radius);
  16. }
  17. #urlbar[focused] {
  18.     box-shadow: inset 0 0 0 1px var(--lwt-toolbar-field-border-focus, highlight);
  19. }
  20. .urlbarView {
  21.     position: absolute !important;
  22.     margin: 0 !important;
  23.     left: 0 !important;
  24.     width: 100vw !important;
  25.     border-width: 1px 0;
  26.     top: var(--urlbar-toolbar-height);
  27.     background-color: var(--lwt-toolbar-field-focus, inherit);
  28.     z-index: 4;
  29.     box-shadow: 0 10px 10px rgba(0,0,0,.1)
  30. }
  31. #urlbar > #urlbar-input-container{ padding: 0px !important; width: auto !important; height: auto !important; }
  32. #urlbar > #urlbar-background{ display: none !important; }
  33. /* This may seem pretty weird, but it gets around an issue where the height of urlbar may suddenly change when one starts typing into it */
  34. /* If you are otherwise modifying the urlbar height then you might need to modify the height of this too */
  35. #urlbar > #urlbar-input-container::before{ content: ""; display: -moz-box; height: 24px; }
  36.  
  37. /* Make seachbar the correct colors */
  38. #searchbar {
  39.     background-color: var(--lwt-toolbar-field-background-color, hsla(0,0%,100%,1.0)) !important;
  40.     --lwt-toolbar-field-background-color: white !important;
  41.     border: 1px solid var(--lwt-toolbar-field-border-color) !important;
  42. }
  43. #searchbar:focus-within {
  44.     box-shadow: 0 0 0 0px transparent !important;
  45.     border-color: var(--lwt-toolbar-field-border-focus, highlight) !important;
  46. }
  47.  
  48. /* Make context menu normal */
  49. /* TODO make shorter items */
  50. /* TODO fix colors of selected */
  51. /* TODO fix colors of disabled */
  52. menupopup {
  53.     border-radius: 0px !important;
  54. }
  55. .menupopup-arrowscrollbox {
  56.     border-radius: 0px !important;
  57. }
  58. menu[_moz-menuactive="true"], menuitem[_moz-menuactive="true"] {
  59.     /* for when about:config fails */
  60.     /* background-color: var(--cus-menuhover) !important; */
  61.     /* color: -moz-menuhovertext !important; */
  62. }
  63. menupopup > menu, menupopup > menuitem {
  64.     padding-block: 2px !important;
  65. }
  66.  
  67. /* Fix new tab & back button */
  68. #TabsToolbar {
  69.     --toolbarbutton-inner-padding: 6px !important;
  70. }
  71. toolbar .toolbarbutton-1 {
  72.     padding: var(--toolbarbutton-outer-padding) !important;
  73. }
  74. :root #back-button {
  75.     padding-inline: 3px 0 !important;
  76. }
  77. :root #back-button > .toolbarbutton-icon {
  78.     background-color: var(--backbutton-background);
  79.     background-origin: padding-box;
  80.     background-clip: padding-box;
  81.     border: 1px solid var(--backbutton-border-color) !important;
  82.     border-radius: 100% !important;
  83.     width: 34px !important;
  84.     height: 34px !important;
  85.     padding: 8px !important;
  86.     transition-property: box-shadow;
  87.     transition-duration: var(--toolbarbutton-hover-transition-duration);
  88. }
  89.  
  90. /* MISC */
  91. :host, :root {
  92.    
  93. }
  94. :root {
  95.     --cus-menuhover: rgba(0, 120, 215, 0.4);
  96.    
  97.     --lwt-toolbar-field-border-color: hsla(240,5%,5%,.25);
  98.     --lwt-toolbar-field-background-color: hsla(0,0%,100%,.8);
  99.     --backbutton-border-color: hsla(240,5%,5%,.3);
  100.  
  101.     --proton-tab-block-margin: 0px !important;
  102.     --tab-border-radius: 0px !important;
  103.     --inline-tab-padding: 7px !important; /* Original: 8px */
  104.     --tab-min-height: 33px !important;
  105.    
  106.     --toolbarbutton-border-radius: 2px !important;
  107. }
  108.  
  109. /* Tab fixes: Custom */
  110. :root:not(:-moz-lwtheme) {
  111.     --tab-selected-bgcolor: var(--toolbar-non-lwt-bgcolor) !important;
  112.     --toolbar-non-lwt-bgcolor: #f9f9fa !important;
  113. }
  114. .tabbrowser-tab {
  115.     margin-inline: -2px !important; /* Hack since the source made the padding !important so I couldn't override it to 0.
  116.                                      Overrode the padding by canceling the padding with negative margins */
  117. }
  118.  
  119. /* Fix Group 0 */
  120. /* Adds the line between the toolbar and the tabs, applies over sides of selected tab too */
  121. #navigator-toolbox {
  122.     --tabs-border-color: rgba(0,0,0,.3) !important;
  123. }
  124. /* Removes line between toolbar and selected tab */
  125. .tab-background {
  126.     margin-bottom: 0px !important;
  127. }
  128. /* Fixes tab background of inactive tabs. They're transparent, the next thing with color is THE ROOT!!! */
  129. #main-window {
  130.     background-color: rgb(199, 199, 199) !important;
  131. }
  132. /* Fixes tab height */
  133. #TabsToolbar * {
  134.     max-height: 33px !important;
  135. }
  136. /* End Group 0 */
  137. /* Fix Group 1 */
  138. .identity-box-button:hover:not([open="true"]) {
  139.     background-color: rgba(179, 179, 179, 0.2) !important;
  140. }
  141. .identity-box-button:not(:hover) {
  142.     background-color: rgba(0, 0, 0, 0);
  143. }
  144. /* End Group 1 */
  145.  
  146. /* Tab fixes: site 2 */
  147. .tab-close-button{
  148.     margin-inline-start: 4px !important;
  149.     width: 20px !important;
  150.     height: 20px !important;
  151.     padding: 5px !important;
  152.     margin-right: 0px !important;
  153. }
  154.  
  155. /* Tab fixes: site 1 */
  156. /* Unknown Tab Fixes: site 1 */
  157. /* Enable to max tabs expand when hovered over, TODO fix so only expands overflow, right now expands not full and doesn't expand full enough.
  158. .tabbrowser-tab[fadein]:not([pinned]):not([style*="max-width"]):hover {
  159.     max-width: none !important;
  160. }*/
  161. .tabbrowser-tab[fadein]:not([pinned]):not([style*="max-width"]) {
  162.     max-width: 225px !important;
  163. }
  164.  
  165. /* Unknown Tab Fixes: site 1 */
  166. #TabsToolbar, #TabsToolbar-customization-target {
  167.     height: 34px !important;
  168. }
  169. :root[uidensity=compact] #TabsToolbar * {
  170.  max-height: 30px !important;
  171. }
  172. :root[uidensity=touch] #TabsToolbar * {
  173.     max-height: 42px !important;
  174. }
  175. .tab-background, .tab-content {
  176.     margin-top: 0 !important;
  177. }
  178. root:not([uidensity=rootuidensitytouch]) #tabs-newtab-button > .toolbarbutton-icon  {
  179.     padding-top: 8px !important;
  180.     padding-bottom: 8px !important;
  181. }
  182. :root #tabbrowser-arrowscrollbox {
  183.     --scrollbtn-vertical-padding: 3px !important;
  184. }
  185.  
  186. /* Unknown Tab Fixes: site 1 */
  187. .tab-context-line {
  188.     display: -moz-inline-box !important;
  189.     height: 2px !important;
  190.     border-radius: var(--tab-border-radius, 4px) var(--tab-border-radius, 4px) 0 0 !important;
  191. }
  192. .tabbrowser-tab:is([selected], [multiselected]) .tab-context-line {
  193.     background-color: rgb(10, 132, 255) !important; /* Photon like color
  194.                                                     Default: var(--tab-line-color, rgb(10, 132, 255))
  195.                                                     Automatic: color-mix(in srgb, var(--button-primary-bgcolor) 80%, transparent) */
  196. }
  197. .tabbrowser-tab:hover:not([selected="true"], [multiselected]) > .tab-stack > .tab-background > .tab-context-line {
  198.     background-color: rgba(0,0,0,.2) !important;
  199.     opacity: 1 !important;
  200.     transform: none !important;
  201. }
  202. #TabsToolbar[brighttext] .tabbrowser-tab:hover:not([selected="true"], [multiselected]) > .tab-stack > .tab-background > .tab-context-line {
  203.     background-color: rgba(255,255,255,.2) !important;
  204. }
  205. .tabbrowser-tab:not([selected="true"], [multiselected]) .tab-context-line {
  206.     opacity: 0 !important;
  207.     transform: scaleX(0) !important;
  208. }
  209. .tabbrowser-tab:not([selected="true"], [multiselected]) .tab-context-line {
  210.     transition: transform 250ms var(--animation-easing-function), opacity 250ms var(--animation-easing-function) !important; /* --animation-easing-function: cubic-bezier(.07, .95, 0, 1); */
  211. }
  212.  
  213. /* Unknown Tab Fixes: site 1 */
  214. .tabbrowser-tab::after, #tabbrowser-tabs[movingtab] > #tabbrowser-arrowscrollbox > .tabbrowser-tab[visuallyselected]::before {
  215.     content: "";
  216.     display: block;
  217. }
  218. .tabbrowser-tab::after, .tabbrowser-tab::before {
  219.     border-left: 1px solid var(--lwt-background-tab-separator-color, currentColor) !important;
  220.     margin-block: 5px 4px !important;
  221.     opacity: 0.3 !important;
  222. }
  223. .tabbrowser-tab::before {
  224.     margin-inline-start: -1px !important;
  225. }
  226.  
  227. /* Unknown Tab Fixes: site 1 */
  228. :root[tabsintitlebar]:not([extradragspace]) #toolbar-menubar[autohide="true"] + #TabsToolbar .tabbrowser-tab::after, .tabbrowser-tab:hover::after, #tabbrowser-tabs:not([movingtab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab[beforehovered]::after, .tabbrowser-tab[multiselected]::after, #tabbrowser-tabs:not([movingtab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab[before-multiselected]::after {
  229.     margin-top: var(--tabs-top-border-width) !important;
  230.     margin-bottom: 0 !important;
  231. }
  232. /* Selected - Hide */
  233. #tabbrowser-tabs:not([movingtab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab[beforeselected-visible]::after, #tabbrowser-tabs[movingtab] > #tabbrowser-arrowscrollbox > .tabbrowser-tab[visuallyselected]::before, .tabbrowser-tab[visuallyselected]::after {
  234.     border-color: var(--tabs-border-color) !important;
  235.     margin-top: 0 !important;
  236.     margin-bottom: var(--tabs-navbar-shadow-size) !important;
  237.     opacity: 1 !important;
  238. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement