Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* VGD tabs
- *
- * (c) 2014 vegasd
- *
- * Contains code from Mozilla Firefox 29, specifically
- * <chrome://browser/skin/browser.css> and
- * <chrome://global/skin/icons/close.svg>.
- *
- * Based on Firefox FlatStudio Tabs (like tabs-2.css) by Scott Zeid
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/.
- *
- */
- @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
- #TabsToolbar {
- padding-right: 4px !important;
- }
- .tabbrowser-tabs {
- -moz-appearance: none !important;
- min-height: 0 !important;
- z-index: 1 !important;
- }
- /* Must be `... > scrollbox`, not `... > .arrowscrollbox-scrollbox`
- for Thunderbird */
- .tabbrowser-tabs .tabbrowser-arrowscrollbox > scrollbox {
- padding: 0 !important;
- }
- .tabbrowser-tabs .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]),
- .tabbrowser-tabs .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]) {
- border-style: none !important;
- }
- .tabbrowser-tabs .scrollbutton-up {
- padding-left: 3px !important;
- }
- .tabbrowser-tabs .scrollbutton-up[disabled="true"] {
- padding-left: 1px !important;
- }
- /* margin-right has to be done on .tab-stack, not tab; otherwise pinned tabs
- will not work correctly in overflow mode */
- .tabbrowser-tabs .tab-stack {
- border-style: solid;
- border-color: #666;
- border-width: 0px 0px 0px 1px;
- margin-right: 0px !important; /* That's Numberwang! */
- }
- .tabbrowser-tabs .tab-background {
- margin: 0 !important;
- background: transparent !important;
- }
- /* background of active tab */
- .tabbrowser-tabs .tab-background[selected=true] {}
- .tabbrowser-tabs .tab-background-start,
- .tabbrowser-tabs .tab-background-end {
- display: none !important;
- }
- /* Making this display: none; causes tabs to not respond to clicks */
- .tabbrowser-tabs .tab-background-middle {
- margin: 0 !important;
- border-style: none !important;
- background: transparent !important;
- }
- .tabbrowser-tabs .tab-content {
- padding: 0 3px !important; /* That's Numberwang! */
- color: inherit !important;
- }
- .tabbrowser-tabs .tab-content[selected=true] {
- color: red !important;
- }
- /* Fix position of title-changed-in-pinned-tab indicator */
- .tabbrowser-tabs .tabbrowser-tab[pinned][titlechanged]:not([selected="true"]) > .tab-stack > .tab-content {
- background-position: center bottom 0 !important;
- }
- .tabbrowser-tabs .tab-throbber,
- .tabbrowser-tabs .tab-icon-image {
- margin-top: 0 !important;
- }
- .tabbrowser-tabs .tab-close-button {
- margin: -1px 0 0 5px !important;
- }
- /* Close button icon */
- .tabbrowser-tabs .tab-close-button,
- #TabsToolbar .tabs-closebutton {
- -moz-appearance: none !important;
- width: 16px !important; height: 16px !important;
- background-repeat: no-repeat !important;
- list-style-image: none !important;
- color: inherit !important;
- }
- /* The hover images are from FX 29's <chrome://global/skin/icons/close.svg>,
- simplified by hand and with extra glyphs and styles removed.
- */
- .tabbrowser-tabs .tab-close-button:hover,
- #TabsToolbar .tabs-closebutton:hover {
- 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");
- }
- .tabbrowser-tabs .tab-close-button:hover:active,
- #TabsToolbar .tabs-closebutton:hover:active {
- 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");
- }
- /* Toolbar button */
- #TabsToolbar .tabs-closebutton .toolbarbutton-icon {
- visibility: collapse !important;
- }
- /* End Toolbar button */
- /* Fix Tab Mix Plus close-button-on-hover mode */
- .tabbrowser-tabs .tabbrowser-tab .tabs-closebutton {
- background-position: 0 5px !important;
- }
- /* End Close button icon */
- /* Australis-specific */
- /* Remove background tab separators */
- .tabbrowser-tabs[movingtab] > .tabbrowser-tab[beforeselected]:not([last-visible-tab])::after,
- .tabbrowser-tabs .tabbrowser-tab:not([selected]):not([afterselected-visible]):not([afterhovered]):not([first-visible-tab]):not(:hover)::before,
- .tabbrowser-tabs:not([overflow]) > .tabbrowser-tab[last-visible-tab]:not([selected]):not([beforehovered]):not(:hover)::after {
- display: none !important;
- }
- /* End Australis-specific */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement