.dark {
|
.jnpf-print-designer {
|
.flex-row {
|
.center-side {
|
#hiprintPrintTemplate {
|
color: #333;
|
background-color: #fff;
|
}
|
// 滚动条右下角的三角形颜色
|
::-webkit-scrollbar-corner {
|
background-color: #fff;
|
}
|
}
|
|
.right-side {
|
#PrintElementOptionSetting {
|
.prop-tabs .prop-tab-items .prop-tab-item span {
|
color: rgb(255 255 255 / 85%);
|
}
|
|
.hiprint-option-items .hiprint-option-item .hiprint-option-item-label {
|
color: #fff;
|
}
|
}
|
}
|
}
|
}
|
}
|
|
.jnpf-print-designer {
|
display: flex;
|
height: 100%;
|
|
&__body {
|
position: relative;
|
display: flex;
|
flex: 1;
|
overflow: hidden;
|
}
|
|
.design-wrap {
|
width: 100%;
|
height: calc(100%);
|
}
|
|
.flex-row {
|
display: flex;
|
height: calc(100%);
|
overflow: hidden;
|
|
.left-side {
|
min-width: 250px;
|
max-width: 250px;
|
height: calc(100%);
|
background: var(--component-background);
|
border-radius: 8px;
|
|
.tabs-content {
|
height: calc(100% - 42px);
|
user-select: none;
|
|
.components-list {
|
.components-list-title {
|
font-weight: 600;
|
|
.title-tip {
|
margin-left: 4px;
|
font-size: 12px;
|
font-weight: normal;
|
color: #999;
|
}
|
}
|
|
.ant-collapse-content-box {
|
display: flex;
|
flex-wrap: wrap;
|
justify-content: space-between;
|
padding: 0 10px;
|
}
|
|
.components-draggable {
|
display: flex;
|
flex-wrap: wrap;
|
justify-content: space-between;
|
}
|
|
.components-item {
|
width: 110px;
|
margin-bottom: 10px;
|
transition: transform 0ms !important;
|
|
&.disabled {
|
.components-body {
|
color: var(--text-color-secondary);
|
cursor: not-allowed;
|
|
&:hover {
|
color: var(--text-color-secondary);
|
border-color: var(--border-color-base);
|
}
|
}
|
}
|
|
&.ep-click-item .components-body {
|
cursor: pointer;
|
}
|
|
.components-body {
|
display: flex;
|
align-items: center;
|
height: 36px;
|
padding-left: 8px;
|
font-size: 12px;
|
line-height: 34px;
|
color: var(--text-color);
|
cursor: move;
|
border: 1px solid var(--border-color-base);
|
border-radius: var(--radius);
|
|
i {
|
height: 16px;
|
margin-right: 4px;
|
line-height: 16px;
|
}
|
|
&:hover {
|
color: var(--primary-color);
|
border: 1px solid var(--primary-color);
|
}
|
}
|
}
|
}
|
|
.dataSet-content {
|
height: 100%;
|
|
.dataSet-content-header {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
height: 50px;
|
padding: 10px;
|
font-size: 16px;
|
border-bottom: 1px solid var(--border-color-base1);
|
}
|
|
.dataSet-content-main {
|
height: calc(100% - 50px);
|
}
|
}
|
}
|
}
|
|
.center-side {
|
position: relative;
|
box-sizing: border-box;
|
flex: 1;
|
min-width: 800px;
|
margin: 0 10px;
|
overflow: hidden;
|
background: var(--component-background);
|
border-radius: 8px;
|
|
.center-side-tool-wrap {
|
display: flex;
|
justify-content: space-between;
|
padding: 10px;
|
border-bottom: 1px solid var(--border-color-base1);
|
|
.left-handle-tool-wrap {
|
display: flex;
|
}
|
|
.right-handle-tool-wrap {
|
display: flex;
|
align-items: center;
|
margin-left: 10px;
|
|
.action-bar-divider {
|
top: 1px;
|
height: 16px;
|
margin: 0 6px;
|
|
& + .action-bar-btn {
|
margin-left: 0;
|
}
|
}
|
|
.action-bar-btn {
|
padding: 0 4px !important;
|
margin-left: 10px;
|
|
i {
|
font-size: 18px;
|
|
&.icon-ym-redo,
|
&.icon-ym-undo {
|
font-size: 14px;
|
}
|
}
|
}
|
}
|
}
|
|
.size-tool-wrap {
|
margin: 0 10px;
|
|
button {
|
width: 32px;
|
padding: 0;
|
}
|
|
.custom-size-button {
|
width: auto !important;
|
padding: 0 8px;
|
}
|
}
|
|
.scale-tool-wrap {
|
.scale-value-input {
|
width: 60px !important;
|
|
input {
|
text-align: center;
|
}
|
}
|
}
|
|
#hiprintPrintTemplate {
|
box-sizing: border-box;
|
height: calc(100% - 53px);
|
padding: 15px 10px 10px 15px;
|
overflow: auto;
|
}
|
|
.draggable-box {
|
position: absolute;
|
top: 53px;
|
left: 0;
|
z-index: 100;
|
width: 100%;
|
height: calc(100% - 53px);
|
}
|
}
|
|
.right-side {
|
min-width: 300px;
|
max-width: 300px;
|
height: calc(100%);
|
overflow: hidden auto;
|
background: var(--component-background);
|
border-radius: 8px;
|
|
.prop-tabs {
|
background: var(--component-background) !important;
|
|
.prop-tab-items {
|
display: flex;
|
height: 42px;
|
padding: 0;
|
border-bottom: 1px solid var(--border-color-base1);
|
|
.prop-tab-item {
|
flex: 1;
|
height: 42px;
|
line-height: 42px;
|
text-align: center;
|
background: var(--component-background) !important;
|
|
span {
|
font-size: 14px;
|
font-weight: normal;
|
}
|
|
&.active {
|
border-bottom: 2px solid var(--primary-color);
|
|
span {
|
font-weight: bold;
|
color: var(--primary-color);
|
}
|
}
|
}
|
}
|
|
.hiprint-option-items {
|
padding: 10px 5px;
|
background: var(--component-background) !important;
|
|
.minicolors {
|
width: 100% !important;
|
}
|
}
|
}
|
|
.hiprint-option-items {
|
.hiprint-option-item {
|
box-sizing: border-box;
|
width: 100%;
|
margin-bottom: 18px;
|
|
.hiprint-option-item-label {
|
padding: 0;
|
margin: 0 0 2px;
|
font-size: 14px;
|
}
|
|
.hiprint-option-item-field {
|
& > select,
|
& > input[type='text'],
|
& > input[type='number'],
|
& > textarea {
|
box-sizing: border-box;
|
height: 32px;
|
padding: 0 16px 0 6px;
|
font-size: 14px;
|
outline: none;
|
background: var(--component-background) !important;
|
border: 1px solid var(--border-color-base);
|
border-radius: 2px;
|
|
&:hover {
|
border-color: var(--primary-color);
|
}
|
}
|
|
& > textarea {
|
display: block;
|
}
|
|
& > input[type='range'] {
|
&:hover {
|
box-shadow: none;
|
}
|
}
|
|
& > input[type='checkbox'] {
|
border: 1px solid var(--border-color-base);
|
|
&:hover {
|
border-color: var(--primary-color);
|
}
|
}
|
|
.minicolors {
|
width: 75%;
|
|
.minicolors-input {
|
box-sizing: border-box;
|
width: 100% !important;
|
height: 32px;
|
padding: 0 16px 0 30px;
|
font-size: 14px;
|
outline: none;
|
border: 1px solid var(--border-color-base);
|
border-radius: 2px;
|
|
&:hover {
|
border-color: var(--primary-color);
|
}
|
}
|
|
.minicolors-swatch {
|
top: 8px;
|
left: 8px;
|
}
|
}
|
}
|
|
.hiprint-option-table-selected-item {
|
.hi-pretty {
|
transform: translateY(-1px);
|
}
|
}
|
}
|
|
.hiprint-option-item-settingBtn {
|
width: 77px;
|
height: 32px;
|
font-size: 14px;
|
color: #fff;
|
text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
|
background: var(--primary-color);
|
border-color: var(--primary-color);
|
border-radius: 2px;
|
box-shadow: 0 2px 0 rgb(0 0 0 / 4.5%);
|
transform: translateY(-1px);
|
}
|
|
.hiprint-option-item-submitBtn {
|
width: 100%;
|
height: 32px;
|
margin: 0 5px;
|
font-size: 14px;
|
color: #fff;
|
text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
|
background: var(--primary-color);
|
border-color: var(--primary-color);
|
border-radius: 2px;
|
box-shadow: 0 2px 0 rgb(0 0 0 / 4.5%);
|
transform: translateY(0);
|
}
|
}
|
|
.hiprint-option-item-submitBtn,
|
.hiprint-option-item-deleteBtn {
|
box-sizing: border-box;
|
width: calc(50% - 15px);
|
height: 32px;
|
margin: 0 5px 10px;
|
font-size: 14px;
|
color: #fff;
|
text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
|
border-radius: 2px;
|
box-shadow: 0 2px 0 rgb(0 0 0 / 4.5%);
|
|
&.hiprint-option-item-submitBtn {
|
margin-left: 10px;
|
background: var(--primary-color);
|
border-color: var(--primary-color);
|
}
|
|
&.hiprint-option-item-deleteBtn {
|
background: var(--error-color);
|
border-color: var(--error-color);
|
}
|
}
|
}
|
}
|
}
|
|
.custom-print-size-popover {
|
.custom-size-input-group {
|
display: flex;
|
margin: 0 0 10px;
|
}
|
|
.custom-size-input {
|
width: 100px !important;
|
text-align: center !important;
|
}
|
|
.custom-size-input-range {
|
width: 30px;
|
padding: 0;
|
margin: 0 2px !important;
|
text-align: center;
|
background: var(--component-background);
|
border: none;
|
}
|
}
|