@opentiny/fluent-editor
Version:
A rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It's powerful and out-of-the-box.
185 lines (170 loc) • 3.81 kB
CSS
.ql-flow-chart-item {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.ql-flow-chart-control {
position: absolute;
top: 8px;
right: 50px;
display: none;
gap: 6px;
white-space: nowrap;
pointer-events: auto;
padding: 5px 5px;
background-color: rgba(255, 255, 255, 0.85);
border-radius: 8px;
box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}
.ql-flow-chart-control .ql-flow-chart-control-item {
align-items: center;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: center;
padding: 5px 5px;
border-radius: inherit;
transition: all 0.2s ease;
}
.ql-flow-chart-item .lf-dndpanel {
display: none;
top: 15%;
}
.ql-flow-chart-item .lf-dndpanel .ql-flow-chart-control-item {
height: 35.99px;
align-items: center;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: center;
padding: 5px 5px;
border-radius: inherit;
transition: all 0.2s ease;
}
.ql-flow-chart-control-icon {
width: 16px;
height: 16px;
margin-right: 6px;
display: flex;
align-items: center;
justify-content: center;
}
.ql-flow-chart-control-item i {
background-size: cover;
display: inline-block;
height: 20px;
vertical-align: middle;
width: 20px;
}
.ql-flow-chart-control-item.disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
.ql-flow-chart-control-item:hover {
background-color: #efefef;
}
.ql-flow-chart .lf-dndpanel .lf-dnd-text {
font-size: 12px;
}
.ql-flow-chart-edge-panel {
width: 130px;
position: absolute;
left: 50px;
top: 220px;
padding: 3px;
z-index: 1000;
max-height: 400px;
background-color: rgba(255, 255, 255, 0.85);
border-radius: 8px;
box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}
.ql-flow-chart-edge-panel .ql-flow-chart-edge-item {
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border: 1px solid #eee;
border-radius: inherit;
padding: 2px;
transition: box-shadow 0.3s ease;
}
.ql-flow-chart-edge-panel .ql-flow-chart-edge-item .ql-flow-chart-edge-type-icon {
width: 20px;
height: 20px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
.ql-flow-chart-edge-panel .ql-flow-chart-edge-item:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.ql-flow-chart-item .lf-text-input {
display: none ;
}
.ql-flow-chart-right-up-control {
position: absolute;
top: 8px;
right: 6px;
display: inline-flex;
gap: 6px;
white-space: nowrap;
pointer-events: auto;
padding: 5px 5px;
background-color: rgba(255, 255, 255, 0.85);
border-radius: 8px;
box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}
.ql-flow-chart-right-up-control .ql-flow-chart-control-item {
align-items: center;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: center;
padding: 5px 5px;
border-radius: inherit;
transition: all 0.2s ease;
}
.lf-shape-dashed {
margin: 10px auto 0px auto;
width: 20px;
height: 20px;
background-color: transparent;
border: 1.5px dashed #000;
border-radius: 2px;
}
.lf-shape-rect {
margin: 10px auto 0px auto;
width: 20px;
height: 20px;
background-color: transparent;
border: 1.5px solid #000;
border-radius: 2px;
}
.lf-shape-circle {
margin: 10px auto 0px auto;
width: 20px;
height: 20px;
background-color: transparent;
border: 1.5px solid #000;
border-radius: 50%;
}
.lf-shape-ellipse {
margin: 10px auto 0px 3px;
width: 26px;
height: 20px;
background-color: transparent;
border: 1.5px solid #000;
border-radius: 50%;
}
.lf-shape-diamond {
margin: 10px auto 10px auto;
width: 20px;
height: 20px;
background-color: transparent;
border: 1.5px solid #000;
transform: rotate(45deg);
}