13 changed files with 768 additions and 700 deletions
@ -1,271 +1,271 @@ |
|||||
@import '../resources/variables'; |
@import "../resources/variables"; |
||||
$selectedColor: rgba(24, 144, 255, 0.05); |
$selectedColor: rgba(24, 144, 255, 0.05); |
||||
$lighterBlue: #1890ff; |
$lighterBlue: #1890ff; |
||||
.form-edit-container { |
.form-edit-container { |
||||
position: relative; |
position: relative; |
||||
width: 100%; |
width: 100%; |
||||
height: calc(100vh - 60px); |
height: 100vh; |
||||
overflow-y: hidden; |
overflow-y: hidden; |
||||
} |
} |
||||
.components-list { |
.components-list { |
||||
padding: 8px; |
padding: 8px; |
||||
box-sizing: border-box; |
box-sizing: border-box; |
||||
height: 100%; |
height: 100%; |
||||
.components-item { |
.components-item { |
||||
display: inline-block; |
display: inline-block; |
||||
width: 48%; |
width: 48%; |
||||
margin: 1%; |
margin: 1%; |
||||
transition: transform 0ms !important; |
transition: transform 0ms !important; |
||||
} |
} |
||||
} |
} |
||||
.components-draggable { |
.components-draggable { |
||||
padding-bottom: 20px; |
padding-bottom: 20px; |
||||
} |
} |
||||
.components-title { |
.components-title { |
||||
font-size: 14px; |
font-size: 14px; |
||||
color: #222; |
color: #222; |
||||
margin: 6px 2px; |
margin: 6px 2px; |
||||
.svg-icon { |
.svg-icon { |
||||
color: #666; |
color: #666; |
||||
font-size: 18px; |
font-size: 18px; |
||||
} |
} |
||||
} |
} |
||||
.components-body { |
.components-body { |
||||
padding: 8px 10px; |
padding: 8px 10px; |
||||
background: $selectedColor; |
background: $selectedColor; |
||||
font-size: 12px; |
font-size: 12px; |
||||
cursor: move; |
cursor: move; |
||||
border: 1px dashed $selectedColor; |
border: 1px dashed $selectedColor; |
||||
border-radius: 3px; |
border-radius: 3px; |
||||
|
.svg-icon { |
||||
|
color: #777; |
||||
|
font-size: 15px; |
||||
|
} |
||||
|
&:hover { |
||||
|
border: 1px dashed $--color-primary; |
||||
|
color: $--color-primary; |
||||
.svg-icon { |
.svg-icon { |
||||
color: #777; |
color: $--color-primary; |
||||
font-size: 15px; |
|
||||
} |
|
||||
&:hover { |
|
||||
border: 1px dashed $--color-primary; |
|
||||
color: $--color-primary; |
|
||||
.svg-icon { |
|
||||
color: $--color-primary; |
|
||||
} |
|
||||
} |
} |
||||
|
} |
||||
} |
} |
||||
.left-board { |
.left-board { |
||||
width: 260px; |
width: 260px; |
||||
position: absolute; |
position: absolute; |
||||
left: 10px; |
left: 10px; |
||||
top: 0; |
top: 0; |
||||
margin-top: 5px; |
margin-top: 5px; |
||||
height: calc(100vh - 80px); |
height: calc(100vh - 20px); |
||||
background-color: rgba(255, 255, 255, 100); |
background-color: rgba(255, 255, 255, 100); |
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); |
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); |
||||
border: 1px solid rgba(255, 255, 255, 100); |
border: 1px solid rgba(255, 255, 255, 100); |
||||
} |
} |
||||
.el-menu.el-menu--horizontal { |
.el-menu.el-menu--horizontal { |
||||
border-bottom: none; |
border-bottom: none; |
||||
} |
} |
||||
.left-scrollbar { |
.left-scrollbar { |
||||
height: calc(100vh - 80px); |
height: calc(100vh - 20px); |
||||
overflow: hidden; |
overflow: hidden; |
||||
margin: 5px; |
margin: 5px; |
||||
border-radius: 7px; |
border-radius: 7px; |
||||
} |
} |
||||
.center-scrollbar { |
.center-scrollbar { |
||||
height: calc(100vh - 60px); |
height: 100vh; |
||||
overflow: hidden; |
overflow: hidden; |
||||
width: 90%; |
width: 90%; |
||||
margin: 20px auto 0; |
margin: 20px auto 0; |
||||
box-sizing: border-box; |
box-sizing: border-box; |
||||
background-color: rgb(255, 255, 255); |
background-color: rgb(255, 255, 255); |
||||
border: 2px solid rgba(255, 255, 255, 100); |
border: 2px solid rgba(255, 255, 255, 100); |
||||
overflow-y: hidden; |
overflow-y: hidden; |
||||
} |
} |
||||
.center-board { |
.center-board { |
||||
height: calc(100vh - 220px); |
height: calc(100vh - 220px); |
||||
width: auto; |
width: auto; |
||||
margin: 0 350px 80px 260px; |
margin: 0 350px 80px 260px; |
||||
box-sizing: border-box; |
box-sizing: border-box; |
||||
} |
} |
||||
.empty-info { |
.empty-info { |
||||
position: absolute; |
position: absolute; |
||||
top: 36%; |
top: 36%; |
||||
left: 0; |
left: 0; |
||||
right: 0; |
right: 0; |
||||
text-align: center; |
text-align: center; |
||||
font-size: 18px; |
font-size: 18px; |
||||
color: $--color-primary; |
color: $--color-primary; |
||||
letter-spacing: 4px; |
letter-spacing: 4px; |
||||
} |
} |
||||
.action-bar { |
.action-bar { |
||||
position: relative; |
position: relative; |
||||
height: 42px; |
height: 42px; |
||||
text-align: right; |
text-align: right; |
||||
padding: 0 15px; |
padding: 0 15px; |
||||
box-sizing: border-box; |
box-sizing: border-box; |
||||
border: 1px solid #f1e8e8; |
border: 1px solid #f1e8e8; |
||||
border-top: none; |
border-top: none; |
||||
border-left: none; |
border-left: none; |
||||
.delete-btn { |
.delete-btn { |
||||
color: #f56c6c; |
color: #f56c6c; |
||||
} |
} |
||||
} |
} |
||||
.center-board-row { |
.center-board-row { |
||||
padding: 12px 12px 15px 12px; |
padding: 12px 12px 15px 12px; |
||||
box-sizing: border-box; |
box-sizing: border-box; |
||||
overflow-y: hidden; |
overflow-y: hidden; |
||||
& > .el-form { |
& > .el-form { |
||||
// 69 = 12+15+42 |
// 69 = 12+15+42 |
||||
height: calc(100vh - 69px); |
height: calc(100vh - 69px); |
||||
} |
} |
||||
} |
} |
||||
.drawing-board { |
.drawing-board { |
||||
height: 100%; |
height: 100%; |
||||
|
position: relative; |
||||
|
.components-body { |
||||
|
padding: 0; |
||||
|
margin: 0; |
||||
|
font-size: 0; |
||||
|
} |
||||
|
.sortable-ghost { |
||||
position: relative; |
position: relative; |
||||
.components-body { |
display: block; |
||||
padding: 0; |
overflow: hidden; |
||||
margin: 0; |
&::before { |
||||
font-size: 0; |
content: " "; |
||||
} |
position: absolute; |
||||
.sortable-ghost { |
left: 0; |
||||
position: relative; |
right: 0; |
||||
display: block; |
top: 0; |
||||
overflow: hidden; |
height: 3px; |
||||
&::before { |
background: $--color-primary; |
||||
content: " "; |
z-index: 2; |
||||
position: absolute; |
|
||||
left: 0; |
|
||||
right: 0; |
|
||||
top: 0; |
|
||||
height: 3px; |
|
||||
background: $--color-primary; |
|
||||
z-index: 2; |
|
||||
} |
|
||||
} |
} |
||||
.components-item.sortable-ghost { |
} |
||||
width: 100%; |
.components-item.sortable-ghost { |
||||
height: 60px; |
width: 100%; |
||||
background-color: $selectedColor; |
height: 60px; |
||||
|
background-color: $selectedColor; |
||||
|
} |
||||
|
.active-from-item { |
||||
|
& > .el-form-item { |
||||
|
background: $selectedColor; |
||||
|
border-radius: 6px; |
||||
} |
} |
||||
.active-from-item { |
& > .drawing-item-copy, |
||||
& > .el-form-item { |
& > .drawing-item-delete { |
||||
background: $selectedColor; |
display: initial; |
||||
border-radius: 6px; |
|
||||
} |
|
||||
& > .drawing-item-copy, |
|
||||
& > .drawing-item-delete { |
|
||||
display: initial; |
|
||||
} |
|
||||
& > .component-name { |
|
||||
color: $lighterBlue; |
|
||||
} |
|
||||
} |
} |
||||
.el-form-item { |
& > .component-name { |
||||
margin-bottom: 15px; |
color: $lighterBlue; |
||||
} |
} |
||||
|
} |
||||
|
.el-form-item { |
||||
|
margin-bottom: 15px; |
||||
|
} |
||||
} |
} |
||||
.drawing-item { |
.drawing-item { |
||||
position: relative; |
position: relative; |
||||
cursor: move; |
cursor: move; |
||||
&.unfocus-bordered:not(.active-from-item) > div:first-child { |
&.unfocus-bordered:not(.active-from-item) > div:first-child { |
||||
border: 1px dashed #ccc; |
border: 1px dashed #ccc; |
||||
} |
} |
||||
.el-form-item { |
.el-form-item { |
||||
padding: 12px 10px; |
padding: 12px 10px; |
||||
} |
} |
||||
} |
} |
||||
.drawing-row-item { |
.drawing-row-item { |
||||
position: relative; |
position: relative; |
||||
cursor: move; |
cursor: move; |
||||
box-sizing: border-box; |
box-sizing: border-box; |
||||
border: 1px dashed #ccc; |
border: 1px dashed #ccc; |
||||
border-radius: 3px; |
border-radius: 3px; |
||||
padding: 0 2px; |
padding: 0 2px; |
||||
margin-bottom: 15px; |
margin-bottom: 15px; |
||||
.drawing-row-item { |
.drawing-row-item { |
||||
margin-bottom: 2px; |
margin-bottom: 2px; |
||||
} |
} |
||||
.el-col { |
.el-col { |
||||
margin-top: 22px; |
margin-top: 22px; |
||||
} |
} |
||||
.el-form-item { |
.el-form-item { |
||||
margin-bottom: 0; |
margin-bottom: 0; |
||||
} |
} |
||||
.drag-wrapper { |
.drag-wrapper { |
||||
min-height: 80px; |
min-height: 80px; |
||||
} |
} |
||||
&.active-from-item { |
&.active-from-item { |
||||
border: 1px dashed $lighterBlue; |
border: 1px dashed $lighterBlue; |
||||
} |
} |
||||
.component-name { |
.component-name { |
||||
position: absolute; |
position: absolute; |
||||
top: 0; |
top: 0; |
||||
left: 0; |
left: 0; |
||||
font-size: 12px; |
font-size: 12px; |
||||
color: #bbb; |
color: #bbb; |
||||
display: inline-block; |
display: inline-block; |
||||
padding: 0 6px; |
padding: 0 6px; |
||||
} |
} |
||||
} |
} |
||||
.drawing-item, |
.drawing-item, |
||||
.drawing-row-item { |
.drawing-row-item { |
||||
&:hover { |
&:hover { |
||||
& > .el-form-item { |
& > .el-form-item { |
||||
background: $selectedColor; |
background: $selectedColor; |
||||
border-radius: 6px; |
border-radius: 6px; |
||||
} |
|
||||
& > .drawing-item-copy, |
|
||||
& > .drawing-item-delete { |
|
||||
display: initial; |
|
||||
} |
|
||||
} |
} |
||||
& > .drawing-item-copy, |
& > .drawing-item-copy, |
||||
& > .drawing-item-delete { |
& > .drawing-item-delete { |
||||
display: none; |
display: initial; |
||||
position: absolute; |
|
||||
top: -10px; |
|
||||
width: 22px; |
|
||||
height: 22px; |
|
||||
line-height: 22px; |
|
||||
text-align: center; |
|
||||
border-radius: 50%; |
|
||||
font-size: 12px; |
|
||||
border: 1px solid; |
|
||||
cursor: pointer; |
|
||||
z-index: 1; |
|
||||
} |
} |
||||
& > .drawing-item-copy { |
} |
||||
right: 56px; |
& > .drawing-item-copy, |
||||
border-color: $lighterBlue; |
& > .drawing-item-delete { |
||||
color: $lighterBlue; |
display: none; |
||||
background: #fff; |
position: absolute; |
||||
&:hover { |
top: -10px; |
||||
background: $lighterBlue; |
width: 22px; |
||||
color: #fff; |
height: 22px; |
||||
} |
line-height: 22px; |
||||
|
text-align: center; |
||||
|
border-radius: 50%; |
||||
|
font-size: 12px; |
||||
|
border: 1px solid; |
||||
|
cursor: pointer; |
||||
|
z-index: 1; |
||||
|
} |
||||
|
& > .drawing-item-copy { |
||||
|
right: 56px; |
||||
|
border-color: $lighterBlue; |
||||
|
color: $lighterBlue; |
||||
|
background: #fff; |
||||
|
&:hover { |
||||
|
background: $lighterBlue; |
||||
|
color: #fff; |
||||
} |
} |
||||
& > .drawing-item-delete { |
} |
||||
right: 24px; |
& > .drawing-item-delete { |
||||
border-color: #f56c6c; |
right: 24px; |
||||
color: #f56c6c; |
border-color: #f56c6c; |
||||
background: #fff; |
color: #f56c6c; |
||||
&:hover { |
background: #fff; |
||||
background: #f56c6c; |
&:hover { |
||||
color: #fff; |
background: #f56c6c; |
||||
} |
color: #fff; |
||||
} |
} |
||||
|
} |
||||
} |
} |
||||
|
|
||||
.form-name-text { |
.form-name-text { |
||||
padding: 6px 10px; |
padding: 6px 10px; |
||||
border: 1px dashed transparent; |
border: 1px dashed transparent; |
||||
line-height: 30px; |
line-height: 30px; |
||||
margin: 0; |
margin: 0; |
||||
} |
} |
||||
.form-name-text input { |
.form-name-text input { |
||||
border: none; |
border: none; |
||||
background-color: transparent; |
background-color: transparent; |
||||
} |
} |
||||
[contenteditable]:focus { |
[contenteditable]:focus { |
||||
outline: none; |
outline: none; |
||||
background-color: #f4f4f4; |
background-color: #f4f4f4; |
||||
border: 1px solid #f4f4f4; |
border: 1px solid #f4f4f4; |
||||
} |
} |
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue