diff options
Diffstat (limited to 'vendor/oojs/oojs-ui/src/styles/elements/DraggableElement.less')
-rw-r--r-- | vendor/oojs/oojs-ui/src/styles/elements/DraggableElement.less | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/oojs/oojs-ui/src/styles/elements/DraggableElement.less b/vendor/oojs/oojs-ui/src/styles/elements/DraggableElement.less new file mode 100644 index 00000000..3f382766 --- /dev/null +++ b/vendor/oojs/oojs-ui/src/styles/elements/DraggableElement.less @@ -0,0 +1,22 @@ +@import '../common'; + +.oo-ui-draggableElement { + cursor: -webkit-grab -moz-grab, url(images/grab.cur), move; + + &-dragging { + cursor: -webkit-grabbing -moz-grabbing, url(images/grabbing.cur), move; + background: rgba( 0, 0, 0, 0.2 ); + opacity: 0.4; + } + + /* + * HACK: In order to style horizontally, we must override + * OO.ui.OptionWidget's display rule that is currently set + * to be 'block' + */ + .oo-ui-draggableGroupElement-horizontal &.oo-ui-optionWidget { + display: inline-block; + } + + .theme-oo-ui-draggableElement(); +} |