@import "variables"; vn-td-editable { text { border-bottom: 1px solid rgba(0,0,0,.12); min-height: 15px; cursor: pointer; display: block } text::after { overflow: hidden; content: ''; clear: both; } outline: none; position: relative; &:not([disabled="true"]) { cursor: initial } &[disabled="true"] { cursor: not-allowed; } &.selected > .text { visibility: hidden; } & > .field { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box; align-items: center; padding: .6em; overflow: visible; & > field { flex: 1; background-color: $color-bg-panel; padding: .5em; box-shadow: 0 0 .4em rgba(0, 0, 0, .2); border-radius: .1em; min-width: 6em; & > * { width: 100%; max-width: initial; } } } &.selected > .field { display: flex; } }