forked from patternfly/patternfly-3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request patternfly#575 from dlabrecq/list-view-dnd-branch-…
…4.0-dev ListView drag and drop for 4.0.0-alpha.x
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// | ||
// List View Drag and Drop | ||
// See: https://github.com/marceljuenemann/angular-drag-and-drop-lists | ||
// -------------------------------------------------- | ||
|
||
.list-view-pf-dnd { | ||
// Override dnd styles | ||
.dndDragging { | ||
&.drag-original { | ||
display: none; | ||
// Show when dragging original list items | ||
.list-view-pf-dnd-original-items { | ||
display: block; | ||
} | ||
} | ||
// Show dragable list items during move operation | ||
.list-view-pf-dnd-drag-items { | ||
display: inline-block; | ||
} | ||
// Hide original list items during dnd move operation | ||
.list-view-pf-dnd-original-items { | ||
display: none; | ||
} | ||
} | ||
// Override dnd placeholder element for dragging list items to | ||
.dndPlaceholder { | ||
background-color: @color-pf-black-200; | ||
padding: 20px 0; | ||
} | ||
// A handle decoration shown to left of each list items row | ||
.list-group-item-header { | ||
margin-left: -10px; | ||
&:before { | ||
background-image: linear-gradient(to bottom, @color-pf-blue-400 60%, @color-pf-white 0%); | ||
background-position: left; | ||
background-repeat: repeat-y; | ||
background-size: 2px 5px; | ||
border: 4px solid @color-pf-blue-400; | ||
border-color: @color-pf-blue-500; | ||
content: ""; | ||
height: 55px; | ||
left: 4px; | ||
position: absolute; | ||
top: 5px; | ||
width: 10px; | ||
} | ||
} | ||
} | ||
|
||
// Always hide dragable list items until shown during dnd move operation | ||
.list-view-pf-dnd-drag-items { | ||
display: none; | ||
} |
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