Trevor Parscal has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/177932

Change subject: Add cursor files
......................................................................

Add cursor files

Somehow, some idiot, merged some crap code that was using gmail URLs instead of 
referencing local cursor files.

Cool review bro. What were you on drugs or something?

Change-Id: Ifb4dcaabee633b8f90964780d3085b3efaddf69f
---
M Gruntfile.js
M src/styles/elements/DraggableElement.less
A src/styles/images/grab.cur
A src/styles/images/grabbing.cur
4 files changed, 8 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/32/177932/1

diff --git a/Gruntfile.js b/Gruntfile.js
index a0c13b7..d771d6a 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -171,6 +171,11 @@
                        }
                },
                copy: {
+                       cursors: {
+                               src: 'src/styles/images/*.cur',
+                               strip: 'src/styles/images/',
+                               dest: 'dist/images'
+                       },
                        imagesApex: {
                                src: 'src/themes/apex/images/**/*.{png,gif}',
                                strip: 'src/themes/apex/images',
@@ -331,7 +336,7 @@
 
        grunt.registerTask( 'build-code', [ 'concat:js', 'uglify' ] );
        grunt.registerTask( 'build-styling', [
-               'copy:lessTemp', 'colorizeSvg', 'less', 'copy:svg',
+               'copy:lessTemp', 'colorizeSvg', 'less', 'copy:cursors', 
'copy:svg',
                'copy:imagesApex', 'copy:imagesMediaWiki', 'svg2png',
                'concat:css', 'cssjanus', 'csscomb', 'cssmin'
        ] );
diff --git a/src/styles/elements/DraggableElement.less 
b/src/styles/elements/DraggableElement.less
index 39a3e36..3f38276 100644
--- a/src/styles/elements/DraggableElement.less
+++ b/src/styles/elements/DraggableElement.less
@@ -1,10 +1,10 @@
 @import '../common';
 
 .oo-ui-draggableElement {
-       cursor: -webkit-grab -moz-grab, 
url(https://mail.google.com/mail/images/2/openhand.cur), move;
+       cursor: -webkit-grab -moz-grab, url(images/grab.cur), move;
 
        &-dragging {
-               cursor: -webkit-grabbing -moz-grabbing, 
url(https://mail.google.com/mail/images/2/closedhand.cur), move;
+               cursor: -webkit-grabbing -moz-grabbing, 
url(images/grabbing.cur), move;
                background: rgba( 0, 0, 0, 0.2 );
                opacity: 0.4;
        }
diff --git a/src/styles/images/grab.cur b/src/styles/images/grab.cur
new file mode 100644
index 0000000..fba3ddc
--- /dev/null
+++ b/src/styles/images/grab.cur
Binary files differ
diff --git a/src/styles/images/grabbing.cur b/src/styles/images/grabbing.cur
new file mode 100644
index 0000000..41aaa62
--- /dev/null
+++ b/src/styles/images/grabbing.cur
Binary files differ

-- 
To view, visit https://gerrit.wikimedia.org/r/177932
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb4dcaabee633b8f90964780d3085b3efaddf69f
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Trevor Parscal <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to