Last active
September 20, 2018 06:59
-
-
Save olafk/6136c445bbe517b873f6 to your computer and use it in GitHub Desktop.
liferay-6.2-drag-drop-indicator-cssonly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.portlet-dropzone { | |
transition: padding 0.5s linear; | |
} | |
.yui3-dd-drop-active-valid .portlet-dropzone { | |
outline: 1px dotted black; | |
padding: 10px; | |
margin: 3px; | |
min-height: 100px; | |
} |
This is great! I added another visual indicator on hover to further improve the usability on a Liferay 7.1 project:
.portlet-dropzone {
transition: padding 0.5s linear;
}
.yui3-dd-drop-active-valid {
.portlet-dropzone {
min-height: 100px;
margin: 3px;
padding: 10px;
outline: 1px dotted #007bff;
}
&.yui3-dd-drop-over {
.portlet-dropzone {
background-color: rgba(#ffd901, 0.2);
}
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
updated border to outline after Pier Paolo's response on https://www.liferay.com/web/olaf.kock/blog/-/blogs/dragging-and-dropping-portlets