controls.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. // Controls
  2. .vc_controls {
  3. font-family: "Open Sans", Helvetica, sans-serif;
  4. height: 0;
  5. display: block;
  6. .opacity(0);
  7. visibility: hidden;
  8. > div {
  9. position: absolute;
  10. white-space: nowrap;
  11. font-size: 0 !important; //remove bottom extra space from display: inline-block
  12. > .vc_parent {
  13. vertical-align: top;
  14. display: inline-block;
  15. }
  16. > .vc_element {
  17. margin-left: 1px;
  18. display: inline-block;
  19. }
  20. }
  21. //Controls positions
  22. > .vc_controls- {
  23. &tl {
  24. //top left
  25. top: 0;
  26. left: 0;
  27. z-index: 1002;
  28. }
  29. &tc {
  30. //top center
  31. top: 0;
  32. left: 50%;
  33. .translate(-50%, 0);
  34. z-index: 1002;
  35. }
  36. &tr {
  37. //top right
  38. top: 0;
  39. right: 0;
  40. direction: rtl;
  41. z-index: 1002;
  42. }
  43. &bl {
  44. //bottom left
  45. bottom: 0;
  46. left: 0;
  47. height: auto;
  48. z-index: 1002;
  49. }
  50. &bc {
  51. //bottom center
  52. bottom: 0;
  53. left: 50%;
  54. .translate(-50%, 0);
  55. z-index: 1;
  56. }
  57. &br {
  58. //bottom right
  59. bottom: 0;
  60. right: 0;
  61. direction: rtl;
  62. z-index: 1002;
  63. }
  64. &cc {
  65. //vertical middle
  66. z-index: 1002;
  67. top: 50%;
  68. left: 50%;
  69. background-color: @vc_controls_background;
  70. border: 0px solid transparent;
  71. .translate(-50%, -50%);
  72. .border-top-radius(@vc_border_radius);
  73. .border-bottom-radius(@vc_border_radius);
  74. > :first-child {
  75. .vc_btn-content {
  76. .border-left-radius(@vc_border_radius);
  77. }
  78. }
  79. > :last-child {
  80. .vc_btn-content {
  81. .border-right-radius(@vc_border_radius);
  82. }
  83. }
  84. }
  85. &out-tc {
  86. left: 50%;
  87. top: -30px;
  88. direction: rtl;
  89. .translate(-50%, 0);
  90. }
  91. &out-l {
  92. //out left
  93. left: 0px;
  94. top: 1px;
  95. direction: rtl;
  96. }
  97. &out-tl {
  98. //out left
  99. z-index: 1002;
  100. left: -1px;
  101. top: -30px;
  102. > .vc_element {
  103. > :first-child {
  104. .vc_btn-content {
  105. .border-left-radius(@vc_border_radius);
  106. }
  107. }
  108. }
  109. }
  110. &out-tr {
  111. //out left
  112. z-index: 1003;
  113. right: -1px;
  114. top: -30px;
  115. }
  116. &out-r {
  117. //out right
  118. right: -1px;
  119. top: 1px;
  120. }
  121. &out-l,
  122. &out-r {
  123. width: 0;
  124. height: 0;
  125. }
  126. }
  127. }
  128. // Section controls
  129. .vc_vc_section {
  130. .vc_section.vc_section-has-fill {
  131. padding-top: 62px;
  132. }
  133. .vc_section-has-fill ~ .vc_controls-container > .vc_controls-out-tl {
  134. top: 1px !important;
  135. }
  136. > .vc_controls {
  137. > .vc_controls-out-tl {
  138. left: -17px;
  139. top: -61px;
  140. }
  141. }
  142. &.vc_empty {
  143. > .vc_controls {
  144. > .vc_controls-out-tl {
  145. top: -29px;
  146. }
  147. }
  148. }
  149. > [data-vc-full-width="true"] {
  150. ~ .vc_controls {
  151. > .vc_controls-out-tl {
  152. top: -29px;
  153. }
  154. }
  155. > .vc_vc_row {
  156. padding-left: 15px;
  157. padding-right: 15px;
  158. }
  159. }
  160. > .vc_parallax {
  161. ~ .vc_controls {
  162. > .vc_controls-out-tl {
  163. top: -29px;
  164. }
  165. }
  166. }
  167. }
  168. // Single Control button
  169. .vc_control-btn {
  170. display: inline-block;
  171. position: relative;
  172. vertical-align: middle !important;
  173. border: none !important;
  174. -webkit-box-shadow: none !important;
  175. -moz-box-shadow: none !important;
  176. box-shadow: none !important;
  177. .icon, .vc_icon {
  178. display: inline-block !important;
  179. background-image: url(@vc_pe_controls_sprite);
  180. background-repeat: no-repeat;
  181. width: 16px;
  182. height: 16px;
  183. }
  184. .vc_btn-content {
  185. &:hover {
  186. background-color: @vc_control_hover_color;
  187. }
  188. }
  189. .vc-composer-icon {
  190. display: inline-block;
  191. width: 16px;
  192. height: 16px;
  193. font-size: 15px;
  194. color: #F2F2F2;
  195. position: relative;
  196. &::before {
  197. font-family: 'vcpb-plugin-icons' !important;
  198. position: absolute;
  199. left: 50%;
  200. top: 50%;
  201. .translate(-50%, -50%);
  202. }
  203. }
  204. .vc-c-icon-delete_empty {
  205. font-size: 13px;
  206. }
  207. .vc-c-icon-dragndrop {
  208. font-size: 13px;
  209. }
  210. .vc-c-icon-add{
  211. font-size: 14px;
  212. }
  213. .vc-c-icon-row_default_fe {
  214. font-size: 10px;
  215. }
  216. }
  217. .vc_controls-dark {
  218. .vc_control-btn {
  219. .vc-composer-icon {
  220. color: #868686;
  221. }
  222. }
  223. }
  224. .vc_btn-content {
  225. .transition(background-color 0.5s);
  226. background-color: transparent;
  227. display: inline-block !important;
  228. padding: 7px;
  229. cursor: pointer !important;
  230. line-height: 1px !important;
  231. font-size: 1px !important;
  232. vertical-align: middle !important;
  233. }
  234. .vc_element-name {
  235. .vc_btn-content {
  236. text-decoration: none !important;
  237. width: auto !important;
  238. font-size: 11px !important;
  239. color: #FFFFFF !important;
  240. line-height: 16px !important;
  241. padding: 7px 12px !important;
  242. cursor: auto !important;
  243. // height: 30px;
  244. &:hover {
  245. text-decoration: none !important;
  246. }
  247. }
  248. }
  249. .vc_element-move, .vc_child-element-move {
  250. .vc_btn-content {
  251. cursor: move !important;
  252. padding-left: 30px !important;
  253. &:hover {
  254. background-color: @vc_control_hover_color;
  255. }
  256. }
  257. .vc-c-icon-dragndrop {
  258. position: absolute;
  259. top: 50%;
  260. left: 15px;
  261. .translate(-50%, -50%);
  262. }
  263. }
  264. // Control icons variations
  265. .vc_control-btn-append {
  266. position: relative;
  267. top: 19px;
  268. &:before {
  269. position: relative;
  270. left: 7px;
  271. content: "";
  272. display: block;
  273. width: 0;
  274. height: 0;
  275. border-left: 4px solid transparent;
  276. border-right: 4px solid transparent;
  277. border-bottom: 4px solid @vc_controls_bottom_append_border_bottom;
  278. .transition(border-color 0.5s);
  279. }
  280. &:hover {
  281. &:before {
  282. border-bottom-color: @vc_controls_bottom_append_border_bottom_hover;
  283. }
  284. }
  285. &.vc_control-parent:before {
  286. border-bottom-color: @vc_controls_parent_border;
  287. }
  288. &.vc_control-parent:hover {
  289. &:before {
  290. border-bottom-color: @vc_controls_parent_border_hover;
  291. }
  292. }
  293. .vc_btn-content {
  294. -webkit-border-radius: @vc_border_radius;
  295. -moz-border-radius: @vc_border_radius;
  296. border-radius: @vc_border_radius;
  297. padding: 3px;
  298. }
  299. }
  300. .vc_control-btn-switcher {
  301. overflow: hidden;
  302. width: 24px;
  303. height: 30px;
  304. .transition(width 0.5s);
  305. display: inline-block;
  306. &-disable-switcher {
  307. display: none !important;
  308. }
  309. .vc-composer-icon {
  310. width: 10px;
  311. }
  312. }
  313. .vc_control-btn-move {
  314. background-position: 0 0;
  315. }
  316. // Container-container switcher
  317. .vc_control-btn-layout {
  318. position: relative;
  319. }
  320. .vc_controls-row,
  321. .vc_controls-column,
  322. .vc_controls-container {
  323. > div {
  324. .vc_btn-content {
  325. background-color: @vc_controls_child_background;
  326. border-color: @vc_controls_child_border;
  327. }
  328. .vc_control-btn {
  329. .vc_btn-content {
  330. &:hover {
  331. background-color: @vc_controls_child_background_hover;
  332. border-color: @vc_controls_child_border_hover;
  333. }
  334. }
  335. }
  336. .vc_control-parent {
  337. .vc_btn-content {
  338. background-color: @vc_controls_parent_background;
  339. border-color: @vc_controls_parent_border;
  340. }
  341. &.vc_control-btn {
  342. .vc_btn-content {
  343. &:hover {
  344. background-color: @vc_controls_parent_background_hover;
  345. border-color: @vc_controls_parent_border_hover;
  346. }
  347. }
  348. }
  349. }
  350. .vc_advanced {
  351. overflow: hidden;
  352. height: 30px;
  353. width: 0;
  354. display: inline-block;
  355. vertical-align: middle;
  356. .transition(width 0.5s);
  357. }
  358. > .vc_element {
  359. display: inline-block;
  360. :last-child {
  361. .vc_btn-content {
  362. .border-right-radius(@vc_border_radius);
  363. }
  364. }
  365. .vc_control-btn-switcher {
  366. .vc_btn-content {
  367. .border-right-radius(@vc_border_radius);
  368. }
  369. }
  370. }
  371. > .vc_parent {
  372. display: inline-block;
  373. .vc_btn-content {
  374. background-color: @vc_controls_parent_background;
  375. border-color: @vc_controls_parent_border;
  376. }
  377. .vc_control-btn {
  378. .vc_btn-content {
  379. background-color: @vc_controls_parent_background;
  380. border-color: @vc_controls_parent_border;
  381. &:hover {
  382. background-color: @vc_controls_parent_background_hover;
  383. border-color: @vc_controls_parent_border_hover;
  384. }
  385. }
  386. }
  387. > :first-child {
  388. .vc_btn-content {
  389. .border-left-radius(@vc_border_radius);
  390. }
  391. }
  392. }
  393. > .element-vc_section {
  394. .vc_btn-content {
  395. background-color: @vc_controls_parent_background;
  396. border-color: @vc_controls_parent_border;
  397. }
  398. .vc_control-btn {
  399. .vc_btn-content {
  400. background-color: @vc_controls_parent_background;
  401. border-color: @vc_controls_parent_border;
  402. &:hover {
  403. background-color: @vc_controls_parent_background_hover;
  404. border-color: @vc_controls_parent_border_hover;
  405. }
  406. }
  407. }
  408. }
  409. > .vc_active {
  410. .vc_control-btn {
  411. display: inline-block;
  412. }
  413. .vc_control-btn-switcher {
  414. width: 0;
  415. }
  416. &.vc_parent, &.vc_element {
  417. .vc_advanced {
  418. width: 120px;
  419. }
  420. }
  421. &.parent-vc_row, &.parent-vc_row_inner {
  422. .vc_advanced {
  423. width: 150px;
  424. }
  425. }
  426. &.element-vc_column, &.element-vc_column_inner {
  427. .vc_advanced {
  428. width: 90px;
  429. }
  430. }
  431. &.element-vc_tab {
  432. &.vc_element-name {
  433. .vc_btn-content {
  434. background-image: none;
  435. padding-right: 6px;
  436. }
  437. }
  438. }
  439. }
  440. }
  441. }
  442. .vc_element-container {
  443. > div.vc_container:first-of-type {
  444. margin-top: 31px;
  445. }
  446. }
  447. /** Layout switcher for complex container-container controler **/
  448. .vc_layout-switcher {
  449. background: #94B9C6;
  450. display: block;
  451. height: auto;
  452. width: 100px;
  453. padding: 2px;
  454. position: absolute;
  455. top: 30px;
  456. white-space: normal;
  457. direction: ltr;
  458. // Animation settings
  459. .opacity(0);
  460. visibility: hidden;
  461. .transition(opacity 0.5s ease-out);
  462. &:hover {
  463. .vc_layout-switcher {
  464. .opacity(1);
  465. visibility: visible;
  466. }
  467. }
  468. .vc_layout-btn {
  469. display: inline-block;
  470. background-position: center center;
  471. background-repeat: no-repeat;
  472. width: 30px;
  473. height: 23px;
  474. background-color: white;
  475. margin: 1px;
  476. }
  477. .vc_custom-layout-btn {
  478. background-color: transparent;
  479. display: block;
  480. width: auto;
  481. height: auto;
  482. margin: 4px 0 3px;
  483. font-size: 11px;
  484. text-align: center;
  485. }
  486. .l_1 {
  487. background-image: url(../vc/row_layouts/1.gif);
  488. }
  489. .l_12_12 {
  490. background-image: url(../vc/row_layouts/12_12.gif);
  491. }
  492. .l_23_13 {
  493. background-image: url(../vc/row_layouts/23_13.gif);
  494. }
  495. .l_13_13_13 {
  496. background-image: url(../vc/row_layouts/13_13_13.gif);
  497. }
  498. .l_13_23 {
  499. background-image: url(../vc/row_layouts/13_23.gif);
  500. }
  501. .l_14_14_14_14 {
  502. background-image: url(../vc/row_layouts/14_14_14_14.gif);
  503. }
  504. .l_14_34 {
  505. background-image: url(../vc/row_layouts/14_34.gif);
  506. }
  507. .l_14_12_14 {
  508. background-image: url(../vc/row_layouts/14_12_14.gif);
  509. }
  510. .l_56_16 {
  511. background-image: url(../vc/row_layouts/56_16.gif);
  512. }
  513. .l_16_46_16 {
  514. background-image: url(../vc/row_layouts/14_46_16.gif);
  515. }
  516. .l_16_16_16_12 {
  517. background-image: url(../vc/row_layouts/16_16_16_12.gif);
  518. }
  519. .l_16_16_16_16_16_16 {
  520. background-image: url(../vc/row_layouts/16_16_16_16_16_16.gif);
  521. }
  522. }
  523. .vc_controls-visible {
  524. .opacity(1) !important;
  525. visibility: visible;
  526. }
  527. .vc_control-container {
  528. background: @vc_controls_child_background;
  529. border-color: @vc_controls_child_border;
  530. .vc_control-btn {
  531. .vc_btn-content {
  532. &:hover {
  533. background-color: @vc_controls_child_background_hover;
  534. }
  535. }
  536. }
  537. }
  538. .vc_controls-content-widget {
  539. background: @vc_controls_parent_background;
  540. border-color: @vc_controls_parent_border;
  541. top: -17px !important;
  542. direction: ltr !important;
  543. .vc_btn-content {
  544. &:hover {
  545. background-color: @vc_controls_parent_background_hover;
  546. }
  547. }
  548. }