shurik192 [more=Пробуйте...]
Код: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace svg url("http://www.w3.org/2000/svg");
/*AGENT_SHEET*/
/*
Автор: Виталий В.
Описание: Для Firefox 31 и выше.
ОС: Windows, Linux (только для кнопок в полноэкранном режиме).
Сайт:
https://sites.google.com/site/serials101 */
@-moz-document url("chrome://browser/content/browser.xul") {
/*Бордюры и кнопки управления окном*/
#main-window[sizemode="normal"] #navigator-toolbox > toolbar {
border-left: none !important;
border-right: none !important;
}
#main-window[sizemode="normal"] #navigator-toolbox {
border-left: none !important;
border-right: none !important;
}
#main-window[sizemode="normal"] #browser-border-start,
#main-window[sizemode="normal"] #browser-border-end {
width: 0 !important;
}
#browser-bottombox {
border: none !important;
}
@media (-moz-windows-compositor) {
#main-window[sizemode="normal"]:not([tabsontop]) > #titlebar > #titlebar-content {
border-top: none !important;
}
#main-window[sizemode="normal"] #titlebar-buttonbox, #main-window[sizemode="normal"] #appmenu-button-container,
#main-window[sizemode="normal"]:not([tabsontop]) > #tab-view-deck > #browser-panel > #navigator-toolbox > #toolbar-menubar {
margin-top: 0 !important;
}
#main-window[sizemode="normal"][tabsontop] > #titlebar > #titlebar-content,
#main-window[sizemode="normal"][tabsintitlebar]:not([tabsontop]) > #tab-view-deck > #browser-panel {
-moz-border-top-colors: none !important;
border-top: 1px solid CaptionText !important; /*цвет верхнего бордюра активного окна (кроме дефолтной темы)*/
}
#main-window[sizemode="normal"][tabsontop] > #titlebar > #titlebar-content:-moz-window-inactive,
#main-window[sizemode="normal"][tabsintitlebar]:not([tabsontop]) > #tab-view-deck > #browser-panel:-moz-window-inactive {
border-top-color: InactiveCaptionText !important; /*цвет верхнего бордюра неактивного окна*/
}
#main-window[sizemode="normal"][tabsintitlebar]:not([tabsontop]) #titlebar-buttonbox-container {
margin-top: 1px !important;
}
#main-window #titlebar-buttonbox {
-moz-appearance: none !important;
}
#main-window[sizemode="maximized"] #titlebar-buttonbox {
-moz-margin-end: 0px !important;
}
#main-window[sizemode="maximized"] #titlebar #titlebar-buttonbox-container #titlebar-buttonbox .titlebar-button {
padding-top: 2px !important;
padding-bottom: 2px !important;
}
#main-window {
-moz-appearance: window !important;
}
#main-window:not([style*="background-color"]) {
background-color: ActiveCaption !important;
}
#main-window[style*="chrome/browser/content/browser/defaultthemes/devedition.header.png"],
#main-window:not([style*="background-image"]) {
background-image: linear-gradient(ActiveCaption, ActiveCaption) !important;
}
#main-window:not([style*="background-color"]):-moz-window-inactive {
background-color: InactiveCaption !important;
}
#main-window[style*="chrome/browser/content/browser/defaultthemes/devedition.header.png"]:-moz-window-inactive,
#main-window:not([style*="background-image"]):-moz-window-inactive {
background-image: linear-gradient(InactiveCaption, InactiveCaption) !important;
}
#main-window #TabsToolbar:not(:-moz-lwtheme)::after {
display: none !important;
}
@media (-moz-windows-default-theme) {
#main-window[sizemode="normal"][tabsontop] > #titlebar > #titlebar-content,
#main-window[sizemode="normal"][tabsintitlebar]:not([tabsontop]) > #tab-view-deck > #browser-panel {
border-top-color: rgb(90,96,103) !important;
}
#main-window[sizemode="normal"][tabsontop] > #titlebar > #titlebar-content:-moz-window-inactive,
#main-window[sizemode="normal"][tabsintitlebar]:not([tabsontop]) > #tab-view-deck > #browser-panel:-moz-window-inactive {
border-top-color: rgba(102,102,102,0.65) !important;
}
#main-window:not([style*="background-color"]) {
background-color: hsl(0, 0%, 78%) !important;
}
#main-window[style*="chrome/browser/content/browser/defaultthemes/devedition.header.png"],
#main-window:not([style*="background-image"]) {
background-image: linear-gradient(hsl(0, 0%, 78%), hsl(0, 0%, 78%)) !important;
}
#main-window:not([style*="background-color"]):-moz-window-inactive {
background-color: hsl(0, 0%, 88%) !important;
}
#main-window[style*="chrome/browser/content/browser/defaultthemes/devedition.header.png"]:-moz-window-inactive,
#main-window:not([style*="background-image"]):-moz-window-inactive {
background-image: linear-gradient(hsl(0, 0%, 88%), hsl(0, 0%, 88%)) !important;
}
}
}
#main-window #titlebar-buttonbox {
z-index: 2 !important;
}
#window-controls {
-moz-box-align: start !important;
}
#titlebar-buttonbox-container .titlebar-button, #minimize-button, #restore-button, #close-button {
-moz-appearance: none !important;
display: -moz-box !important;
margin: 0px !important;
background-origin: border-box !important;
background-clip: border-box !important;
-moz-image-region: auto !important;
background-color: transparent;
-moz-border-top-colors: none !important;
-moz-border-bottom-colors: none !important;
-moz-border-left-colors: none !important;
-moz-border-right-colors: none !important;
border: 1px solid transparent !important;
border-radius: 0px !important;
}
#titlebar-buttonbox-container .titlebar-button:not(:-moz-lwtheme):-moz-window-inactive {
border-color: transparent !important;
}
#titlebar-buttonbox-container .titlebar-button > .toolbarbutton-icon, #window-controls .toolbarbutton-icon {
width: 12px !important;
height: 12px !important;
padding: 0px !important;
margin: 0px !important;
}
#titlebar-buttonbox-container #titlebar-min, #minimize-button {
list-style-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><line x1='1.5' y1='6.5' x2='10.5' y2='6.5' style='stroke-width:0.9px;fill:none;stroke:WhiteSmoke;shape-rendering:crispEdges;opacity:0.75'/></svg>") !important;
padding: 2px 4px !important;
-moz-margin-end: 1px !important;
}
#titlebar-buttonbox-container #titlebar-min:-moz-lwtheme, #minimize-button:-moz-lwtheme {
list-style-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><line x1='1.5' y1='6.5' x2='10.5' y2='6.5' style='stroke-width:0.9px;fill:none;stroke:DimGray;shape-rendering:crispEdges;opacity:0.75'/></svg>") !important;
}
#titlebar-buttonbox-container #titlebar-min:-moz-lwtheme-brighttext, #minimize-button:-moz-lwtheme-brighttext {
list-style-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><line x1='1.5' y1='6.5' x2='10.5' y2='6.5' style='stroke-width:0.9px;fill:none;stroke:WhiteSmoke;shape-rendering:crispEdges;opacity:0.75'/></svg>") !important;
}
#titlebar-buttonbox-container #titlebar-min:hover, #minimize-button:hover {
border-color: rgba(52,153,255,0.3) !important;
background-image: linear-gradient(rgba(52,153,255,0.3), rgba(52,153,255,0.3)) !important;
box-shadow: 0 0 3px 1px rgba(52,153,255,0.3) !important;
}
#titlebar-buttonbox-container #titlebar-min:hover:active, #minimize-button:hover:active {
background-image: linear-gradient(rgba(47,138,230,0.4), rgba(147,138,230,0.4)) !important;
}
#main-window[sizemode="maximized"] #titlebar-max, #restore-button {
list-style-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><g style='stroke-width:0.9px;fill:none;stroke:WhiteSmoke;shape-rendering:crispEdges;opacity:0.75'><rect x='1.5' y='4.5' width='7' height='5'/><polyline points='2.5,4 2.5,2.5 10.5,2.5 10.5,8.5 9,8.5'/></g></svg>") !important;
padding: 2px 4px !important;
-moz-margin-end: 1px !important;
}
#main-window[sizemode="maximized"] #titlebar-max:-moz-lwtheme, #restore-button:-moz-lwtheme {
list-style-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><g style='stroke-width:0.9px;fill:none;stroke:DimGray;shape-rendering:crispEdges;opacity:0.75'><rect x='1.5' y='4.5' width='7' height='5'/><polyline points='2.5,4 2.5,2.5 10.5,2.5 10.5,8.5 9,8.5'/></g></svg>") !important;
}
#main-window[sizemode="maximized"] #titlebar-max:-moz-lwtheme-brighttext, #restore-button:-moz-lwtheme-brighttext {
list-style-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><g style='stroke-width:0.9px;fill:none;stroke:WhiteSmoke;shape-rendering:crispEdges;opacity:0.75'><rect x='1.5' y='4.5' width='7' height='5'/><polyline points='2.5,4 2.5,2.5 10.5,2.5 10.5,8.5 9,8.5'/></g></svg>") !important;
}
#main-window[sizemode="maximized"] #titlebar-max:hover, #restore-button:hover {
border-color: rgba(52,153,255,0.3) !important;
background-image: linear-gradient(rgba(52,153,255,0.3), rgba(52,153,255,0.3)) !important;
box-shadow: 0 0 3px 1px rgba(52,153,255,0.3) !important;
}
#main-window[sizemode="maximized"] #titlebar-max:hover:active, #restore-button:hover:active {
background-image: linear-gradient(rgba(47,138,230,0.4), rgba(47,138,230,0.4)) !important;
}
#main-window[sizemode="normal"] #titlebar-max {
list-style-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><rect x='1.5' y='2.5' width='9' height='7' style='stroke-width:0.9px;fill:none;stroke:WhiteSmoke;shape-rendering:crispEdges;opacity:0.75'/></svg>") !important;
padding: 2px 4px !important;
-moz-margin-end: 1px !important;
}
#main-window[sizemode="normal"] #titlebar-max:-moz-lwtheme {
list-style-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><rect x='1.5' y='2.5' width='9' height='7' style='stroke-width:0.9px;fill:none;stroke:DimGray;shape-rendering:crispEdges;opacity:0.75'/></svg>") !important;
}
#main-window[sizemode="normal"] #titlebar-max:-moz-lwtheme-brighttext {
list-style-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><rect x='1.5' y='2.5' width='9' height='7' style='stroke-width:0.9px;fill:none;stroke:WhiteSmoke;shape-rendering:crispEdges;opacity:0.75'/></svg>") !important;
}
#main-window[sizemode="normal"] #titlebar-max:hover {
border-color: rgba(52,153,255,0.3) !important;
background-image: linear-gradient(rgba(52,153,255,0.3), rgba(52,153,255,0.3)) !important;
box-shadow: 0 0 3px 1px rgba(52,153,255,0.3) !important;
}
#main-window[sizemode="normal"] #titlebar-max:hover:active {
background-image: linear-gradient(rgba(47,138,230,0.4), rgba(47,138,230,0.4)) !important;
}
#titlebar-buttonbox-container #titlebar-close, #close-button {
list-style-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><path d='M2,2 l 8,8 M2,10 l 8,-8' style='stroke-width:0.9px;fill:none;stroke:WhiteSmoke'/></svg>") !important;
padding: 2px 11px !important;
border-color: rgba(0,0,0,0.35) !important;
background-image: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0)), linear-gradient(rgb(199,70,70), rgb(199,70,70)) !important;
}
#close-button {
padding-left: 4px !important;
padding-right: 4px !important;
}
#titlebar-buttonbox-container #titlebar-close:hover, #close-button:hover {
border-color: rgba(0,0,0,0.2) !important;
background-image: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0)), linear-gradient(rgb(224,67,67), rgb(224,67,67)) !important;
box-shadow: 0 0 3px 1px rgba(224,67,67,0.3) !important;
}
#titlebar-buttonbox-container #titlebar-close:hover:active, #close-button:hover:active {
background-image: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.1)), linear-gradient(rgb(204,61,61), rgb(204,61,61)) !important;
}
#titlebar-buttonbox-container #titlebar-close:not(:hover):not(:active):-moz-window-inactive {
background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)) !important;
border-color: transparent !important;
}
/*--------------------------------*/
}