Advertisement
Dragoner7

devedition.css from Firefox 39.0b7

Jul 5th, 2015
2,626
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. % This Source Code Form is subject to the terms of the Mozilla Public
  2. % License, v. 2.0. If a copy of the MPL was not distributed with this
  3. % file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4.  
  5. %include ../shared/devedition.inc.css
  6.  
  7. :root[devtoolstheme="dark"],
  8. :root[devtoolstheme="light"] {
  9.    /* Matches the #browser-border-start, #browser-border-end color */
  10.   --chrome-nav-bar-separator-color: rgba(10, 31, 51, 0.35);
  11. }
  12.  
  13. #TabsToolbar::after {
  14.   display: none;
  15. }
  16.  
  17. #back-button > .toolbarbutton-icon,
  18. #forward-button > .toolbarbutton-icon {
  19.   background: var(--chrome-nav-buttons-background) !important;
  20.   border-radius: 0 !important;
  21.   width: auto !important;
  22.   height: auto !important;
  23.   padding: 2px 6px !important;
  24.   margin: 0 !important;
  25.   border: none !important;
  26.   box-shadow: none !important;
  27. }
  28.  
  29. /* Override a box shadow for disabled back button */
  30. #main-window:not([customizing]) #back-button[disabled] > .toolbarbutton-icon {
  31.   box-shadow: none !important;
  32. }
  33.  
  34. /* Override !important properties for hovered back button */
  35. #main-window #back-button:hover:not([disabled="true"]) > .toolbarbutton-icon,
  36. #main-window #forward-button:hover:not([disabled="true"]) > .toolbarbutton-icon {
  37.   background: var(--chrome-nav-buttons-hover-background) !important;
  38.   box-shadow: none !important;
  39. }
  40.  
  41. #back-button > .toolbarbutton-icon {
  42.   border-radius: 2px 0 0 2px !important;
  43. }
  44.  
  45. #nav-bar .toolbarbutton-1:not([type=menu-button]),
  46. #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button,
  47. #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
  48.   padding-top: 2px;
  49.   padding-bottom: 2px;
  50. }
  51.  
  52. .tabbrowser-tab {
  53.   background-color: var(--tab-background-color);
  54. }
  55.  
  56. /* It'd be nice if there was an element in the scrollbox's inner content
  57.    that collapsed to the current width of the tabs. Since there isn't we
  58.    need to handle overflowing and non-overflowing tabs separately.
  59.  
  60.    In the case of overflowing tabs, set a border-top on the entire container,
  61.    otherwise we need to set it on each element individually */
  62. #main-window[sizemode=normal] .tabbrowser-tabs[overflow="true"] {
  63.   background-clip: padding-box;
  64.   border-top: 1px solid var(--chrome-nav-bar-separator-color);
  65.   -moz-border-end: 1px solid var(--chrome-nav-bar-separator-color);
  66.   background-color: var(--tab-background-color); /* Make sure there is no transparent gap during tab close animation */
  67. }
  68.  
  69. /* Add a border to the left of the first tab (or scroll arrow).  Using .tabbrowser-tabs
  70.    instead of #TabsToolbar because it will work even in customize mode. */
  71. #main-window[sizemode=normal] .tabbrowser-tabs {
  72.   background-clip: padding-box;
  73.   -moz-border-start: 1px solid var(--chrome-nav-bar-separator-color);
  74.   -moz-border-end: 1px solid transparent;
  75. }
  76.  
  77. #main-window[sizemode=normal] .tabbrowser-tabs:not([overflow="true"]) .tabbrowser-tab,
  78. #main-window[sizemode=normal] .tabbrowser-tabs:not([overflow="true"]) .tabbrowser-arrowscrollbox > .scrollbutton-down,
  79. #main-window[sizemode=normal] .tabbrowser-tabs:not([overflow="true"]) .tabbrowser-arrowscrollbox > .scrollbutton-up,
  80. #main-window[sizemode=normal] .tabbrowser-tabs:not([overflow="true"]) .tabs-newtab-button {
  81.   background-clip: padding-box;
  82.   border-top: 1px solid var(--chrome-nav-bar-separator-color);
  83. }
  84.  
  85. /* Allow the border-top rule to take effect */
  86. #main-window[sizemode=normal] .tabbrowser-tabs:not([overflow="true"]) .tabbrowser-tab {
  87.   -moz-border-top-colors: none;
  88. }
  89.  
  90. #main-window[sizemode=normal] .tabbrowser-tabs:not([overflow="true"]) .closing-tabs-spacer {
  91.   background-clip: padding-box;
  92.   -moz-border-start: 1px solid var(--chrome-nav-bar-separator-color);
  93. }
  94.  
  95. .tabs-newtab-button {
  96.   background: var(--tab-background-color);
  97. }
  98.  
  99. /* Use default window colors when in non-maximized mode */
  100. #tabbrowser-tabs,
  101. #TabsToolbar,
  102. #browser-panel,
  103. #titlebar-content {
  104.   background: transparent;
  105. }
  106.  
  107. /* Ensure that the entire background is styled when maximized */
  108. #main-window[sizemode="maximized"]:not([customizing]) #browser-panel {
  109.   background: var(--chrome-background-color) !important;
  110. }
  111.  
  112. /* The menu items need to be visible when the entire background is styled */
  113. #main-window[sizemode="maximized"] #main-menubar {
  114.   color: var(--chrome-color);
  115.   background-color: transparent;
  116. }
  117.  
  118. #main-window[sizemode="maximized"] #main-menubar > menu:not(:-moz-window-inactive) {
  119.   color: inherit;
  120. }
  121.  
  122. /* Use less opacity than normal since this is very dark, and on top of the default toolbar color */
  123. .tabbrowser-arrowscrollbox > .scrollbutton-up[disabled],
  124. .tabbrowser-arrowscrollbox > .scrollbutton-down[disabled] {
  125.   opacity: .6;
  126. }
  127.  
  128. /* Override scrollbutton gradients in normal and hover state */
  129. .tabbrowser-arrowscrollbox > .scrollbutton-down,
  130. .tabbrowser-arrowscrollbox > .scrollbutton-up {
  131.   background-image: none !important;
  132.   transition: none; /* scrollbutton-down has an unwanted transition on background color */
  133. }
  134.  
  135. /* Restore draggable space on the sides of tabs when maximized */
  136. #main-window[sizemode="maximized"] .tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
  137.   padding-left: 15px;
  138.   padding-right: 15px;
  139. }
  140.  
  141. #toolbar-menubar {
  142.   text-shadow: none !important;
  143. }
  144.  
  145. /* Override the padding that's intended to compensate for tabs that can overlap border-radius on nav-bar in default theme. */
  146. #main-window[sizemode=normal]:not([customizing]) #TabsToolbar {
  147.   padding-left: 0;
  148.   padding-right: 0;
  149. }
  150.  
  151. /* This rule is specific to the dark theme, because we only set the dropdown image there */
  152. :root[devtoolstheme="dark"] .searchbar-dropmarker-image {
  153.   /* Reset image-region from the windows theme */
  154.   -moz-image-region: auto !important;
  155.   /* Add margin otherwise it looks weird */
  156.   -moz-margin-start: 2px;
  157. }
  158.  
  159. /* Tab styling - make sure to use an inverted icon for the selected tab
  160.    (brighttext only covers the unselected tabs) */
  161. .tab-close-button[visuallyselected=true]:not(:hover) {
  162.   -moz-image-region: rect(0, 64px, 16px, 48px);
  163. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement