Bug 677667 - [Mac Default] Make use of the new nsNativeTheme toolbarbutton styling in DM and PageInfo. r=Mnyromyr.

This commit is contained in:
stefanh@inbox.com 2011-12-19 20:14:00 +01:00
Родитель 16178fe29c
Коммит 69b82994f6
2 изменённых файлов: 17 добавлений и 95 удалений

Просмотреть файл

@ -44,39 +44,11 @@
*/
#clearListButton {
-moz-appearance: none;
-moz-box-orient: vertical;
-moz-box-align: center;
-moz-appearance: toolbarbutton;
text-shadow: 0 1px rgba(255, 255, 255, 0.4);
padding: 0;
margin: 2px 4px 0 4px;
min-height: 20px;
margin: 0 6px;
min-height: 18px;
min-width: 0;
border: 1px solid rgba(59, 59, 59, 0.9);
border-radius: 3px;
box-shadow: 0 1px rgba(255, 255, 255, 0.4);
background-color: #B5B5B5;
background-image: -moz-linear-gradient(top, #FFFFFF, #ADADAD);
}
#clearListButton:active:hover:not([disabled="true"]) {
background-image: none;
box-shadow: inset rgba(0, 0, 0, 0.3) 0 -6px 10px, inset #000000 0 1px 3px, inset rgba(0, 0, 0, 0.2) 0 1px 3px, 0 1px rgba(255, 255, 255, .4);
}
#clearListButton:-moz-focusring {
border-color: rgba(102, 122, 155, 0.9);
box-shadow: inset 0 0 1px -moz-mac-focusring, 0 0 4px 1px -moz-mac-focusring, 0 0 1.5px 1px -moz-mac-focusring;
}
#clearListButton:-moz-system-metric(mac-graphite-theme):-moz-focusring {
border-color: rgba(59, 59, 59, 0.7);
}
#clearListButton[disabled="true"],
#clearListButton:-moz-window-inactive {
border-color: rgba(146, 146, 146, 0.84);
background-image: -moz-linear-gradient(top, #FFFFFF, #CCCCCC);
}
treechildren::-moz-tree-image {

Просмотреть файл

@ -40,14 +40,12 @@
@import "chrome://global/skin/";
#main-window {
border: none !important;
-moz-appearance: none !important;
width: 600px !important;
height: 530px !important;
}
windowdragbox {
height: 36px;
min-height: 20px;
-moz-appearance: -moz-mac-unified-toolbar;
-moz-box-align: center;
}
@ -60,11 +58,19 @@ windowdragbox {
#tabs {
padding: 1px;
margin: 5px 0 9px;
-moz-appearance: none;
background-color: rgba(0, 0, 0, 0.55);
border-radius: 3px;
box-shadow: 0 1px rgba(255, 255, 255, 0.4);
margin: 3px 0 8px;
}
tab {
-moz-appearance: toolbarbutton;
-moz-box-orient: vertical;
text-shadow: 0 1px rgba(255, 255, 255, 0.4);
margin: 0;
}
tab[selected=true] {
color: #FFFFFF;
text-shadow: 0 1px rgba(0, 0, 0, 0.4);
}
.tab-middle {
@ -79,62 +85,6 @@ windowdragbox {
-moz-appearance: none;
}
tab {
-moz-appearance: none;
-moz-box-orient: vertical;
font: menu;
text-shadow: 0 1px rgba(255, 255, 255, 0.4);
margin: 0;
padding: 0 4px;
border: none;
border-left: 1px solid rgba(0, 0, 0, 0.8);
background: -moz-linear-gradient(top, #FFF, #ADADAD) repeat-x;
}
tab:active:hover {
background: #B5B5B5;
box-shadow: inset rgba(0, 0, 0, 0.3) 0 -6px 10px, inset #000 0 1px 3px, inset rgba(0, 0, 0, 0.2) 0 1px 3px;
}
tab[selected=true] {
color: #FFF !important;
text-shadow: 0 1px rgba(0, 0, 0, 0.4);
background: #606060;
box-shadow: inset #2A2A2A 0 3px 3.5px;
}
tab[selected=true]:active:hover {
background-color: #4E4E4E;
box-shadow: inset #1c1c1c 0 3px 3.5px;
}
#tabs:-moz-window-inactive {
background-color: rgba(0, 0, 0, 0.25);
}
tab:-moz-window-inactive {
border-color: rgba(0, 0, 0, 0.4);
background-image: -moz-linear-gradient(top, #FFF, #CCC);
}
tab[selected=true]:-moz-window-inactive {
background: #8E8E8E;
box-shadow: inset rgba(0, 0, 0, 0.5) 0 3px 3.5px;
}
#tabs:-moz-locale-dir(ltr) > :first-child,
#tabs:-moz-locale-dir(rtl) > :last-child {
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
border-left: none !important;
}
#tabs:-moz-locale-dir(ltr) > :last-child,
#tabs:-moz-locale-dir(rtl) > :first-child {
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
/* Misc */
tree {
margin: .5em;