jquery.nestable.css 4.1 KB

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