Advertisement
Guest User

Untitled

a guest
Nov 12th, 2021
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.90 KB | None | 0 0
  1. /** Selected Tab - Color like toolbar ***************************************/
  2. #tabbrowser-tabs:not([movingtab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-background[multiselected="true"]:-moz-lwtheme, #tabbrowser-tabs:not([movingtab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-background[selected="true"]:-moz-lwtheme {
  3.   /* Original: linear-gradient(var(--lwt-selected-tab-background-color, transparent), var(--lwt-selected-tab-background-color, transparent)), linear-gradient(var(--toolbar-bgcolor), var(--toolbar-bgcolor)), var(--lwt-header-image, none)
  4. */
  5.   background-image: linear-gradient(var(--toolbar-bgcolor, transparent), var(--toolbar-bgcolor, transparent)), linear-gradient(var(--toolbar-bgcolor), var(--toolbar-bgcolor)), var(--lwt-header-image, none) !important;
  6. }
  7.  
  8.  
  9. /* Multi Selected Color */
  10. .tab-background[multiselected="true"]:not([selected="true"]) > .tab-loading-burst.proton:not([bursting]) {
  11.   background: color-mix(in srgb, currentColor 65%, transparent);
  12.   opacity: .3;
  13. }
  14. #TabsToolbar[brighttext] .tab-background[multiselected="true"]:not([selected="true"]) > .tab-loading-burst.proton:not([bursting]) {
  15.   opacity: .15;
  16. }
  17.  
  18. /** Selected Tab - Color like toolbar ***************************************/
  19. .tab-context-line {
  20.   display: -moz-inline-box !important;
  21.   height: 2px !important;
  22.   border-radius: var(--tab-border-radius, 4px) var(--tab-border-radius, 4px) 0 0 !important;
  23. }
  24.  
  25. .tabbrowser-tab:is([selected], [multiselected]) .tab-context-line {
  26.   background-color: rgb(10, 132, 255) !important; /* Photon like color
  27.                                                    Default: var(--tab-line-color, rgb(10, 132, 255))
  28.                                                    Automatic: color-mix(in srgb, var(--button-primary-bgcolor) 80%, transparent) */
  29. }
  30.  
  31. .tabbrowser-tab:hover:not([selected="true"], [multiselected]) > .tab-stack > .tab-background > .tab-context-line {
  32.   background-color: rgba(0,0,0,.2) !important;
  33.   opacity: 1 !important;
  34.   transform: none !important;
  35. }
  36. #TabsToolbar[brighttext] .tabbrowser-tab:hover:not([selected="true"], [multiselected]) > .tab-stack > .tab-background > .tab-context-line {
  37.   background-color: rgba(255,255,255,.2) !important;
  38. }
  39.  
  40. .tabbrowser-tab:not([selected="true"], [multiselected]) .tab-context-line {
  41.   opacity: 0 !important;
  42.   transform: scaleX(0) !important;
  43. }
  44. .tabbrowser-tab:not([selected="true"], [multiselected]) .tab-context-line {
  45.   transition: transform 250ms var(--animation-easing-function), opacity 250ms var(--animation-easing-function) !important; /* --animation-easing-function: cubic-bezier(.07, .95, 0, 1); */
  46. }
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. /** Container Tab - Color line at icon's bottom *****************************/
  60.   .tab-content:not([titlechanged])::before {
  61.     /* Box Model */
  62.     content: "";
  63.     display: block;
  64.     position: absolute !important;
  65.  
  66.     /* Shape */
  67.     border-bottom: 2px solid color-mix(in srgb, var(--identity-icon-color) 75%, transparent);
  68.     width: 25%;
  69.  
  70.     /* Animate */
  71.     transition: 0.15s var(--animation-easing-function) !important;
  72.     transform: translate(9px, 12px) !important;
  73.   }
  74.   .tabbrowser-tab[visuallyselected]:not([pinned]) .tab-content::before {
  75.     width: calc(100% - 30px);
  76.     border-color: var(--identity-icon-color);
  77.   }
  78.   #tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab[visuallyselected]:not([pinned]) .tab-content::before {
  79.     width: calc(100% - 33px);
  80.   }
  81.  
  82.  
  83. /** Color line for Container Tab**/
  84.   .tab-content::after {
  85.     display: inline-block;
  86.     width: -moz-available;
  87.     height: 2px;
  88.     position: absolute;
  89.     bottom: 5px;
  90.     left: 0;
  91.     background: var(--identity-icon-color);
  92.     content: '';
  93.     margin: 0 var(--inline-tab-padding);
  94.   }
  95.  
  96.   :root[uidensity="compact"] .tab-content::after {
  97.     bottom: 3px;
  98.   }
  99.  
  100.   :root[uidensity="touch"] .tab-content::after {
  101.     bottom: 9px;
  102.   }
  103.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement