Change active dragging color
This commit is contained in:
parent
e547d93fdc
commit
c966cfe17e
|
@ -1,4 +1,4 @@
|
||||||
/* global UI $$ updateInjectionOrder */
|
/* global $$ updateInjectionOrder */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// Polyfill for mobile? - https://caniuse.com/#feat=dragndrop
|
// Polyfill for mobile? - https://caniuse.com/#feat=dragndrop
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('dragstart', event => {
|
document.addEventListener('dragstart', event => {
|
||||||
const el = event.target.closest('.entry');
|
const el = event.target && event.target.closest('.entry');
|
||||||
if (el) {
|
if (el) {
|
||||||
dragged = el;
|
dragged = el;
|
||||||
el.classList.add('dragging');
|
el.classList.add('dragging');
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
document.addEventListener('dragenter', event => {
|
document.addEventListener('dragenter', event => {
|
||||||
const el = event.target.closest('.entry, .entry-header');
|
const el = event.target && event.target.closest('.entry, .entry-header');
|
||||||
if (el && dragged) {
|
if (el && dragged) {
|
||||||
// Insert after the target; keeps header at top
|
// Insert after the target; keeps header at top
|
||||||
el.after(dragged);
|
el.after(dragged);
|
||||||
|
|
|
@ -336,7 +336,7 @@ body.dragging .entry:not(.dragging) .entry-name:before {
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry.dragging {
|
.entry.dragging {
|
||||||
background: linear-gradient(to right, hsla(350, 50%, 30%, 0.2), hsla(180, 20%, 10%, 0.05) 50%, transparent);
|
background: linear-gradient(to right, hsla(255, 50%, 30%, 0.2), hsla(180, 20%, 10%, 0.05) 50%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry.enabled .entry-name:hover .style-name {
|
.entry.enabled .entry-name:hover .style-name {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user