UNPKG

ilead-ibpmp-design-new

Version:

基于 `vue` 和 `bpmn.io@7.0` ,实现 flowable 的 modeler 模型设计器

1,269 lines (1,266 loc) 26.5 kB
[class*=" icon-"], [class^=icon-]{ font-family: element-icons!important; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; vertical-align: baseline; display: inline-block; -webkit-font-smoothing:antialiased; } [class*=" icon-"]+span, [class^=icon-]+span{ margin-left: 5px; } .icon-info:before{ content: "\e7a1"; } .icon-info{ color: #00a0e9; position: absolute; left: 300px; top: 14px; cursor: pointer; } .icon-folder-opened:before{ content: "\e784"; } .icon-circle-plus:before{ content:"\e7a0"; } .icon-rank:before{ content: "\e6d1"; } .icon-zoom-in:before{ content: "\e777"; } .icon-zoom-out:before{ content: "\e776"; } .icon-back:before{ content: "\e6ea"; } .icon-right:before{ content: "\e6e9"; } .icon-download:before{ content: "\e77c"; } .icon-picture:before{ content: "\e79f"; } .icon-close:before{ content: "\e6db"; } .bpmn__design--iconclose:before{ content: "\e6db"; } .bpmn__design--btnsave{ position: fixed; z-index: 10; right: 223px; top: 10px; padding: 7px 15px; font-size: 12px; border-radius: 3px; display: inline-block; line-height: 1; white-space: nowrap; cursor: pointer; background: #ffffff; border: solid 1px #dddddd; color: #666666; text-align: center; box-sizing: border-box; outline: 0; margin: 0; transition: .1s; font-weight: normal; } .bpmn__design--btnsave:hover{ color: #00a0e9; background: #ecf5ff; } .pr{ position: relative; } .bpmu__input--add .el-input__inner{ padding-right: 32px; } .bpmu__input--addicon{ position: absolute; font-size: 12px; right: 5px; line-height: 26px; cursor: pointer; } .bpmu__input--addicon:hover{ color: #00a0e9; } .bpmn__detail--btn{ padding: 6px 15px; font-size: 14px; border-radius: 3px; display: inline-block; line-height: 1; white-space: nowrap; cursor: pointer; background: #ffffff; border: solid 1px #dddddd; color: #666666; text-align: center; box-sizing: border-box; outline: 0; transition: .1s; font-weight: normal; margin-right: 10px; } .bpmn__detail--btn:hover{ color: #00a0e9; background: #ecf5ff; } .bpmn__design--btn{ padding: 7px 15px; font-size: 14px; border-radius: 3px; display: inline-block; line-height: 1; white-space: nowrap; cursor: pointer; background: #ffffff; border: solid 1px #dddddd; color: #666666; text-align: center; box-sizing: border-box; outline: 0; transition: .1s; font-weight: normal; margin-right: 10px; } .bpmn__design--btn:hover{ color: #00a0e9; background: #ecf5ff; } .bpmn__design--btnclose{ padding: 3px !important; float: right; position: relative; right: 20px; top: 17px; z-index: 100; font-size: 12px; border-radius: 3px; display: inline-block; line-height: 1; white-space: nowrap; cursor: pointer; background: #ffffff; border: solid 1px #dddddd; color: #666666; text-align: center; box-sizing: border-box; outline: 0; transition: .1s; font-weight: normal; } .bpmn__design--btnclose:hover{ color: #00a0e9; background: #ecf5ff; } .bpmn__design--header{ border-bottom: 1px solid #DADADA; height: auto; position: fixed; width: 100%; z-index: 1; background: #ffffff; padding: 0 20px; box-sizing:border-box; flex-shrink:0; } .bpmn__design--contract{ content:''; position: absolute; z-index: 10; left: 104px; top: 5px; width: 30px; height: 20px; background: url(../img/cud_contract.png) no-repeat center center; background-size:21px 15px; cursor: pointer; } .bpmn__design--container{ align-items: stretch; display:flex; -webkit-box-orient:horizontal; -webkit-box-direction:normal; flex-direction:row; flex:1; flex-basis:auto; box-sizing:border-box; min-width: 0; } .bpmn__design--main{ display: block; flex:1; flex-basis:auto; overflow:auto; box-sizing:border-box; padding: 0; } .bpmn__design--aside{ width: 300px; overflow: auto; box-sizing:border-box; flex-shrink:0; border: solid 1px #dddddd; top: 104px; height: 570px; position: fixed; right: 0px; background: #ffffff; z-index: 1; } .bpmn__design--div{ display: flex; padding: 10px 0px; justify-content: space-between; } .bpmn__design--item{ margin-bottom: 5px; } .bpmn__dialog--item{ margin-bottom: 8px; display: inline-block; width: 50%; } .bpmn__design--itemlabel{ width: 80px !important; text-align: right; vertical-align: middle; float: left; color: #666666; padding: 0 3px 0 0; box-sizing: border-box; position: relative; font-size: 14px; line-height: 30px; } .bpmn__dialog--itemlabel{ width: 100px !important; text-align: left; vertical-align: middle; float: left; color: #666666; padding: 0 3px 0 0; box-sizing: border-box; position: relative; font-size: 14px; line-height: 30px; } .bpmn__dialog--itemcontent{ margin-left: 100px !important; height: 32px; position: relative; } .bpmn__design--itemcontent{ margin-left: 80px !important; height: 32px; position: relative; } .bpmn__design--itemcontentarea{ margin-left: 80px !important; position: relative; width: calc(100% - 80px); } .bpmn__design--itemlabel.is-required::after{ position: absolute; content:'*'; color: #e94848; right: 3px; } ::-webkit-input-placeholder{ color: #999999; font-size: 12px; } .bpmn__design--liinput{ height: 24px; line-height: 24px; background-color: #ffffff; background-image: none; border-radius: 4px; border: solid 1px #dddddd; box-sizing: border-box; color: #666666; display: inline-block; font-size: 14px; outline: 0; padding: 0 5px; transition:border-color 1s; -moz-transition:border-color 1s; -webkit-transition:border-color 1s; -o-transition:border-color 1s; width: calc(100% - 10px); margin: 0 5px; } .bpmn__design--liinput:hover{ border-color: #0069ac; } .bpmn__dialog--timeinput{ height: 28px; line-height: 26px; background-color: #ffffff; background-image: none; border-radius: 4px; border: solid 1px #dddddd; box-sizing: border-box; color: #666666; display: inline-block; font-size: 14px; outline: 0; padding: 0 5px; transition:border-color 1s; -moz-transition:border-color 1s; -webkit-transition:border-color 1s; -o-transition:border-color 1s; width: 50px; } .bpmn__dialog--timeinput:hover{ border-color: #0069ac; } .timespan{ padding: 0 10px; line-height: 32px; } .bpmn__dialog--radio{ position: relative; top: 2px; } .el-radio-group{ margin-top: 8px; } .el-radio{ margin-bottom: 8px; } .bpmn__design--input{ height: 28px; line-height: 26px; background-color: #ffffff; background-image: none; border-radius: 4px; border: solid 1px #dddddd; box-sizing: border-box; color: #666666; display: inline-block; font-size: 14px; outline: 0; padding: 0 5px; transition:border-color 1s; -moz-transition:border-color 1s; -webkit-transition:border-color 1s; -o-transition:border-color 1s; width: 100%; } .bpmn__design--input:hover{ border-color: #0069ac; } .bpmn__design--input.required{ border-color: #e94848 !important; } .bpmn__design--textarea{ height: auto; line-height: 21px; background-color: #ffffff; background-image: none; border-radius: 4px; border: solid 1px #dddddd; box-sizing: border-box; color: #666666; display: inline-block; font-size: 14px; outline: 0; padding: 0 5px; transition:border-color 1s; -moz-transition:border-color 1s; -webkit-transition:border-color 1s; -o-transition:border-color 1s; width: 100%; margin-bottom: 5px; } .bpmn__design--textarea:hover{ border-color: #0069ac; } .bpmn__design--badge{ position: relative; display: inline-block; } .bpmn__design--badgecontent{ background-color:#e94848; border-radius: 50%; color: #ffffff; display: inline-block; font-size: 12px; height: 20px; line-height: 18px; padding: 0 7px; text-align: center; white-space: nowrap; border: solid 1px #ffffff; position: absolute; right: 18px; top: 15px; transform:translateY(-50%) translateX(100%); } .bpmn__design--badgenum{ background-color:#00a0e9; border-radius: 50%; color: #ffffff; display: inline-block; font-size: 12px; height: 20px; line-height: 18px; padding: 0 7px; text-align: center; white-space: nowrap; border: solid 1px #ffffff; position: absolute; right: 18px; top: 15px; transform:translateY(-50%) translateX(100%); } .bpmn__design--tooltip{ display: inline; position: relative; cursor: pointer; } .bpmn__design--tooltip:hover::after,.bpmn__design--upload:hover::after{ position: absolute; line-height: 30px; height: 30px; padding: 0 10px; border-radius: 5px; background: #333333; font-size: 12px; display: block; color: #ffffff; left: 0; top: 35px; } .bpmn__design--tooltip:hover::before,.bpmn__design--upload:hover::before{ content:''; position: absolute; width: 0; height: 0; border: 5px solid; border-color: transparent transparent #333333; top: 25px; left: calc(50% - 10px); } .bpmn__design--tooltip[id='新建']:hover::after{ content: '新建'; } .bpmn__design--tooltip[id='适应屏幕']:hover::after{ content: '适应屏幕'; width: 48px; left: -10px; } .bpmn__design--tooltip[id='放大']:hover::after{ content: '放大'; } .bpmn__design--tooltip[id='缩小']:hover::after{ content: '缩小'; } .bpmn__design--tooltip[id='后退']:hover::after{ content: '后退'; } .bpmn__design--tooltip[id='前进']:hover::after{ content: '前进'; } .bpmn__design--upload{ display: inline-block; overflow: inherit !important; position: relative; cursor: pointer; } .bpmn__design--upload[id='加载xml']:hover::after{ content: '加载xml'; width: 48px; left: -10px; } .bpmn__sure{ font-size: 14px; line-height: 32px; color: #0069ac; padding-left: 10px; cursor: pointer; float: left; } .bpmn__design--colorbtn{ width: 30px; height: 30px; line-height: 30px !important; border: solid 1px #dddddd; border-radius: 3px; display: inline-block; position: relative; line-height: normal; text-align: center; cursor: pointer; font-size: 14px; float: left; background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); } .bpmn__design--colorbtn .colorBtn{ height: 22px !important; width: 22px !important; margin: 3px; border: solid 1px #999999; border-radius: 1px; /* background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); */ } .bpmn_Bg{ background: #333; opacity: 0; width: 300px; height: 830px; position: fixed; z-index: 10; top: 60px; right: 20px; } .bpmn__colorpicker{ z-index: 100000; position: absolute; right: 0px; top: 35px; } .bpmn__design--colorbtn .box{ left: -50px; } .bpmn__dialog--header{ padding: 20px 20px 10px; } .bpmn__dialog--title{ line-height: 24px; font-size: 18px; color: #333333; } .bpmn__dialog--body{ padding: 20px; font-size: 14px; color: #666666; word-break: break-all; } .bpmn__dialog--footer{ padding: 10px 20px 20px; text-align: right; box-sizing: border-box; } .bpmn__design--tab{ background: #ffffff; border: solid 1px #dddddd; box-shadow: 0 2px 4px 0 rgba(0,0,0,.12), 0 0 6px 0 rgba(0,0,0,.04); } .bpmn__design--tabnav{ background: #fafafa; height: 40px; overflow: hidden; list-style-type: none; margin: 0; padding: 0; } .bpmn__design--tabnav li{ float: left; background: #ffffff; border-right: solid 1px #dddddd; list-style-type: none; line-height: 40px; text-align: center; padding: 0 20px; margin: 0; cursor: pointer; } .bpmn__design--tabnav li.actived{ color: #00a0e9; } .bpmn__design--tabcon{ padding: 15px; } .bpmn__design--overflow{ max-height: 300px; } .bpmn__design--tabbtn{ padding: 7px 15px; font-size: 12px; border-radius: 3px; display: inline-block; line-height: 1; white-space: nowrap; cursor: pointer; background: #00a0e9; border: solid 1px #00a0e9; color: #ffffff; text-align: center; box-sizing: border-box; outline: 0; transition: .1s; font-weight: normal; margin-right: 10px; } .bpmn__design--tabbtn:hover{ background: #66b1ff; } .bpmn__design--table{ border: solid 1px #eeeeee; border-spacing:0; border-collapse:inherit; margin-top: 15px; position: relative; } .bpmn__design--table th{ height: 40px; line-height: 40px; border-spacing:0; border-collapse:inherit; width: 180px; border-bottom: solid 1px #eeeeee; border-right: solid 1px #eeeeee; color: #999999; cursor: default; } .bpmn__design--table th:nth-child(3){ width: 250px; } .bpmn__design--table th:nth-child(5),.bpmn__design--table th:nth-child(4){ width: 100px; } .bpmn__design--table th:nth-child(5),.bpmn__design--table td:last-child{ border-right: 0; } .bpmn__design--table tr:last-child td{ border-bottom: 0; } .bpmn__design--table td{ border-bottom: solid 1px #eeeeee; border-right: solid 1px #eeeeee; text-align: center; color: #666666; padding: 4px 10px; } .bpmn__design--p{ display: none; } .icon-info:hover .bpmn__design--p{ display: block; background: #333333; line-height: 20px; color: #ffffff; border: solid 1px #333333; border-radius: 5px; position: absolute; padding: 8px; left: -42px; top: -110px; width: 800px; } .icon-info:hover .bpmn__design--p::after{ content: ''; width: 0; height: 0; border: 8px solid; border-color: #333333 transparent transparent; position: absolute; left: 38px; bottom: -15px; } .bpmn__design--del{ display: inline-block; width: 21px; height: 21px; border-radius: 50%; background-color:#e94848; text-align: center; cursor: pointer; } .bpmn__design--iconclose{ font-family: element-icons!important; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; vertical-align: baseline; display: inline-block; -webkit-font-smoothing:antialiased; line-height: 21px; color: #ffffff; } .bpmn_tab--menu{ list-style-type: none; overflow: hidden; padding: 0; margin: 0; padding-bottom: 6px; border-bottom: solid 1px #dddddd; } .bpmn_tab--con{ list-style-type: none; padding: 15px 0 0 0; margin: 0; } .bpmn_tab--menu li{ float: left; font-size: 12px; font-weight: bold; margin-right: 10px; cursor: pointer; position: relative; padding-bottom: 3px; } .conli{ display: none; margin: 0; padding: 0; } .bpmn_tab--con li.actived{ display: block; } .bpmn_tab--menu li.actived{ color: #00a0e9; } .bpmn_tab--menu li.actived::after{ content: ''; display: block; width: 100%; height: 2px; bottom: -6px; left: 0; background: #00a0e9; position: absolute; } .bpmn_tab--menu li:hover{ color: #00a0e9; } .bpmn_tab--menu li:hover::after{ content: ''; display: block; width: 100%; height: 2px; bottom: -6px; left: 0; background: #00a0e9; position: absolute; } .bpmn__design--ul,.bpmn__dialog--ul{ list-style-type: none; overflow: hidden; padding: 0; margin: 0; } .bpmn__design--liadd{ position: absolute; width: 16px; height: 16px; left: 50px; top: 35px; cursor: pointer; background: url(../img/add.png) no-repeat; background-size: cover; } .bpmn__design--liremove{ position: absolute; width: 16px; height: 16px; left: 27px; top: 35px; cursor: pointer; background: url(../img/remove.png) no-repeat; background-size: cover; } .bpmn__design--ul li{ list-style-type: none; float: left; width: 50%; text-align: center; line-height: 28px; font-size: 14px; } .bpmn__dialog--ul li{ list-style-type: none; float: left; width: calc((100% - 0px)/7); text-align: center; line-height: 28px; } .lititle{ background: #fafafa; color: #999999; } input[type="text"]:disabled{ background: #fafafa; border-color: #dddddd !important; } .bpmn_input{ width: 232px; } .bpmn_input_max{ width: 612px; } .bpmn_input_min{ width: 130px; } .v-modal{ display: none; } .property-panel .tab-table .el-form-item{ margin-bottom: 0; } .el-dialog__body{ padding: 5px 20px; } .mtb_10{ margin: 10px 0 !important; } .mb_10_tr{ margin-bottom: 10px; text-align: right; overflow: hidden; } .tr{ overflow: hidden; text-align: right; } .el-table th.is-leaf{ background: #fafafa; } .el-table td, .el-table th{ padding: 3px 0; } .el-tabs__item{ height: 30px; line-height: 30px; } .bpmn__timetset{ position: relative; height: 40px; line-height: 40px; padding-left: 15px; font-weight: bold; } .bpmn__timetset::before{ position: absolute; content:''; width: 4px; height: 16px; left: 0; top: 12px; background: #00a0e9; } .el-table th>.cell{ padding-right: 14px; } .bpmn__formula_short{ overflow: hidden; margin-top: 5px; } .bpmn__formula_short a{ float: left; display: block; width: calc((100% - 28px)/6); background: #fafafa; text-align: center; margin-right: 3px; line-height: 21px; height: 21px; border: solid 1px #dddddd; border-radius: 2; cursor: pointer; font-size: 12px; } .bpmn__formula_short a:last-child,.bpmn__formula_long a:last-child{ margin-right: 0; } .bpmn__formula_long{ overflow: hidden; margin-top: 5px; } .bpmn__formula_long a{ float: left; display: block; width: calc((100% - 12.5px)/3); background: #fafafa; text-align: center; margin-right: 3px; line-height: 21px; height: 21px; border: solid 1px #dddddd; border-radius: 2; cursor: pointer; font-size: 12px; } :focus{ outline: none; } .bpmn-icon-subprocess-expanded, .bpmn-icon-data-object, .bpmn-icon-participant, .bpmn-icon-group, .bpmn-icon-data-store, .bpmn-icon-lasso-tool, .bpmn-icon-space-tool, .bpmn-icon-intermediate-event-none, .el-icon-rank{ display: none !important; } .icon-custom { border-radius: 50%; background-size: 35%; background-repeat: no-repeat; background-position: left; } .icon-custom.auto-task { position: relative; background-image: url('../img/autoTask.png'); } .icon-custom.auto-task::before { content: ''; width: 30px; height: 31px; } .icon-custom.exclusive { position: relative; background-image: url('../img/exclusive.png'); } .icon-custom.exclusive::before { content: ''; width: 30px; height: 31px; } .icon-custom.Merge { position: relative; background-image: url('../img/parallel.png'); } .icon-custom.Merge::before { content: ''; width: 30px; height: 31px; } html, body, #app { height: 880px; margin: 0; } /**去除bpmn.js的logo**/ .bjs-powered-by { visibility: hidden; } .bpmn-button { display: inline-block; line-height: 1; white-space: nowrap; cursor: pointer; background: #FFF; border: 1px solid #DCDFE6; color: #606266; -webkit-appearance: none; text-align: center; -webkit-box-sizing: border-box; box-sizing: border-box; outline: 0; margin: 0; -webkit-transition: .1s; transition: .1s; font-weight: 500; padding: 12px 20px; font-size: 14px; border-radius: 4px; } .bpmn-button+.bpmn-button { margin-left: 10px; } .bpmn__submit{ margin-bottom: 10px; float: right; } .primary { color: #FFF; background-color: #409EFF; border-color: #409EFF; } .mini { font-size: 12px; border-radius: 3px; padding: 7px 15px; } .bpmn-button.is-disabled, .bpmn-button.is-disabled:focus, .bpmn-button.is-disabled:hover { color: #C0C4CC; cursor: not-allowed; background-image: none; background-color: #FFF; border-color: #EBEEF5; } .bpmn-radio { margin-bottom: 8px; cursor: pointer; margin-right: 6px; position: relative; display: inline-block; } .bpmn-radio-group { margin-top: 6px; display: inline-block; line-height: 1; vertical-align: middle; } .radio-font { color: #606266 !important; cursor: pointer; font-size: 14px; line-height: 1; white-space: nowrap; outline: 0; font-weight: 500; padding-right: 10px; } .bpmn-radio.is-checked+.radio-font { color: #409EFF !important; } .bpmn-row { -webkit-box-sizing: border-box; box-sizing: border-box; } .bpmn-col { float: left; -webkit-box-sizing: border-box; box-sizing: border-box; } .bpmn-col-16 { width: 66.66667%; } .bpmn-col-8 { width: 33.33333%; } .bpmn-input-number--mini { width: 130px !important; line-height: 26px !important; } .bpmn-input-number { position: relative; display: inline-block; width: 180px; line-height: 38px; } .bpmn-input-number.is-disabled .bpmn-input-number__decrease, .bpmn-input-number.is-disabled .bpmn-input-number__increase { border-color: #E4E7ED; color: #E4E7ED; cursor: not-allowed; } .bpmn-input-number--mini .bpmn-input-number__decrease, .bpmn-input-number--mini .bpmn-input-number__increase { width: 28px; font-size: 12px; } .bpmn-input-number__decrease { left: 1px; border-radius: 4px 0 0 4px; border: 1px solid #DCDFE6; } .bpmn-input-number__increase { right: 1px; border-radius: 0 4px 4px 0; border: 1px solid #DCDFE6; } .bpmn-input-number__decrease, .bpmn-input-number__increase { position: absolute; z-index: 1; top: 1px; width: 40px; height: auto; text-align: center; background: #F5F7FA; color: #606266; cursor: pointer; font-size: 13px; } .bpmn-input-number--mini .bpmn-input__inner { padding-left: 35px; padding-right: 35px; } .bpmn-input__inner { -webkit-appearance: none; background-color: #FFF; background-image: none; border-radius: 4px; border: 1px solid #DCDFE6; -webkit-box-sizing: border-box; box-sizing: border-box; color: #606266; display: inline-block; font-size: inherit; height: 40px; line-height: 40px; outline: 0; padding: 0 0 0 15px; margin-right: 10px; -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1); transition: border-color .2s cubic-bezier(.645,.045,.355,1); width: 100%; } .bpmn-input--mini .bpmn-input__inner { height: 28px; line-height: 28px; } .bpmn-input.is-disabled .bpmn-input__inner { background-color: #F5F7FA; border-color: #E4E7ED; color: #C0C4CC; cursor: not-allowed; } .bpmn-input .bpmn-input__inner { -webkit-appearance: none; /* padding-left: 50px; */ /* padding-right: 50px; */ text-align: center; font-size: 12px; width: 130px; } .bpmn-input-number__decrease.is-disabled, .bpmn-input-number__increase.is-disabled { color: #C0C4CC; cursor: not-allowed; } .bpmn-select { display: block; position: relative; height: 28px; border-radius: 4px; border: 1px solid #DCDFE6; cursor: pointer; color: #606266; padding: 0 15px; font-size: 12px; } .bpmn-select>.bpmn-input { display: block; } .bpmn_tab--eventMenu, .bpmn_tab--mainMenu, .bpmn_tab--copyMenu { list-style-type: none; overflow: hidden; padding: 0; margin: 0; padding-bottom: 6px; border-bottom: solid 1px #dddddd; } .bpmn_tab--eventMenu li, .bpmn_tab--mainMenu li, .bpmn_tab--copyMenu li { float: left; margin-right: 40px; cursor: pointer; position: relative; padding-bottom: 3px; font-size: 14px; font-weight: 500; height: 22px; line-height: 30px; } .bpmn_tab--eventMenu li.actived, .bpmn_tab--mainMenu li.actived, .bpmn_tab--copyMenu li.actived { color: #409EFF; } .bpmn_tab--eventMenu li.actived::after, .bpmn_tab--mainMenu li.actived::after, .bpmn_tab--copyMenu li.actived::after { content: ''; display: block; width: 100%; height: 2px; bottom: -6px; left: 0; background: #00a0e9; position: absolute; } .bpmn_tab--eventCon, .bpmn_tab--mainCon, .bpmn_tab--copyCon { list-style-type: none; padding: 15px 0 0 0; margin: 0; } .bpmn_tab--eventCon li.actived, .bpmn_tab--mainCon li.actived, .bpmn_tab--copyCon li.actived { display: block; } .testswitch { position: relative; float: left; width: 65px; margin: 0; } .testswitch-checkbox { display: none; } .testswitch-label { display: block; overflow: hidden; cursor: pointer; border: 1px solid #DCDFE6; border-radius: 15px; } .testswitch-inner { display: block; width: 200%; margin-left: -100%; transition: margin 0.3s ease-in 0s; } .testswitch-inner::before, .testswitch-inner::after { display: block; float: right; width: 50%; height: 25px; padding: 0; line-height: 27px; font-size: 10px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold; box-sizing: border-box; } .testswitch-inner::after { content: attr(data-on); padding-left: 10px; background-color: rgb(19, 206, 102); color: #FFFFFF; } .testswitch-inner::before { content: attr(data-off); padding-right: 10px; background-color: #999999; color: #FFFFFF; text-align: right; } .testswitch-switch { position: absolute; display: block; width: 21px; height: 21px; margin: 2px; background: #FFFFFF; top: 0; bottom: 0; right: 38px; border: 1px solid #DCDFE6; border-radius: 20px; transition: all 0.3s ease-in 0s; } .testswitch-checkbox:checked + .testswitch-label .testswitch-inner { margin-left: 0; } .testswitch-checkbox:checked + .testswitch-label .testswitch-switch { right: 0px; }