Skip to content

Commit

Permalink
Remove cursor files
Browse files Browse the repository at this point in the history
  • Loading branch information
marcojakob committed Jun 21, 2018
1 parent 3eadc44 commit fb5c624
Show file tree
Hide file tree
Showing 18 changed files with 113 additions and 85 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 1.1.0 (2018-06-21)

- Remove cursor files. Support for `grab`, `-webkit-grab`, `grabbing`, and `-webkit-grabbing` is good enough.

## Version 1.0.0 (2018-06-13)

- Migrate to Dart 2.
Expand Down
10 changes: 6 additions & 4 deletions example/basic/example.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ body {
.document {
margin-top: 10px;
display: block;
cursor: url(packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.dnd-over {
Expand All @@ -42,6 +43,7 @@ body {

.dnd-dragging,
.dnd-drag-occurring {
cursor: url(packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}
19 changes: 11 additions & 8 deletions example/cancel/example.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
html, body {
html,
body {
height: 100%;
}

Expand All @@ -23,8 +24,9 @@ body {
height: 210px;
background: #cddc39;
border-radius: 8px;
cursor: url(packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.no-drag {
Expand All @@ -48,12 +50,13 @@ button {
height: 30px;
}


.dnd-draggable, .dnd-drag-occurring {
cursor: url(packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
.dnd-draggable,
.dnd-drag-occurring {
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}

.dnd-dragging {
opacity: 0.5;
}
}
10 changes: 6 additions & 4 deletions example/custom_acceptor/example.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ body {
background: #cddc39;
border-radius: 8px;
text-align: center;
cursor: url(packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.draggable p {
Expand Down Expand Up @@ -72,6 +73,7 @@ body {

.dnd-dragging,
.dnd-drag-occurring {
cursor: url(packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}
13 changes: 8 additions & 5 deletions example/custom_avatar/example.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ body {
.document {
margin-top: 10px;
display: block;
cursor: url(packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.dnd-over {
Expand All @@ -40,7 +41,9 @@ body {
opacity: 0.5;
}

.dnd-dragging, .dnd-drag-occurring {
cursor: url(packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
.dnd-dragging,
.dnd-drag-occurring {
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}
17 changes: 10 additions & 7 deletions example/detection_only/example.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
html, body {
html,
body {
height: 100%;
}

Expand All @@ -22,8 +23,9 @@ body {
height: 120px;
background: #cddc39;
border-radius: 8px;
cursor: url(packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.draggable p {
Expand All @@ -36,8 +38,9 @@ body {
opacity: 0.7;
}

.dnd-dragging, .dnd-drag-occurring {
cursor: url(packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
.dnd-dragging,
.dnd-drag-occurring {
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}

17 changes: 10 additions & 7 deletions example/free_dragging/example.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
html, body {
html,
body {
height: 100%;
}

Expand All @@ -22,8 +23,9 @@ body {
height: 120px;
background: #cddc39;
border-radius: 8px;
cursor: url(packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.draggable p {
Expand All @@ -37,8 +39,9 @@ body {
opacity: 0.5;
}

.dnd-dragging, .dnd-drag-occurring {
cursor: url(packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
.dnd-dragging,
.dnd-drag-occurring {
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}

18 changes: 11 additions & 7 deletions example/handle/example.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
html, body {
html,
body {
height: 100%;
}

Expand Down Expand Up @@ -32,15 +33,18 @@ body {
top: 35px;
border-radius: 8px;
background-color: #afb42b;
cursor: url(packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.dnd-draggable, .dnd-drag-occurring {
cursor: url(packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
.dnd-draggable,
.dnd-drag-occurring {
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}

.dnd-dragging {
opacity: 0.5;
}
}
17 changes: 10 additions & 7 deletions example/horizontal_only/example.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
html, body {
html,
body {
height: 100%;
}

Expand All @@ -22,8 +23,9 @@ body {
height: 120px;
background: #cddc39;
border-radius: 8px;
cursor: url(packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.draggable p {
Expand All @@ -37,8 +39,9 @@ body {
opacity: 0.5;
}

.dnd-dragging, .dnd-drag-occurring {
cursor: url(packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
.dnd-dragging,
.dnd-drag-occurring {
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}

10 changes: 6 additions & 4 deletions example/nested_dropzones/example.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ body {
height: 50px;
background: #cddc39;
border-radius: 8px;
cursor: url(packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.draggable p {
Expand Down Expand Up @@ -55,8 +56,9 @@ body {

.dnd-draggable,
.dnd-drag-occurring {
cursor: url(packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}

.dnd-dragging {
Expand Down
10 changes: 6 additions & 4 deletions example/nested_elements/example.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ body {
height: 50px;
background: #cddc39;
border-radius: 8px;
cursor: url(packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.draggable p {
Expand Down Expand Up @@ -68,8 +69,9 @@ button {

.dnd-draggable,
.dnd-drag-occurring {
cursor: url(packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}

.dnd-dragging {
Expand Down
18 changes: 11 additions & 7 deletions example/parent_offset/example.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
html, body {
html,
body {
height: 100%;
}

Expand Down Expand Up @@ -26,8 +27,9 @@ body {
height: 120px;
background: #cddc39;
border-radius: 8px;
cursor: url(../packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(../packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.draggable p {
Expand All @@ -41,7 +43,9 @@ body {
opacity: 0.5;
}

.dnd-dragging, .dnd-drag-occurring {
cursor: url(../packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(../packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
}
.dnd-dragging,
.dnd-drag-occurring {
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}
10 changes: 6 additions & 4 deletions example/scroll_offset/example.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ body {
height: 120px;
background: #cddc39;
border-radius: 8px;
cursor: url(../packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(../packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.draggable p {
Expand All @@ -53,8 +54,9 @@ body {

.dnd-dragging,
.dnd-drag-occurring {
cursor: url(../packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(../packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}

.dnd-over {
Expand Down
10 changes: 6 additions & 4 deletions example/simple_sortable/example.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ body {
height: 120px;
background: #cddc39;
border-radius: 8px;
cursor: url(packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
box-sizing: border-box;
cursor: pointer;
cursor: grab;
cursor: -webkit-grab;
}

.sortable p {
Expand All @@ -41,8 +42,9 @@ body {

.dnd-dragging,
.dnd-drag-occurring {
cursor: url(packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */
cursor: url(packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */
cursor: default;
cursor: grabbing;
cursor: -webkit-grabbing;
}

.dnd-over {
Expand Down
11 changes: 0 additions & 11 deletions lib/cursor/README.md

This file was deleted.

Binary file removed lib/cursor/closedhand.cur
Binary file not shown.
Binary file removed lib/cursor/openhand.cur
Binary file not shown.
Loading

0 comments on commit fb5c624

Please sign in to comment.