Advertisement
Guest User

Untitled

a guest
Jun 24th, 2014
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* VGD tabs
  2.  *    
  3.  * (c) 2014 vegasd
  4.  *
  5.  * Contains code from Mozilla Firefox 29, specifically
  6.  * <chrome://browser/skin/browser.css> and
  7.  * <chrome://global/skin/icons/close.svg>.
  8.  *
  9.  * Based on Firefox FlatStudio Tabs (like tabs-2.css) by Scott Zeid
  10.  *
  11.  * This Source Code Form is subject to the terms of the Mozilla Public
  12.  * License, v. 2.0. If a copy of the MPL was not distributed with this
  13.  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
  14.  *
  15.  */
  16.  
  17. @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
  18.  
  19. #TabsToolbar {
  20.  padding-right: 4px !important;
  21. }
  22.  
  23. .tabbrowser-tabs {
  24.  -moz-appearance: none !important;
  25.  min-height: 0 !important;
  26.  z-index: 1 !important;
  27. }
  28.  
  29. /* Must be `... > scrollbox`, not `... > .arrowscrollbox-scrollbox`
  30.    for Thunderbird */
  31. .tabbrowser-tabs .tabbrowser-arrowscrollbox > scrollbox {
  32.  padding: 0 !important;
  33.  
  34. }
  35.  
  36. .tabbrowser-tabs .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]),
  37. .tabbrowser-tabs .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]) {
  38.  border-style: none !important;
  39. }
  40.  
  41. .tabbrowser-tabs .scrollbutton-up {
  42.  padding-left: 3px !important;
  43. }
  44.  
  45. .tabbrowser-tabs .scrollbutton-up[disabled="true"] {
  46.  padding-left: 1px !important;
  47. }
  48.  
  49. /* margin-right has to be done on .tab-stack, not tab; otherwise pinned tabs
  50.    will not work correctly in overflow mode */
  51. .tabbrowser-tabs .tab-stack {
  52.  border-style: solid;
  53.  border-color: #666;
  54.  border-width: 0px 0px 0px 1px;
  55.  margin-right: 0px !important;  /* That's Numberwang! */
  56. }
  57.  
  58. .tabbrowser-tabs .tab-background {
  59.  margin: 0 !important;
  60.  background: transparent !important;
  61. }
  62.  
  63. /* background of active tab */
  64. .tabbrowser-tabs .tab-background[selected=true] {}
  65.  
  66. .tabbrowser-tabs .tab-background-start,
  67. .tabbrowser-tabs .tab-background-end {
  68.  display: none !important;
  69. }
  70.  
  71. /* Making this display: none; causes tabs to not respond to clicks */
  72. .tabbrowser-tabs .tab-background-middle {
  73.  margin: 0 !important;
  74.  border-style: none !important;
  75.  background: transparent !important;
  76. }
  77.  
  78. .tabbrowser-tabs .tab-content {
  79.  padding: 0 3px !important;  /* That's Numberwang! */
  80.  color: inherit !important;
  81. }
  82.  
  83. .tabbrowser-tabs .tab-content[selected=true] {
  84.  color: red !important;
  85. }
  86.  
  87. /* Fix position of title-changed-in-pinned-tab indicator */
  88. .tabbrowser-tabs .tabbrowser-tab[pinned][titlechanged]:not([selected="true"]) > .tab-stack > .tab-content {
  89.  background-position: center bottom 0 !important;
  90. }
  91.  
  92. .tabbrowser-tabs .tab-throbber,
  93. .tabbrowser-tabs .tab-icon-image {
  94.  margin-top: 0 !important;
  95. }
  96.  
  97. .tabbrowser-tabs .tab-close-button {
  98.  margin: -1px 0 0 5px !important;
  99. }
  100.  
  101. /* Close button icon */
  102.  
  103. .tabbrowser-tabs .tab-close-button,
  104. #TabsToolbar .tabs-closebutton {
  105.  -moz-appearance: none !important;
  106.  width: 16px !important; height: 16px !important;
  107.  background-repeat: no-repeat !important;
  108.  list-style-image: none !important;
  109.  color: inherit !important;
  110. }
  111.  
  112. /* The hover images are from FX 29's <chrome://global/skin/icons/close.svg>,
  113.    simplified by hand and with extra glyphs and styles removed.
  114.  */
  115.  
  116. .tabbrowser-tabs .tab-close-button:hover,
  117. #TabsToolbar .tabs-closebutton:hover {
  118.  background-image: url("data:image/svg+xml,<%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F>%0A<%21DOCTYPE svg PUBLIC %22-//W3C//DTD SVG 1.1//EN%22 %22http%3A//www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd%22>%0A%0A<svg version%3D%221.1%22 xmlns%3D%22http%3A//www.w3.org/2000/svg%22%0A     id%3D%22icon-close%22 x%3D%220px%22 y%3D%220px%22 width%3D%2216px%22 height%3D%2216px%22 viewBox%3D%220 0 16 16%22>%0A <defs>%0A  <style type%3D%22text/css%22><%21%5BCDATA%5B%0A   /%2A X Glyph Styles %2A/%0A   .hover %7B%0A    fill%3A %23fff%3B%0A   %7D%0A   .hover-shadow %7B%0A    fill%3A %23b32c12%3B%0A   %7D%0A   %0A   /%2A Close Button Background Styles %2A/%0A   .background-hover %7B%0A    fill%3A %23d93616%3B%0A   %7D%0A  %5D%5D></style>%0A </defs>%0A <g id%3D%22close-hover%22>%0A  <rect id%3D%22background%22 x%3D%222%22 y%3D%222%22 rx%3D%222%22 width%3D%2212%22 height%3D%2212%22 class%3D%22background-hover%22 />%0A  <polygon id%3D%22close-shadow%22 points%3D%224%2C5.5 5.5%2C4 8%2C6.5 10.5%2C4 12%2C5.5 9.5%2C8 12%2C10.5 10.5%2C12 8%2C9.5 5.5%2C12 4%2C10.5 6.5%2C8%22 class%3D%22hover-shadow%22 transform%3D%22translate%280%2C1%29%22 />%0A  <polygon id%3D%22close%22 points%3D%224%2C5.5 5.5%2C4 8%2C6.5 10.5%2C4 12%2C5.5 9.5%2C8 12%2C10.5 10.5%2C12 8%2C9.5 5.5%2C12 4%2C10.5 6.5%2C8%22 class%3D%22hover%22 />%0A </g>%0A</svg>%0A");
  119. }
  120.  
  121. .tabbrowser-tabs .tab-close-button:hover:active,
  122. #TabsToolbar .tabs-closebutton:hover:active {
  123.  background-image: url("data:image/svg+xml,<%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F>%0A<%21DOCTYPE svg PUBLIC %22-//W3C//DTD SVG 1.1//EN%22 %22http%3A//www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd%22>%0A%0A<svg version%3D%221.1%22 xmlns%3D%22http%3A//www.w3.org/2000/svg%22%0A     id%3D%22icon-close%22 x%3D%220px%22 y%3D%220px%22 width%3D%2216px%22 height%3D%2216px%22 viewBox%3D%220 0 16 16%22>%0A <defs>%0A  <style type%3D%22text/css%22><%21%5BCDATA%5B%0A   /%2A X Glyph Styles %2A/%0A   .hover-active %7B%0A    fill%3A %23fff%3B fill-opacity%3A .8%3B%0A   %7D%0A   .hover-active-shadow %7B%0A    fill%3A %2399260f%3B%0A   %7D%0A   %0A   /%2A Close Button Background Styles %2A/%0A   .background-hover-active %7B%0A    fill%3A %23b32c12%3B%0A   %7D%0A  %5D%5D></style>%0A </defs>%0A <g id%3D%22close-hover-active%22>%0A  <rect id%3D%22background%22 x%3D%222%22 y%3D%222%22 rx%3D%222%22 width%3D%2212%22 height%3D%2212%22 class%3D%22background-hover-active%22 />%0A  <polygon id%3D%22close-shadow%22 points%3D%224%2C5.5 5.5%2C4 8%2C6.5 10.5%2C4 12%2C5.5 9.5%2C8 12%2C10.5 10.5%2C12 8%2C9.5 5.5%2C12 4%2C10.5 6.5%2C8%22 class%3D%22hover-active-shadow%22 transform%3D%22translate%280%2C1%29%22 />%0A  <polygon id%3D%22close%22 points%3D%224%2C5.5 5.5%2C4 8%2C6.5 10.5%2C4 12%2C5.5 9.5%2C8 12%2C10.5 10.5%2C12 8%2C9.5 5.5%2C12 4%2C10.5 6.5%2C8%22 class%3D%22hover-active%22 />%0A </g>%0A</svg>%0A");
  124. }
  125.  
  126. /* Toolbar button */
  127.  
  128. #TabsToolbar .tabs-closebutton .toolbarbutton-icon {
  129.  visibility: collapse !important;
  130. }
  131.  
  132. /* End Toolbar button */
  133.  
  134. /* Fix Tab Mix Plus close-button-on-hover mode */
  135. .tabbrowser-tabs .tabbrowser-tab .tabs-closebutton {
  136.  background-position: 0 5px !important;
  137. }
  138.  
  139. /* End Close button icon */
  140.  
  141. /* Australis-specific */
  142.  
  143. /* Remove background tab separators */
  144. .tabbrowser-tabs[movingtab] > .tabbrowser-tab[beforeselected]:not([last-visible-tab])::after,
  145. .tabbrowser-tabs .tabbrowser-tab:not([selected]):not([afterselected-visible]):not([afterhovered]):not([first-visible-tab]):not(:hover)::before,
  146. .tabbrowser-tabs:not([overflow]) > .tabbrowser-tab[last-visible-tab]:not([selected]):not([beforehovered]):not(:hover)::after {
  147.  display: none !important;
  148. }
  149.  
  150. /* End Australis-specific */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement