jquery-nestable.css 4.8 KB

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