mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
Add back the Quickdial show/hide control.
This also slightly tweaks the grid design styling. Resolves #563
This commit is contained in:
parent
64534aadb8
commit
3b3e4b4cc5
4 changed files with 25 additions and 3 deletions
|
|
@ -42,6 +42,18 @@ input[type=button] {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TOGGLE */
|
||||||
|
#newtab-toggle {
|
||||||
|
position: absolute;
|
||||||
|
top: 12px;
|
||||||
|
right: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#newtab-toggle:-moz-locale-dir(rtl) {
|
||||||
|
left: 12px;
|
||||||
|
right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* MARGINS */
|
/* MARGINS */
|
||||||
#newtab-vertical-margin {
|
#newtab-vertical-margin {
|
||||||
display: -moz-box;
|
display: -moz-box;
|
||||||
|
|
@ -100,7 +112,7 @@ input[type=button] {
|
||||||
-moz-box-orient: vertical;
|
-moz-box-orient: vertical;
|
||||||
min-width: 600px;
|
min-width: 600px;
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
transition: 300ms ease-out;
|
transition: 175ms ease-out;
|
||||||
transition-property: opacity;
|
transition-property: opacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -136,7 +148,7 @@ input[type=button] {
|
||||||
.newtab-site {
|
.newtab-site {
|
||||||
position: relative;
|
position: relative;
|
||||||
-moz-box-flex: 1;
|
-moz-box-flex: 1;
|
||||||
transition: 200ms ease-out;
|
transition: 150ms ease-out;
|
||||||
transition-property: top, left, opacity;
|
transition-property: top, left, opacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="newtab-margin-bottom"/>
|
<div id="newtab-margin-bottom"/>
|
||||||
|
<input id="newtab-toggle" type="button"/>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script type="text/javascript;version=1.8" src="chrome://browser/content/newtab/newTab.js"/>
|
<script type="text/javascript;version=1.8" src="chrome://browser/content/newtab/newTab.js"/>
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,10 @@ var gPage = {
|
||||||
// Listen for 'unload' to unregister this page.
|
// Listen for 'unload' to unregister this page.
|
||||||
addEventListener("unload", this, false);
|
addEventListener("unload", this, false);
|
||||||
|
|
||||||
|
// Listen for toggle button clicks.
|
||||||
|
let button = document.getElementById("newtab-toggle");
|
||||||
|
button.addEventListener("click", e => this.toggleEnabled(e));
|
||||||
|
|
||||||
// XXX bug 991111 - Not all click events are correctly triggered when
|
// XXX bug 991111 - Not all click events are correctly triggered when
|
||||||
// listening from xhtml nodes -- in particular middle clicks on sites, so
|
// listening from xhtml nodes -- in particular middle clicks on sites, so
|
||||||
// listen from the xul window and filter then delegate
|
// listen from the xul window and filter then delegate
|
||||||
|
|
@ -277,6 +281,11 @@ var gPage = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
toggleEnabled: function(aEvent) {
|
||||||
|
gAllPages.enabled = !gAllPages.enabled;
|
||||||
|
event.stopPropagation();
|
||||||
|
},
|
||||||
|
|
||||||
maybeShowAutoMigrationUndoNotification() {
|
maybeShowAutoMigrationUndoNotification() {
|
||||||
// sendAsyncMessage("NewTab:MaybeShowAutoMigrationUndoNotification");
|
// sendAsyncMessage("NewTab:MaybeShowAutoMigrationUndoNotification");
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ body {
|
||||||
|
|
||||||
.newtab-site:hover,
|
.newtab-site:hover,
|
||||||
.newtab-site[dragged] {
|
.newtab-site[dragged] {
|
||||||
box-shadow: 0 3px 10px rgba(8,20,37,.6);
|
box-shadow: 0 3px 6px 1px rgba(8,20,37,.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
.newtab-site[dragged] {
|
.newtab-site[dragged] {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue