Created
February 4, 2015 09:52
-
-
Save poteto/f5b26831013d37e062e5 to your computer and use it in GitHub Desktop.
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
$default-margin : 20px; | |
$gray-light : #e1e1e1; | |
$gray-medium : #aaa; | |
$green : #2ecc71; | |
$white : #fff; | |
$black : #111; | |
.draggableDropzone { | |
display: block; | |
border: 3px dashed $gray-medium; | |
padding: $default-margin / 2; | |
width: 100%; | |
min-height: $default-margin * 2.5; | |
color: $gray-medium; | |
margin-bottom: $default-margin / 2; | |
&.activated { | |
border-color: $green; | |
} | |
&.deactivated { | |
border-color: $gray-light; | |
} | |
} | |
.draggableItem[draggable=true] { | |
display: inline-block; | |
min-width: $default-margin; | |
min-height: $default-margin; | |
background: $gray-light; | |
padding: $default-margin / 4 $default-margin / 2; | |
margin: $default-margin / 4; | |
-moz-user-select: none; | |
-khtml-user-drag: element; | |
cursor: move; | |
&:hover { | |
background-color: $gray-medium; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment