backend_controls.less 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. /* Row Controls
  2. ---------------------------------------------------------- */
  3. .vc_controls {
  4. .box-sizing(border-box);
  5. > div {
  6. border-radius: @vc_border_radius;
  7. > :first-child {
  8. .vc_btn-content {
  9. .border-left-radius(@vc_border_radius);
  10. }
  11. }
  12. > :last-child {
  13. .vc_btn-content {
  14. .border-right-radius(@vc_border_radius);
  15. }
  16. }
  17. }
  18. }
  19. .vc_column_color, .vc_color-helper {
  20. margin-top: 3px;
  21. width: 16px;
  22. height: 16px;
  23. display: inline-block;
  24. margin-right: 3px;
  25. border-radius: 8px;
  26. }
  27. .vc_column_image, .vc_image-helper {
  28. margin-top: 3px;
  29. width: 16px;
  30. height: 16px;
  31. display: inline-block;
  32. margin-right: 3px;
  33. background-size: cover;
  34. border-radius: 8px;
  35. }
  36. .vc_icon {
  37. width: 16px;
  38. height: 16px;
  39. display: inline-block;
  40. background: transparent url('../vc/controls.png') no-repeat -16px 0px;
  41. }
  42. .vc_control {
  43. cursor: pointer;
  44. display: inline-block;
  45. border-radius: 2px 2px 0 0;
  46. border: 1px solid transparent;
  47. padding: 0;
  48. text-decoration: none;
  49. color: #888888;
  50. font-size: 14px;
  51. &.column_add, .vc-controls-add {
  52. .vc_icon {
  53. background-position: -16px -16px;
  54. }
  55. }
  56. &.column_delete, .vc-controls-delete {
  57. .vc_icon {
  58. background-position: -16px -64px;
  59. }
  60. }
  61. &.column_clone, .vc-controls-clone {
  62. .vc_icon {
  63. background-position: -16px -48px;
  64. }
  65. }
  66. &.column_edit, .vc-controls-edit {
  67. .vc_icon {
  68. background-position: -16px -32px;
  69. }
  70. }
  71. &.column_toggle, .vc-controls-toggle {
  72. .vc_icon {
  73. background-position: -16px -96px;
  74. }
  75. }
  76. // Row drag handler
  77. &.column_move, .vc-controls-move {
  78. cursor: move;
  79. float: left;
  80. }
  81. &:hover {
  82. color: #888888;
  83. .vc-composer-icon {
  84. .opacity(0.7);
  85. }
  86. }
  87. }
  88. .vc_controls-row {
  89. text-align: center;
  90. line-height: 1px;
  91. position: relative;
  92. z-index: 1;
  93. visibility: visible; // TODO: set as default
  94. .opacity(1); // TODO: set as default
  95. height: auto; // TODO: set as default
  96. &:hover {
  97. z-index: 10;
  98. }
  99. .vc_control {
  100. background-color: @vc_row_control_bg;
  101. padding: 3px 10px;
  102. }
  103. .column_add, .vc_control-add-column {
  104. float: left;
  105. margin-left: 1px;
  106. }
  107. .column_move {
  108. padding: 6px 10px 5px;
  109. font-size: 13px;
  110. }
  111. .column_edit {
  112. padding: 5px 12px;
  113. }
  114. .vc-c-icon-add,
  115. .vc-c-icon-delete_empty,
  116. .vc-c-icon-content_copy {
  117. position: relative;
  118. font-size: 14px;
  119. display: inline-block;
  120. width: 18px;
  121. height: 18px;
  122. &::before {
  123. position: absolute;
  124. top: 50%;
  125. left: 50%;
  126. .translate(-50%, -50%);
  127. }
  128. }
  129. .vc-c-icon-delete_empty {
  130. font-size: 12px;
  131. }
  132. .vc-c-icon-content_copy {
  133. font-size: 14px;
  134. }
  135. .vc-c-icon-mode_edit {
  136. font-size: 14px;
  137. }
  138. .vc-c-icon-arrow_drop_down {
  139. font-size: 18px;
  140. }
  141. .vc_row_layouts, .vc_control-row-layout {
  142. display: block;
  143. height: 16px;
  144. overflow: hidden;
  145. float: left;
  146. padding: 3px 0 5px 4px;
  147. text-align: left;
  148. margin-left: 1px;
  149. background: #e6e6e6;
  150. border: 1px solid transparent;
  151. border-radius: 2px 2px 0 0;
  152. .vc_active {
  153. display: inline-block;
  154. }
  155. &:hover {
  156. width: auto;
  157. height: auto;
  158. position: absolute;
  159. left: 36px;
  160. z-index: 1;
  161. a {
  162. display: inline-block;
  163. &:hover,
  164. &.vc_active {
  165. background-color: #FBEED5;
  166. }
  167. }
  168. }
  169. }
  170. .vc_control-set-column {
  171. //background-image: url(../vc/row_layouts/1.gif);
  172. //background-position: center center;
  173. //background-repeat: no-repeat;
  174. display: none;
  175. border: none;
  176. width: 32px;
  177. height: 20px;
  178. background-color: transparent;
  179. cursor: pointer;
  180. font-size: 12px;
  181. color: #A0A0A0;
  182. position: relative;
  183. &:active {
  184. outline: none;
  185. }
  186. &.vc_active {
  187. background-color: transparent;
  188. }
  189. .vc-composer-icon {
  190. position: absolute;
  191. top: 50%;
  192. left: 15px;
  193. .translate(-50%, -50%);
  194. }
  195. &.custom_columns {
  196. background-image: none;
  197. border-bottom: 1px dotted;
  198. font-size: 11px;
  199. height: auto;
  200. line-height: 12px;
  201. margin: 0 3px;
  202. padding: 4px 0 0 0;
  203. width: auto;
  204. color: #0073aa;
  205. &:hover {
  206. color: #00a0d2;
  207. }
  208. }
  209. &.l_12_12 {
  210. background-image: url(../vc/row_layouts/12_12.gif);
  211. }
  212. &.l_23_13 {
  213. background-image: url(../vc/row_layouts/23_13.gif);
  214. }
  215. &.l_13_13_13 {
  216. background-image: url(../vc/row_layouts/13_13_13.gif);
  217. }
  218. &.l_13_23 {
  219. background-image: url(../vc/row_layouts/13_23.gif);
  220. }
  221. &.l_14_14_14_14 {
  222. background-image: url(../vc/row_layouts/14_14_14_14.gif);
  223. }
  224. &.l_23_13 {
  225. background-image: url(../vc/row_layouts/23_13.gif);
  226. }
  227. &.l_14_34 {
  228. background-image: url(../vc/row_layouts/14_34.gif);
  229. }
  230. &.l_14_12_14 {
  231. background-image: url(../vc/row_layouts/14_12_14.gif);
  232. }
  233. &.l_56_16 {
  234. background-image: url(../vc/row_layouts/56_16.gif);
  235. }
  236. &.l_16_46_16 {
  237. background-image: url(../vc/row_layouts/14_46_16.gif);
  238. }
  239. &.l_16_16_16_12 {
  240. background-image: url(../vc/row_layouts/16_16_16_12.gif);
  241. }
  242. &.l_16_16_16_16_16_16 {
  243. background-image: url(../vc/row_layouts/16_16_16_16_16_16.gif);
  244. }
  245. }
  246. // Right controls (delete, clone, edit)
  247. .vc_row_edit_clone_delete {
  248. .vc_control {
  249. float: right;
  250. background-position: center center;
  251. background-repeat: no-repeat;
  252. margin-left: 1px;
  253. -webkit-box-shadow: none !important;
  254. -moz-box-shadow: none !important;
  255. box-shadow: none !important;
  256. }
  257. }
  258. .vc_row_color {
  259. float: right;
  260. margin-top: 3px;
  261. width: 16px;
  262. height: 16px;
  263. display: block;
  264. margin-right: 3px;
  265. border-radius: 8px;
  266. }
  267. .vc_row_image {
  268. float: right;
  269. margin-top: 3px;
  270. width: 16px;
  271. height: 16px;
  272. display: block;
  273. margin-right: 3px;
  274. background-size: cover;
  275. border-radius: 8px;
  276. }
  277. }
  278. .wpb_vc_section {
  279. padding-bottom: 30px;
  280. > .vc_controls-row {
  281. }
  282. > .wpb_element_wrapper {
  283. padding: 25px 30px 0;
  284. margin: 0 -15px;
  285. border-top: 1px solid #e6e6e6;
  286. }
  287. .vc_section-bottom-controls {
  288. text-align: center;
  289. border-bottom: 1px solid #e6e6e6;
  290. padding-bottom: 40px;
  291. margin-left: -15px;
  292. margin-right: -15px;
  293. }
  294. }
  295. .vc_control-align {
  296. .vc_control {
  297. display: none;
  298. border: 0;
  299. margin: 0;
  300. &.vc_active {
  301. display: block;
  302. }
  303. }
  304. &:hover {
  305. position: relative;
  306. height: 15px;
  307. width: 20px;
  308. z-index: 10;
  309. .vc_control-wrap {
  310. position: absolute;
  311. background-color: #e6e6e6;
  312. top: -3px;
  313. padding: 2px;
  314. left: 0;
  315. .vc_control {
  316. display: block;
  317. &.vc_active {
  318. background-color: lightyellow;
  319. }
  320. }
  321. }
  322. }
  323. }
  324. .vc_control-align-left {
  325. .vc_icon {
  326. background-position: -16px -143px;
  327. }
  328. }
  329. .vc_control-align-center {
  330. .vc_icon {
  331. background-position: -16px -159px;
  332. }
  333. }
  334. .vc_control-align-right {
  335. .vc_icon {
  336. background-position: -16px -175px;
  337. }
  338. }
  339. .controls_column {
  340. &.bottom-controls {
  341. .column_edit,
  342. .column_delete,
  343. .column_clone {
  344. display: none;
  345. }
  346. }
  347. }
  348. .wpb_content_element {
  349. &:hover {
  350. > .vc_controls {
  351. .vc_controls-visible;
  352. }
  353. }
  354. }