nestable.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /**
  2. * Nestable
  3. */
  4. .dd {
  5. position: relative;
  6. display: block;
  7. margin: 0; padding: 0;
  8. max-width: 600px;
  9. list-style: none;
  10. font-size: 13px;
  11. line-height: 20px;
  12. }
  13. .dd-list { display: block; position: relative; margin: 0; padding: 0; list-style: none; }
  14. .dd-list .dd-list { padding-left: 30px; }
  15. .dd-collapsed .dd-list { display: none; }
  16. .dd-item,
  17. .dd-empty,
  18. .dd-placeholder {
  19. display: block;
  20. position: relative;
  21. margin: 0;
  22. padding: 0;
  23. min-height: 20px;
  24. font-size: 13px;
  25. line-height: 20px;
  26. }
  27. .dd-handle {
  28. display: block;
  29. margin: 5px 0;
  30. padding: 5px 10px;
  31. text-decoration: none;
  32. border: 1px solid #ebebeb;
  33. background: #fff;
  34. -webkit-border-radius: 3px;
  35. border-radius: 3px;
  36. }
  37. .dd-handle:hover {background: #fff; }
  38. .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; }
  39. .dd-item > button:before { content: '+'; display: block; position: absolute; width: 100%; text-align: center; text-indent: 0; }
  40. .dd-item > button[data-action="collapse"]:before { content: '-'; }
  41. .dd-placeholder,
  42. .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; }
  43. .dd-empty { border: 1px dashed #bbb; min-height: 100px; background-color: #e5e5e593;background-color: #e5e5e5;
  44. background-size: 60px 60px;
  45. background-position: 0 0, 30px 30px;
  46. }
  47. .dd-dragel { position: absolute; pointer-events: none; z-index: 9999; }
  48. .dd-dragel > .dd-item .dd-handle { margin-top: 0; }
  49. .dd-dragel .dd-handle {
  50. -webkit-box-shadow: 2px 4px 6px 0 rgba(0,0,0,.1);
  51. box-shadow: 2px 4px 6px 0 rgba(0,0,0,.1);
  52. }
  53. /**
  54. * Nestable Extras
  55. */
  56. .nestable-lists { display: block; clear: both; padding: 30px 0; width: 100%; border: 0; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; }
  57. @media only screen and (min-width: 700px) {
  58. .dd + .dd { margin-left: 2%; }
  59. }
  60. .dd-hover > .dd-handle { background: #2ea8e5 !important; }
  61. /**
  62. * Nestable Draggable Handles
  63. */
  64. .dd3-content { display: block;margin: 5px 0;
  65. padding: 5px 10px 5px 40px;
  66. text-decoration: none;
  67. border: 1px solid #ebebeb;
  68. background: #fff;
  69. -webkit-border-radius: 3px;
  70. border-radius: 3px;
  71. }
  72. .dd-dragel > .dd3-item > .dd3-content { margin: 0; }
  73. .dd3-item > button { margin-left: 30px; }
  74. .dd3-handle {
  75. position: absolute;
  76. margin: 0;
  77. left: 0;
  78. top: 0;
  79. cursor: pointer;
  80. width: 30px;
  81. text-indent: 100%;
  82. white-space: nowrap;
  83. overflow: hidden;
  84. border: 1px solid #ebebeb;
  85. background: #fff;
  86. border-top-right-radius: 0;
  87. border-bottom-right-radius: 0;
  88. }
  89. .dd3-handle:before { content: '≡'; display: block; position: absolute; left: 0; top: 5px; width: 100%; text-align: center; text-indent: 0; color: #ccc; font-size: 20px; font-weight: normal; }
  90. .dd3-handle:hover { background: #f7f7f7; }