2019-03-06 16:17:34 +08:00
|
|
|
@import "constants";
|
|
|
|
@import "mixins";
|
|
|
|
|
|
|
|
.inline-editing-container {
|
2019-11-12 18:26:18 +08:00
|
|
|
line-height: 32px;
|
2019-03-06 16:17:34 +08:00
|
|
|
position: relative;
|
2019-11-12 18:26:18 +08:00
|
|
|
width: 100%;
|
2019-03-06 16:17:34 +08:00
|
|
|
|
|
|
|
.button-container {
|
2020-07-08 19:02:47 +08:00
|
|
|
font-size: 16px;
|
2019-09-02 16:30:29 +08:00
|
|
|
height: 32px;
|
|
|
|
line-height: 32px;
|
2019-03-06 16:17:34 +08:00
|
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 72px;
|
|
|
|
|
|
|
|
span {
|
|
|
|
color: $color-silver;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
2019-11-12 18:26:18 +08:00
|
|
|
line-height: 32px;
|
2019-03-06 16:17:34 +08:00
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
width: 36px;
|
|
|
|
|
|
|
|
&:nth-child(1) {left: 0;}
|
|
|
|
|
|
|
|
&:nth-child(2) {right: 0;}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.error-block {
|
|
|
|
bottom: 3px;
|
|
|
|
color: $brand-danger;
|
|
|
|
display: none;
|
2019-09-02 16:30:29 +08:00
|
|
|
font-size: 11px;
|
|
|
|
line-height: 11px;
|
2019-03-06 16:17:34 +08:00
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-11-12 18:26:18 +08:00
|
|
|
&.error {
|
2019-03-06 16:17:34 +08:00
|
|
|
|
|
|
|
.error-block {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2019-11-12 18:26:18 +08:00
|
|
|
.input-field {
|
2019-09-02 16:30:29 +08:00
|
|
|
font-size: 16px;
|
|
|
|
line-height: 20px;
|
|
|
|
padding-bottom: 10px;
|
2019-03-06 16:17:34 +08:00
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-15 20:59:15 +08:00
|
|
|
&:hover input,
|
|
|
|
&:hover .view-mode {
|
2019-05-11 22:04:28 +08:00
|
|
|
border: 1px solid $color-silver;
|
2019-09-02 16:30:29 +08:00
|
|
|
border-radius: 3px;
|
2019-05-11 22:04:28 +08:00
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
border: 1px solid $color-gainsboro;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-15 20:59:15 +08:00
|
|
|
.view-mode {
|
|
|
|
border: 1px solid transparent;
|
|
|
|
cursor: pointer;
|
|
|
|
line-height: 26px;
|
2019-09-02 16:30:29 +08:00
|
|
|
margin-left: -5px;
|
2019-11-15 23:23:48 +08:00
|
|
|
min-height: 30px;
|
2019-05-20 17:20:08 +08:00
|
|
|
overflow: hidden;
|
2019-09-02 16:30:29 +08:00
|
|
|
padding: 2px 4px;
|
2019-05-15 20:59:15 +08:00
|
|
|
padding-right: 36px;
|
2019-08-21 16:39:37 +08:00
|
|
|
text-overflow: ellipsis;
|
2019-05-20 17:20:08 +08:00
|
|
|
white-space: nowrap;
|
2019-09-02 16:30:29 +08:00
|
|
|
width: calc(100% - 32px);
|
2019-11-15 23:23:48 +08:00
|
|
|
|
2019-11-15 23:28:08 +08:00
|
|
|
&:empty:not(:focus):before {
|
2019-11-15 23:23:48 +08:00
|
|
|
color: $color-silver-chalice;
|
2019-11-15 23:28:08 +08:00
|
|
|
content: attr(data-placeholder);
|
2019-11-15 23:23:48 +08:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
2019-05-15 20:59:15 +08:00
|
|
|
}
|
|
|
|
|
2019-03-06 16:17:34 +08:00
|
|
|
input {
|
|
|
|
border: 1px solid $color-silver;
|
|
|
|
border-radius: $border-radius-small;
|
|
|
|
cursor: pointer;
|
2019-11-12 18:26:18 +08:00
|
|
|
display: block;
|
2019-09-02 16:30:29 +08:00
|
|
|
line-height: 26px;
|
|
|
|
margin-left: -5px;
|
|
|
|
padding: 2px 4px;
|
2019-03-06 16:17:34 +08:00
|
|
|
padding-right: 36px;
|
2019-09-02 16:30:29 +08:00
|
|
|
width: calc(100% - 32px);
|
2019-03-06 16:17:34 +08:00
|
|
|
|
2019-11-15 23:23:48 +08:00
|
|
|
&::placeholder {
|
|
|
|
color: $color-silver-chalice;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2019-03-06 16:17:34 +08:00
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
background: transparent;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
cursor: pointer;
|
2019-04-26 20:15:46 +08:00
|
|
|
pointer-events: none;
|
2019-03-06 16:17:34 +08:00
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
+ .button-container {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|