UNPKG

vue-element-extends

Version:
128 lines (127 loc) 4.18 kB
.elx-editable .editable-required-icon:before { content: "*"; color: #f56c6c; } .elx-editable.el-table--mini .elx-editable-column { height: 36px; } .elx-editable.el-table--small .elx-editable-column { height: 40px; } .elx-editable.el-table--medium .elx-editable-column { height: 44px; } .elx-editable .elx-editable-column, .elx-editable.el-table--large .elx-editable-column { height: 48px; padding: 0; } .elx-editable .elx-editable-column.elx_dirty { position: relative; } .elx-editable .elx-editable-column.elx_dirty:before { content: ''; top: -5px; left: -5px; position: absolute; border: 5px solid; border-color: transparent #f56c6c transparent transparent; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); } .elx-editable .elx-editable-column .cell > .edit-input, .elx-editable .elx-editable-column .cell > .el-cascader, .elx-editable .elx-editable-column .cell > .el-autocomplete, .elx-editable .elx-editable-column .cell > .el-input-number, .elx-editable .elx-editable-column .cell > .el-date-editor, .elx-editable .elx-editable-column .cell > .el-select { width: 100%; } .elx-editable .elx-editable-row.elx_disabled, .elx-editable .elx-editable-column.elx_edit.elx_disabled { cursor: not-allowed; } .elx-editable .elx-editable-column.elx_edit.elx_active .cell { line-height: inherit; overflow: inherit; position: relative; } .elx-editable.editable_click .elx-editable-column.elx_edit, .elx-editable.editable_dblclick .elx-editable-column.elx_edit { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .elx-editable .elx-editable-column.valid-error .el-input__inner, .elx-editable .elx-editable-column.valid-error .el-input__inner:focus, .elx-editable .elx-editable-column.valid-error .el-textarea__inner, .elx-editable .elx-editable-column.valid-error .el-textarea__inner:focus { border-color: #f56c6c; } /* default tip */ .elx-editable .elx-editable-column .editable-valid_error { display: none; text-align: left; } .elx-editable .elx-editable-column.valid-error .el-input__inner, .elx-editable .elx-editable-column.valid-error .el-input__inner:focus, .elx-editable .elx-editable-column.valid-error .el-textarea__inner, .elx-editable .elx-editable-column.valid-error .el-textarea__inner:focus { border-color: #f56c6c; } .elx-editable .editable-row:last-child .elx-editable-column.valid-error .editable-valid_error { top: auto; bottom: -moz-calc(100% + 10px); bottom: -webkit-calc(100% + 10px); bottom: calc(100% + 10px); } .elx-editable .editable-row:last-child .elx-editable-column.valid-error .editable-valid_error:before { top: auto; bottom: -12px; border-color: #f56c6c transparent transparent transparent; } .elx-editable .elx-editable-column.valid-error .editable-valid_error, .elx-editable .editable-row:first-child .elx-editable-column.valid-error .editable-valid_error { display: block; position: absolute; top: -moz-calc(100% + 10px); top: -webkit-calc(100% + 10px); top: calc(100% + 10px); left: 10px; bottom: auto; z-index: 2; min-width: 300px; } .elx-editable .elx-editable-column.valid-error .editable-valid_error>.valid-message, .elx-editable .editable-row:first-child .elx-editable-column.valid-error .editable-valid_error>.valid-message { display: inline-block; padding: 8px 10px; line-height: 1.5; color: #fff; background-color: #f56c6c; border-radius: 4px; font-size: 12px; word-wrap: break-word; } .elx-editable .elx-editable-column .editable-valid_error:before, .elx-editable .editable-row:first-child .elx-editable-column.valid-error .editable-valid_error:before { content: ""; position: absolute; top: -12px; left: 20px; bottom: auto; border: 6px solid; border-color: transparent transparent #f56c6c transparent; } .elx-editable .elx-editable-column .editable-valid_wrapper { display: block; width: 100%; height: 100%; top: 0; left: 0; position: absolute; z-index: -1; }