Skip to content

Drag & drop: customize target with CSS #817

Answered by DmitrySharabin
GalinhaLX asked this question in Q&A
Discussion options

You must be logged in to vote

Since Mavo uses Dragula under the hood, I would suggest you take a look at the classes it exposes. That might help.

Here are the styles Mavo supports out-of-box (that you can override, of course 😄):

mavo/src-css/mavo.scss

Lines 148 to 175 in 4b719ae

[mv-list-item] {
position: relative;
&.mv-highlight { // basically &:has(> .mv-item-bar:hover)
@include highlight(hsla(80, 50%, 50%, .25), "!important");
}
// Dragula styles
&.gu-mirror {
position: fixed !important;
margin: 0 !important;
z-index: 9999 !important;
opacity: 0.8;
}
&.gu-transit {
opacity: 0.2;
}
}
.gu-hide {
display:

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GalinhaLX
Comment options

Answer selected by GalinhaLX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants