@kademi/keditor
Version:
KEditor is a jQuery plugin which provides a content editor with drag n drop, configurable contents
110 lines (91 loc) • 2.42 kB
text/less
// Import
// -------------------------------------------------
@import "../_mixins";
@import "../_variables";
// jQuery UI
// -------------------------------------------------
.ui-sortable-placeholder {
&.keditor-snippet,
&.keditor-container,
&.keditor-component {
background: @blueLight ;
visibility: visible ;
height: 20px ;
margin: 5px 0 ;
float: none ;
outline: none ;
padding: 0 ;
opacity: 1 ;
border: 2px solid @blue;
&:before,
&:after {
display: none ;
}
}
}
.ui-sortable-helper {
&.keditor-section {
background: @snippet-bg ;
}
&.keditor-container {
.keditor-toolbar.keditor-toolbar-container {
display: block ;
> a {
display: none;
&.btn-container-move {
display: block;
}
}
}
.keditor-toolbar-bottom {
display: none ;
}
}
&.keditor-component {
.keditor-toolbar {
display: block ;
> a {
display: none;
&.btn-component-move {
display: block;
}
}
}
.keditor-toolbar-bottom {
display: none ;
}
}
}
.ui-resizable-resizer {
position: absolute;
width: 6px;
top: 0;
bottom: 0;
right: -3px;
background: #ddd;
cursor: col-resize;
display: none ;
&:before {
display: block;
content: '';
height: 30px;
width: 2px;
background: #aaa;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.ui-resizable-resizing &,
&:hover {
background: #ccc;
&:before {
background: #333;
}
}
.ui-resizable-resizing &,
.ui-resizable:focus &,
.ui-resizable:hover & {
display: block ;
}
}