jquery.nestable.css 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /**
  2. * Nestable
  3. */
  4. .dd-list { display: block; position: relative; margin: 0; padding: 0; list-style: none; }
  5. .dd-list .dd-list { padding-left: 30px; }
  6. .dd-collapsed .dd-list { display: none; }
  7. .dd-item,
  8. .dd-empty,
  9. .dd-placeholder { display: block; position: relative; margin: 0; padding: 0; min-height: 20px; font-size: 13px; line-height: 20px; }
  10. .dd-handle { display: block; height: 30px; margin: 5px 0; cursor: move; padding: 5px 10px; color: #333; text-decoration: none; font-weight: 400; border: 1px solid #ccc;
  11. background: #fafafa;
  12. -webkit-border-radius: 3px;
  13. border-radius: 3px;
  14. box-sizing: border-box; -moz-box-sizing: border-box;
  15. }
  16. .dd-handle:hover { color: #2ea8e5; background: #fff; }
  17. .dd-item > button { display: block; position: relative; cursor: pointer; float: left; width: 25px; height: 20px; margin: 7px 0; padding: 0; text-indent: 100%; white-space: nowrap; overflow: hidden; border: 0; background: transparent; font-size: 10px; line-height: 1; text-align: center; font-weight: bold; }
  18. .dd-item > button:before { content: '\f067'; display: block; position: absolute; width: 100%; text-align: center; text-indent: 0; font-family: 'FontAwesome' }
  19. .dd-item > button[data-action="collapse"]:before { content: '\f068'; }
  20. .dd-placeholder,
  21. .dd-empty {
  22. margin: 5px 0; padding: 0; min-height: 30px; background: #f2fbff; border: 1px dashed #b6bcbf;
  23. box-sizing: border-box; -moz-box-sizing: border-box; }
  24. .dd-empty { border: 1px dashed #bbb; min-height: 100px; background-color: #e5e5e5;
  25. background-size: 60px 60px;
  26. background-position: 0 0, 30px 30px;
  27. }
  28. .dd-dragel { position: absolute; pointer-events: none; z-index: 9999; }
  29. .dd-dragel > .dd-item .dd-handle { margin-top: 0; }
  30. .dd-dragel .dd-handle {
  31. -webkit-box-shadow: 2px 4px 6px 0 rgba(0,0,0,.1);
  32. box-shadow: 2px 4px 6px 0 rgba(0,0,0,.1);
  33. }
  34. .dd-hover > .dd-handle { background: #2ea8e5 !important; }
  35. /**
  36. * Nestable Draggable Handles
  37. */
  38. .dd3-content { display: block; height: 30px; margin: 5px 0; padding: 5px 10px 5px 40px; color: #333; text-decoration: none; font-weight: 400; border: 1px solid #ccc;
  39. background: #fafafa;
  40. -webkit-border-radius: 3px;
  41. border-radius: 3px;
  42. box-sizing: border-box; -moz-box-sizing: border-box;
  43. }
  44. .dd3-content:hover { color: #2ea8e5; background: #fff; }
  45. .dd-dragel > .dd3-item > .dd3-content { margin: 0; }
  46. .dd3-item > button { margin-left: 30px; }
  47. .dd3-handle { position: absolute; margin: 0; left: 0; top: 0; cursor:move; width: 30px; text-indent: 100%; white-space: nowrap; overflow: hidden;
  48. border: 1px solid #aaa;
  49. background: #ddd;
  50. border-top-right-radius: 0;
  51. border-bottom-right-radius: 0;
  52. }
  53. .dd3-handle:before { content: '≡'; display: block; position: absolute; left: 0; top: 3px; width: 100%; text-align: center; text-indent: 0; color: #fff; font-size: 20px; font-weight: normal; }
  54. .dd3-handle:hover { background: #ddd; }