зеркало из https://github.com/mozilla/pjs.git
Bug 677027 - Implement conditional forward button for gnomestripe. r=shorlander
--HG-- extra : rebase_source : cc0ea86a2df2cfc900e33353935620da24cf3c5b
This commit is contained in:
Родитель
ee373508e0
Коммит
974411e5cc
|
@ -604,18 +604,37 @@ toolbar[mode="full"] .toolbarbutton-1 > .toolbarbutton-menubutton-button {
|
||||||
|
|
||||||
#forward-button {
|
#forward-button {
|
||||||
list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=toolbar");
|
list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=toolbar");
|
||||||
|
-moz-transition: 250ms ease-out;
|
||||||
}
|
}
|
||||||
#forward-button[disabled="true"] {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=toolbar&state=disabled");
|
|
||||||
}
|
|
||||||
|
|
||||||
#forward-button:-moz-locale-dir(rtl) {
|
#forward-button:-moz-locale-dir(rtl) {
|
||||||
list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=toolbar");
|
list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=toolbar");
|
||||||
}
|
}
|
||||||
#forward-button[disabled="true"]:-moz-locale-dir(rtl) {
|
|
||||||
|
toolbar:not([mode=icons]) #forward-button[disabled="true"] {
|
||||||
|
list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=toolbar&state=disabled");
|
||||||
|
}
|
||||||
|
toolbar:not([mode=icons]) #forward-button[disabled="true"]:-moz-locale-dir(rtl) {
|
||||||
list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=toolbar&state=disabled");
|
list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=toolbar&state=disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toolbar[mode=icons] #forward-button[disabled="true"] {
|
||||||
|
-moz-transform: scale(0);
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
toolbar[mode=icons] #forward-button[disabled="true"]:-moz-locale-dir(ltr) {
|
||||||
|
margin-left: -36px;
|
||||||
|
}
|
||||||
|
toolbar[mode=icons] #forward-button[disabled="true"]:-moz-locale-dir(rtl) {
|
||||||
|
margin-right: -36px;
|
||||||
|
}
|
||||||
|
toolbar[mode=icons][iconsize=small] #forward-button[disabled="true"]:-moz-locale-dir(ltr) {
|
||||||
|
margin-left: -28px;
|
||||||
|
}
|
||||||
|
toolbar[mode=icons][iconsize=small] #forward-button[disabled="true"]:-moz-locale-dir(rtl) {
|
||||||
|
margin-right: -28px;
|
||||||
|
}
|
||||||
|
|
||||||
#reload-button {
|
#reload-button {
|
||||||
list-style-image: url("moz-icon://stock/gtk-refresh?size=toolbar");
|
list-style-image: url("moz-icon://stock/gtk-refresh?size=toolbar");
|
||||||
}
|
}
|
||||||
|
@ -787,7 +806,7 @@ toolbar[iconsize="small"] #forward-button {
|
||||||
.unified-nav-forward[_moz-menuactive] {
|
.unified-nav-forward[_moz-menuactive] {
|
||||||
list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=menu") !important;
|
list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=menu") !important;
|
||||||
}
|
}
|
||||||
toolbar[iconsize="small"] #forward-button[disabled="true"] {
|
toolbar[iconsize="small"]:not([mode=icons]) #forward-button[disabled="true"] {
|
||||||
list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=menu&state=disabled");
|
list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=menu&state=disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -797,7 +816,7 @@ toolbar[iconsize="small"] #forward-button:-moz-locale-dir(rtl) {
|
||||||
.unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) {
|
.unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) {
|
||||||
list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=menu") !important;
|
list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=menu") !important;
|
||||||
}
|
}
|
||||||
toolbar[iconsize="small"] #forward-button[disabled="true"]:-moz-locale-dir(rtl) {
|
toolbar[iconsize="small"]:not([mode=icons]) #forward-button[disabled="true"]:-moz-locale-dir(rtl) {
|
||||||
list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=menu&state=disabled");
|
list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=menu&state=disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче