Guest User

Untitled

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