salix/front/core/components/td-editable/style.scss

66 lines
1.3 KiB
SCSS

@import "variables";
vn-td-editable {
cursor: pointer;
outline: none;
position: relative;
overflow: visible;
text {
border: 1px dashed rgba(0, 0, 0, .15);
border-radius: 1em;
padding: 5px 10px;
min-height: 15px;
display: block;
overflow: hidden;
&:hover {
border-color: $color-main;
}
}
text::after {
overflow: hidden;
content: '';
clear: both;
}
&.selected > .text {
visibility: hidden;
}
& > .field {
display: none;
width: 100%;
height: 100%;
position: absolute;
z-index:10;
top: 0;
left: 0;
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;
}
}
vn-td-editable.disabled {
cursor: initial;
}
vn-td-editable.disabled text {
border: none;
}