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: 16px;
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: 9px;
overflow: visible;
& > field {
flex: 1;
background-color: $color-bg-panel;
padding: 8px;
box-shadow: 0 0 6px rgba(0, 0, 0, .2);
border-radius: 1px;
min-width: 96px;
& > * {
width: 100%;
max-width: initial;
}
}
}
&.selected > .field {
display: flex;
}
}
vn-td-editable.disabled {
cursor: initial;
}
vn-td-editable.disabled text {
border: none;
}