File: /home/adventp/www/wp-content/plugins/js_composer/assets/less/lib/backend_controls.less
/* Row Controls
---------------------------------------------------------- */
.vc_controls {
.box-sizing(border-box);
> div {
border-radius: @vc_border_radius;
> :first-child {
.vc_btn-content {
.border-left-radius(@vc_border_radius);
}
}
> :last-child {
.vc_btn-content {
.border-right-radius(@vc_border_radius);
}
}
}
}
.vc_column_color, .vc_color-helper {
margin-top: 3px;
width: 16px;
height: 16px;
display: inline-block;
margin-right: 3px;
border-radius: 8px;
}
.vc_column_image, .vc_image-helper {
margin-top: 3px;
width: 16px;
height: 16px;
display: inline-block;
margin-right: 3px;
background-size: cover;
border-radius: 8px;
}
.vc_icon {
width: 16px;
height: 16px;
display: inline-block;
background: transparent url('../vc/controls.png') no-repeat -16px 0px;
}
.vc_control {
cursor: pointer;
display: inline-block;
border-radius: 2px 2px 0 0;
border: 1px solid transparent;
padding: 0;
text-decoration: none;
color: #888888;
font-size: 11px;
&.column_add, .vc-controls-add {
.vc_icon {
background-position: -16px -16px;
}
}
&.column_delete, .vc-controls-delete {
.vc_icon {
background-position: -16px -64px;
}
}
&.column_clone, .vc-controls-clone {
.vc_icon {
background-position: -16px -48px;
}
}
&.column_edit, .vc-controls-edit {
.vc_icon {
background-position: -16px -32px;
}
}
&.column_toggle, .vc-controls-toggle {
.vc_icon {
background-position: -16px -96px;
}
}
// Row drag handler
&.column_move, .vc-controls-move {
cursor: move;
float: left;
}
&:hover {
color: #888888;
.vc-composer-icon {
.opacity(1);
}
}
}
.vc_controls-row {
text-align: center;
line-height: 1px;
position: relative;
z-index: 2;
visibility: visible; // TODO: set as default
display: flex;
justify-content: space-between;
flex-wrap: nowrap;
width: 100%;
height: 40px;
box-shadow: 0 -2px 4px 2px #eee;
border-bottom: 1px solid #f3f3f399;
background: #fff;
.opacity(1); // TODO: set as default
.controls-ac {
display: flex;
flex-wrap: wrap;
height: 40px;
padding: 0;
overflow: hidden;
width: 41px;
align-items: center;
justify-content: center;
position: absolute;
left: -41px;
margin-top: 0;
}
.control-style {
clear: both;
display: block !important;
float: left !important;
width: 16px !important;
height: 16px !important;
border-radius: 4px !important;
margin-right: 0 !important;
margin-top: 11px !important;
position: relative;
margin-left: 10px;
}
.controls-move {
display: flex;
flex-wrap: nowrap;
margin-right: auto;
}
.vc_row_distortion {
float: right;
display: block;
background: #282d33;
color: #FFF;
font-size: 12px;
line-height: 22px;
}
.controls-ac:hover {
width: 123px;
left: -123px;
overflow: visible;
.vc_control.column_clone {
border-left: 1px solid #e1e2e8 !important;
}
}
div, .vc_row_edit_clone_delete {
position: relative;
z-index: 9;
.vc_control {
clear: both;
height: 38px;
width: 40px;
background-color: transparent !important;
border-right: 1px solid #ebebeb;
border-left: 0;
border-bottom: 0;
padding: 0;
border-radius: 0;
color: #6a6a6a;
margin-left: 0 !important;
float: none !important;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
transition: all 300ms;
&.vc_row_layouts {
i {
left: 20px;
}
&:hover {
color:#6a6a6a;
background-color: transparent !important;
}
a:hover, a {
color: #6a6a6a;
i {
color: #6a6a6a;
}
}
}
&:hover {
background-color: #028E2D !important;
color: #fff;
i {
color: #fff;
}
}
}
.column_move_down {
border-bottom: 1px solid transparent;
}
}
.vc_row_edit_clone_delete {
display: flex;
flex-wrap: nowrap;
margin-left: auto;
&.section {
margin-left: unset;
}
.vc_control {
border-left: 1px solid #ebebeb;
border-right: 0;
}
}
.control-main {
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
margin: auto;
text-align: center;
height: 100%;
z-index: 1;
left: 0;
position: absolute;
right: 0;
.vc_control {
background-color: transparent !important;
color: #868c92;
}
.vc_control:not(.column_add) {
border: none;
}
.column_add {
border-left: 1px solid #ebebeb;
border-right: 1px solid #ebebeb;
border-top: none;
border-bottom: none;
}
}
.vc_row-name-id {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
display: inline-block;
line-height: 21px;
font-size: 12px;
padding: 10px 10px;
border-right: 1px solid #ebebeb;
float: left;
text-transform: capitalize;
font-variant: none;
letter-spacing: .2px;
font-weight: 400;
position: relative;
left: 0;
top: 0;
color: #fff;
background-color: #363636;
&.row {
border-left: 1px solid #ebebeb;
position: absolute;
margin: 0;
left: 50%;
transform: translateX(-50%);
right: 0;
top: -1px;
display: table;
}
}
&:hover {
z-index: 10;
}
.vc_control {
background-color: @vc_row_control_bg;
padding: 3px 10px;
line-height: 20px;
transition: background-color .3s !important;
}
.column_add, .vc_control-add-column {
float: left;
margin-left: 1px;
}
.column_move {
padding: 10px 14px 5px;
font-size: 11px;
}
.column_edit, .vc_column-copy, .vc_column-clone, .vc_column-paste {
padding: 5px 12px;
}
.vc-c-icon-add,
.vc-c-icon-delete_empty,
.vc-c-icon-content_copy {
position: relative;
font-size: 11px;
display: inline-block;
width: 18px;
height: 18px;
&::before {
position: absolute;
top: 50%;
left: 50%;
.translate(-50%, -50%);
}
}
.vc-c-icon-delete_empty {
font-size: 11px;
}
.vc-c-icon-content_copy {
font-size: 11px;
}
.vc-c-icon-mode_edit {
font-size: 11px;
}
.vc-c-icon-arrow_drop_down {
font-size: 18px;
}
.vc_row_layouts, .vc_control-row-layout {
height: 16px;
overflow: hidden;
float: left;
padding: 3px 0 5px 4px;
text-align: left;
margin-left: 1px;
background: #e6e6e6;
border: 1px solid transparent;
border-radius: 2px 2px 0 0;
display: flex !important;
flex-wrap: wrap;
i {
font-size: 9px;
width: 32px;
}
.vc_active {
display: inline-block;
}
&:hover {
width: auto;
height: auto;
position: relative;
left: 0;
z-index: 1;
a {
display: inline-block;
&:hover,
&.vc_active {
background-color: #FBEED5;
}
}
}
}
.vc_control-set-column {
//background-image: url(../vc/row_layouts/1.gif);
//background-position: center center;
//background-repeat: no-repeat;
display: none;
border: none;
width: 30px;
height: 16px;
background-color: transparent;
cursor: pointer;
font-size: 11px;
color: #A0A0A0;
margin-right: 4px;
position: relative;
transition: all 300ms;
&:active {
outline: none;
}
&:hover {
background-color: #028E2D;
}
&.vc_active {
background-color: transparent;
}
.vc-composer-icon {
position: absolute;
top: 50%;
left: 15px;
.translate(-50%, -50%);
}
&.custom_columns {
background-image: none;
border-bottom: 1px dotted;
font-size: 11px;
height: auto;
line-height: 12px;
margin: 0 3px;
padding: 2px 0 0 0;
width: auto;
color: #2EE636;
font-variant: small-caps;
letter-spacing: .5px;
text-transform: lowercase;
font-weight: 500;
&:hover {
color: #fff;
}
}
&.l_12_12 {
background-image: url(../vc/row_layouts/12_12.gif);
}
&.l_23_13 {
background-image: url(../vc/row_layouts/23_13.gif);
}
&.l_13_13_13 {
background-image: url(../vc/row_layouts/13_13_13.gif);
}
&.l_13_23 {
background-image: url(../vc/row_layouts/13_23.gif);
}
&.l_14_14_14_14 {
background-image: url(../vc/row_layouts/14_14_14_14.gif);
}
&.l_23_13 {
background-image: url(../vc/row_layouts/23_13.gif);
}
&.l_14_34 {
background-image: url(../vc/row_layouts/14_34.gif);
}
&.l_14_12_14 {
background-image: url(../vc/row_layouts/14_12_14.gif);
}
&.l_56_16 {
background-image: url(../vc/row_layouts/56_16.gif);
}
&.l_16_46_16 {
background-image: url(../vc/row_layouts/14_46_16.gif);
}
&.l_16_16_16_12 {
background-image: url(../vc/row_layouts/16_16_16_12.gif);
}
&.l_16_16_16_16_16_16 {
background-image: url(../vc/row_layouts/16_16_16_16_16_16.gif);
}
}
// Right controls (delete, clone, edit)
.vc_row_edit_clone_delete {
.vc_control {
float: right;
background-position: center center;
background-repeat: no-repeat;
margin-left: 1px;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
}
.vc_row_color {
float: right;
margin-top: 3px;
width: 16px;
height: 16px;
display: block;
margin-right: 3px;
border-radius: 8px;
}
.vc_row_image {
float: right;
margin-top: 3px;
width: 16px;
height: 16px;
display: block;
margin-right: 3px;
background-size: cover;
border-radius: 8px;
}
}
.wpb_vc_section {
padding-bottom: 30px;
margin-bottom: 15px;
> .vc_controls-row {
position: relative;
padding: 0 !important;
z-index: 2;
height: 40px !important;
line-height: 42px !important;
background-color: #fff !important;
border: 0;
box-shadow: 0 0 4px 2px #eee;
}
> .wpb_element_wrapper {
margin: 0 -15px;
padding: 20px;
z-index: 1;
position: relative;
border: 1px solid #a9b1d1;
border-top: 0;
background: #fff;
}
.vc_section-bottom-controls {
text-align: center;
height: 38px !important;
line-height: 36px !important;
background-color: #fff !important;
border: 1px solid #f9f9f9;
border-top: 0;
box-shadow: -2px 3px 12px 1px #f3f3f3;
.vc_column-add {
line-height: 38px;
}
}
}
.wpb_vc_section.ut-structural-module > .wpb_element_wrapper {
border: 1px solid #e9e9e9;
margin: 0;
padding: 25px 24px 20px;
box-shadow: 0 0 4px 2px #f3f3f3;
background: #efefef;
.wpb_vc_row {
margin-bottom: 30px;
}
.wpb_vc_row .wpb_element_wrapper {
padding: 26px;
border: 1px solid #f5f5f5;
margin-top: -1px;
box-shadow: 1px 3px 11px 2px #f3f3f3;
background: #F9f9f9;
.wpb_vc_column .wpb_element_wrapper {
padding: 28px;
border: 1px solid #e1e2e8;
margin-top: -1px;
box-shadow: 0 0 4px 2px #f9f9f9;
background: #f3f3f3;
.wpb_column_container .wpb_element_wrapper {
box-shadow: 0 0 4px 2px #f2f2f2;
background: #F9f9f9;
}
.vc_container_for_children {
.wpb_column_container .wpb_element_wrapper {
box-shadow: 0 0 4px 2px #fffbfb;
background: #ffffff;
}
}
}
}
}
.vc_control-align {
.vc_control {
display: none;
border: 0;
margin: 0;
&.vc_active {
display: block;
}
}
&:hover {
position: relative;
height: 15px;
width: 20px;
z-index: 10;
.vc_control-wrap {
position: absolute;
background-color: #e6e6e6;
top: -3px;
padding: 2px;
left: 0;
.vc_control {
display: block;
&.vc_active {
background-color: lightyellow;
}
}
}
}
}
.vc_control-align-left {
.vc_icon {
background-position: -16px -143px;
}
}
.vc_control-align-center {
.vc_icon {
background-position: -16px -159px;
}
}
.vc_control-align-right {
.vc_icon {
background-position: -16px -175px;
}
}
.controls_column {
&.bottom-controls {
.column_edit,
.column_delete,
.column_clone {
display: none;
}
}
}
.wpb_content_element {
&:hover {
> .vc_controls {
.vc_controls-visible;
}
}
}
.wpb_ut_accordion_item .wpb_element_title,
.wpb_ut_accordion .wpb_element_title,
.wpb_ut_toggle_group .wpb_element_title,
.wpb_ut_hover_box .wpb_element_title{
color: #fff !important;
background: #262b30;
}
.wpb_ut_hover_box .vc_container_for_children {
.wpb_element_title {
color: unset !important;
background: unset;
}
}
.wpb_ut_toggle_item > .wpb_element_wrapper > .vc_admin_label {
display: block !important;
}
.wpb_ut_toggle_item > .wpb_element_wrapper > .wpb_element_title {
padding: 6px 16px !important;
width: calc(100% - 32px);
}