зеркало из https://github.com/mozilla/pjs.git
Bug 697750 - Follow-up: replace about:home sync "links" (actually buttons) with links. r=gavin.sharp
This commit is contained in:
Родитель
e48b5e939f
Коммит
76665d9fa7
|
@ -373,25 +373,8 @@ body[dir=rtl] #restorePreviousSession::before {
|
||||||
padding-top: 1em;
|
padding-top: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hack to make buttons appear as links. Necessary to piggyback on browser.js
|
|
||||||
* OnBrowserClick listener, which checks that click originates from a button.
|
|
||||||
*/
|
|
||||||
.sync-link {
|
.sync-link {
|
||||||
-moz-appearance: none;
|
padding: 1em;
|
||||||
outline: none;
|
|
||||||
border: none;
|
|
||||||
color: -moz-hyperlinktext;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sync-link:hover {
|
|
||||||
color: -moz-activehyperlinktext;
|
|
||||||
text-decoration: underline;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sync-link:active {
|
|
||||||
padding: 0px 6px 0px 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (max-height: 370px) {
|
@media all and (max-height: 370px) {
|
||||||
|
|
|
@ -103,8 +103,8 @@
|
||||||
<a href="http://www.mozilla.com/about/">&abouthome.aboutMozilla;</a>
|
<a href="http://www.mozilla.com/about/">&abouthome.aboutMozilla;</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="syncLinksContainer">
|
<div id="syncLinksContainer">
|
||||||
<button class="sync-link" id="setupSyncLink">&abouthome.syncSetup.label;</button>
|
<a href="javascript:void(0);" class="sync-link" id="setupSyncLink">&abouthome.syncSetup.label;</a>
|
||||||
<button class="sync-link" id="pairDeviceLink">&abouthome.pairDevice.label;</button>
|
<a href="javascript:void(0);" class="sync-link" id="pairDeviceLink">&abouthome.pairDevice.label;</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -2687,7 +2687,9 @@ function BrowserOnAboutPageLoad(document) {
|
||||||
*/
|
*/
|
||||||
function BrowserOnClick(event) {
|
function BrowserOnClick(event) {
|
||||||
// Don't trust synthetic events
|
// Don't trust synthetic events
|
||||||
if (!event.isTrusted || event.target.localName != "button")
|
if (!event.isTrusted ||
|
||||||
|
(event.target.localName != "button" &&
|
||||||
|
event.target.className != "sync-link"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var ot = event.originalTarget;
|
var ot = event.originalTarget;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче