nestable.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /**
  2. * Nestable
  3. */
  4. .dd {
  5. font-size: 13px;
  6. line-height: 20px;
  7. position: relative;
  8. display: block;
  9. margin: 15px 0 0;
  10. padding: 0;
  11. list-style: none;
  12. }
  13. .dd-list {
  14. position: relative;
  15. display: block;
  16. margin: 0;
  17. padding: 0;
  18. list-style: none;
  19. }
  20. .dd-list .dd-list {
  21. padding-left: 30px;
  22. }
  23. .dd-collapsed .dd-list {
  24. display: none;
  25. }
  26. .dd-item,
  27. .dd-empty,
  28. .dd-placeholder {
  29. font-size: 13px;
  30. line-height: 20px;
  31. position: relative;
  32. display: block;
  33. min-height: 20px;
  34. margin: 0;
  35. padding: 0;
  36. }
  37. .dd-handle {
  38. display: block;
  39. -moz-box-sizing: border-box;
  40. box-sizing: border-box;
  41. height: 30px;
  42. margin: 5px 0;
  43. padding: 5px 10px;
  44. text-decoration: none;
  45. color: #333;
  46. border: 1px solid #ccc;
  47. -webkit-border-radius: 3px;
  48. border-radius: 3px;
  49. background: #fafafa;
  50. }
  51. .dd-handle:hover {
  52. background: #fff;
  53. }
  54. .dd-item > button {
  55. font-size: 12px;
  56. line-height: 1;
  57. position: relative;
  58. display: block;
  59. float: left;
  60. overflow: hidden;
  61. width: 25px;
  62. height: 20px;
  63. margin: 5px 0;
  64. padding: 0;
  65. cursor: pointer;
  66. text-align: center;
  67. white-space: nowrap;
  68. text-indent: 100%;
  69. border: 0;
  70. background: transparent;
  71. }
  72. .dd-item > button:before {
  73. position: absolute;
  74. display: block;
  75. width: 100%;
  76. content: '+';
  77. text-align: center;
  78. text-indent: 0;
  79. }
  80. .dd-item > button[data-action='collapse']:before {
  81. content: '-';
  82. }
  83. .dd-placeholder,
  84. .dd-empty {
  85. -moz-box-sizing: border-box;
  86. box-sizing: border-box;
  87. min-height: 30px;
  88. margin: 5px 0;
  89. padding: 0;
  90. border: 1px dashed #b6bcbf;
  91. background: #f2fbff;
  92. }
  93. .dd-empty {
  94. min-height: 100px;
  95. border: 1px dashed #bbb;
  96. background-color: #dfe8f1;
  97. background-image: -webkit-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff), -webkit-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
  98. background-image: -moz-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff), -moz-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
  99. background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff), linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
  100. background-position: 0 0, 30px 30px;
  101. background-size: 60px 60px;
  102. }
  103. .dd-dragel {
  104. position: absolute;
  105. z-index: 9999;
  106. pointer-events: none;
  107. }
  108. .dd-dragel > .dd-item .dd-handle {
  109. margin-top: 0;
  110. }
  111. .dd-dragel .dd-handle {
  112. -webkit-box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, .1);
  113. box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, .1);
  114. }
  115. /**
  116. * Nestable Extras
  117. */
  118. #nestable-menu {
  119. margin: 0 0 15px;
  120. padding: 0;
  121. }
  122. #nestable-output,
  123. #nestable2-output {
  124. -moz-box-sizing: border-box;
  125. box-sizing: border-box;
  126. width: 100%;
  127. height: 7em;
  128. }
  129. #nestable2 .dd-handle {
  130. color: #fff;
  131. border: 1px solid #999;
  132. background: #bbb;
  133. }
  134. #nestable2 .dd-handle:hover {
  135. background: #bbb;
  136. }
  137. #nestable2 .dd-item > button:before {
  138. color: #fff;
  139. }
  140. .dd-hover > .dd-handle {
  141. background: #2ea8e5 !important;
  142. }
  143. /**
  144. * Nestable Draggable Handles
  145. */
  146. .dd3-content {
  147. display: block;
  148. -moz-box-sizing: border-box;
  149. box-sizing: border-box;
  150. height: 30px;
  151. margin: 5px 0;
  152. padding: 5px 10px 5px 40px;
  153. text-decoration: none;
  154. color: #333;
  155. border: 1px solid #ccc;
  156. -webkit-border-radius: 3px;
  157. border-radius: 3px;
  158. background: #fafafa;
  159. }
  160. .dd3-content:hover {
  161. color: #2ea8e5;
  162. background: #fff;
  163. }
  164. .dd-dragel > .dd3-item > .dd3-content {
  165. margin: 0;
  166. }
  167. .dd3-item > button {
  168. margin-left: 30px;
  169. }
  170. .dd3-handle {
  171. position: absolute;
  172. top: 0;
  173. left: 0;
  174. overflow: hidden;
  175. width: 30px;
  176. margin: 0;
  177. cursor: pointer;
  178. white-space: nowrap;
  179. text-indent: 100%;
  180. border: 1px solid #aaa;
  181. border-top-right-radius: 0;
  182. border-bottom-right-radius: 0;
  183. background: #ddd;
  184. }
  185. .dd3-handle:before {
  186. font-size: 20px;
  187. font-weight: normal;
  188. position: absolute;
  189. top: 3px;
  190. left: 0;
  191. display: block;
  192. width: 100%;
  193. content: '≡';
  194. text-align: center;
  195. text-indent: 0;
  196. color: #fff;
  197. }
  198. .dd3-handle:hover {
  199. background: #ddd;
  200. }