@alilc/lowcode-editor-core
Version:
Core Api for Ali lowCode engine
216 lines (195 loc) • 3.61 kB
text/less
@keyframes shake {
from,
to {
margin: 0;
}
20%,
60% {
margin: 0 10px 0 -10px;
}
40%,
80% {
margin: 0 -10px 0 10px;
}
}
@keyframes drop {
from {
transform: translateY(-100%);
}
to {
transform: translateY(0);
}
}
@keyframes appear-left {
from {
transform: translateX(8px);
opacity: 0.8;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes appear-right {
from {
transform: translateX(-8px);
opacity: 0.8;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes appear-top {
from {
transform: translateY(8px);
opacity: 0.8;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes appear-bottom {
from {
transform: translateY(-8px);
opacity: 0.8;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes scale {
from {
transform: scale(0.9);
}
to {
transform: scale(1);
}
}
@keyframes spining {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes pulse {
from,
to {
transform: scale(1);
opacity: 0.7;
}
50% {
transform: scale(1.02);
opacity: 1;
}
}
.lc-arrow {
position: absolute;
width: 36px;
height: 10px;
box-sizing: border-box;
overflow: hidden;
&:after {
content: '';
display: block;
width: 0;
height: 0;
margin: 0 auto;
border: 8px solid transparent;
border-top-color: var(--color-pane-background, rgb(255, 255, 255));
}
transform-origin: 0 0;
}
.lc-align-top > .lc-arrow {
bottom: 0;
left: 0;
transform: translateY(100%);
}
.lc-align-right > .lc-arrow {
left: 0;
top: 0;
transform: rotate(90deg);
}
.lc-align-left > .lc-arrow {
right: 0;
top: 0;
transform-origin: right top;
transform: rotate(-90deg);
}
.lc-align-bottom > .lc-arrow {
top: 0;
left: 0;
transform: scaleY(-1);
}
.lc-tip {
z-index: 2;
position: fixed;
box-sizing: border-box;
background: var(--color-layer-tooltip-background);
max-height: 400px;
color: var(--color-text-reverse, rgba(255, 255, 255, 0.8));
left: 0;
top: 0;
visibility: hidden;
opacity: 0;
border-radius: 3px;
padding: 6px 8px;
text-shadow: 0 -1px var(--color-field-label, rgba(0, 0, 0, 0.3));
font-size: var(--font-size-text);
line-height: 14px;
max-width: 200px;
pointer-events: none;
&.lc-align-top {
transform: translateY(8px);
}
&.lc-align-bottom {
transform: translateY(-8px);
}
&.lc-align-left {
transform: translateX(8px);
}
&.lc-align-right {
transform: translateX(-8px);
}
.lc-arrow {
width: 24px;
height: 8px;
&:after {
border: 6px solid transparent;
border-top-color: var(--color-layer-tooltip-background, rgba(0, 0, 0, 0.7));
}
}
&.lc-theme-black {
background: var(--color-icon-pane, rgba(0, 0, 0, 0.7));
.lc-arrow:after {
border-top-color: var(--color-layer-tooltip-background, rgba(0, 0, 0, 0.7));
}
}
&.lc-theme-green {
background: var(--color-success-dark, var(--color-function-success-dark, #57a672));
.lc-arrow:after {
border-top-color: var(--color-success-dark, var(--color-function-success-dark, #57a672));
}
}
&.lc-visible {
visibility: visible;
}
&.lc-visible-animate {
visibility: visible;
opacity: 1;
transition: transform ease-out 200ms, opacity ease-out 200ms;
}
will-change: transform, width, height, opacity, left, top;
}
.lc-tips-container {
pointer-events: none;
position: fixed;
top: 0;
left: 0;
overflow: visible;
z-index: 2000;
}