208 lines
4.7 KiB
Plaintext
208 lines
4.7 KiB
Plaintext
@import "../../../../assets/less/core/boot.less";
|
|
|
|
.field-repeater {
|
|
padding-top: 5px;
|
|
|
|
ul.field-repeater-items,
|
|
li.field-repeater-item {
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
ul.field-repeater-items > li {
|
|
&.dragged {
|
|
opacity: .7;
|
|
position: absolute;
|
|
padding-top: 15px;
|
|
padding-right: 15px;
|
|
z-index: 2000;
|
|
background-color: @body-bg;
|
|
border: 1px dashed #dbdee0;
|
|
|
|
.repeater-item-remove {
|
|
opacity: 0;
|
|
}
|
|
|
|
.repeater-item-collapsed-title {
|
|
top: 5px;
|
|
}
|
|
}
|
|
|
|
&.placeholder {
|
|
display: block;
|
|
position: relative;
|
|
height: 25px;
|
|
margin-bottom: 5px;
|
|
&:before {
|
|
display: block;
|
|
position: absolute;
|
|
.icon(@chevron-right);
|
|
color: #d35714;
|
|
left: -10px;
|
|
top: 8px;
|
|
z-index: 2000;
|
|
}
|
|
}
|
|
}
|
|
|
|
li.field-repeater-item {
|
|
position: relative;
|
|
margin-left: 5px;
|
|
padding-left: 15px;
|
|
border-left: 1px solid #dbdee0;
|
|
min-height: 30px;
|
|
|
|
&:before {
|
|
color: #bdc3c7;
|
|
.icon(@circle);
|
|
font-size: 8px;
|
|
position: absolute;
|
|
left: -4px;
|
|
top: -2px;
|
|
}
|
|
|
|
&.collapsed {
|
|
.field-repeater-form {
|
|
display:none;
|
|
}
|
|
|
|
.repeater-item-collapse {
|
|
.repeater-item-collapse-one {
|
|
.transform(scale(1,-1));
|
|
}
|
|
}
|
|
|
|
.repeater-item-collapsed-title {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.repeater-item-collapsed-title {
|
|
display: none;
|
|
top: -5px;
|
|
position: absolute;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.field-repeater-form {
|
|
position: relative;
|
|
top: -7px;
|
|
.clearfix;
|
|
}
|
|
|
|
.repeater-item-handle {
|
|
position: absolute;
|
|
top: -6px;
|
|
left: -10px;
|
|
color: #bdc3c7;
|
|
background: @body-bg;
|
|
cursor: move;
|
|
opacity: 0;
|
|
border-radius: 999px;
|
|
.transition(~'opacity 0.5s');
|
|
&:hover {
|
|
color: #999;
|
|
}
|
|
}
|
|
|
|
.repeater-item-collapse {
|
|
position: absolute;
|
|
top: -9px;
|
|
right: 22px;
|
|
z-index: 90;
|
|
|
|
a, button {
|
|
.transition(~'transform 0.3s');
|
|
color: #bdc3c7;
|
|
line-height: 20px;
|
|
display: block;
|
|
font-size: 12px;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: #999;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.repeater-item-remove {
|
|
position: absolute;
|
|
top: -10px;
|
|
right: 0;
|
|
z-index: 90;
|
|
}
|
|
|
|
.repeater-item-collapse,
|
|
.repeater-item-handle,
|
|
.repeater-item-remove {
|
|
width: 20px;
|
|
height: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
&:hover, &:active {
|
|
.repeater-item-collapse,
|
|
.repeater-item-handle,
|
|
.repeater-item-remove {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.field-repeater-add-item {
|
|
position: relative;
|
|
margin-top: 10px;
|
|
margin-left: 20px;
|
|
border: 2px dotted #e0e0e0;
|
|
border-radius: 5px;
|
|
|
|
&:before {
|
|
color: #bdc3c7;
|
|
.icon(@plus);
|
|
font-size: 16px;
|
|
position: absolute;
|
|
left: -23px;
|
|
top: -11px;
|
|
}
|
|
|
|
> a {
|
|
color: #bdc3c7;
|
|
text-align: center;
|
|
display: block;
|
|
text-decoration: none;
|
|
padding: 13px 15px;
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
font-size: @font-size-base - 2;
|
|
}
|
|
|
|
&:hover, &:focus {
|
|
background-color: @highlight-hover-bg;
|
|
border-color: transparent;
|
|
|
|
&:before {
|
|
color: #999;
|
|
}
|
|
|
|
> a {
|
|
color: @highlight-hover-text;
|
|
}
|
|
}
|
|
|
|
&:active {
|
|
background: @highlight-active-bg;
|
|
border-color: transparent;
|
|
> a {
|
|
color: @highlight-active-text;
|
|
}
|
|
}
|
|
|
|
&.in-progress {
|
|
border-color: #e0e0e0 !important;
|
|
background: transparent !important;
|
|
}
|
|
}
|
|
}
|