2019-03-06 16:17:34 +08:00
|
|
|
@import "constants";
|
|
|
|
@import "mixins";
|
|
|
|
|
|
|
|
|
|
|
|
.inline-editing-container {
|
2019-04-30 16:23:44 +08:00
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
2019-03-06 16:17:34 +08:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.button-container {
|
|
|
|
height: 44px;
|
|
|
|
line-height: 44px;
|
|
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 72px;
|
|
|
|
|
|
|
|
span {
|
|
|
|
color: $color-silver;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
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;
|
|
|
|
font-size: $font-size-small;
|
|
|
|
left: 5px;
|
|
|
|
line-height: 12px;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-error="true"] {
|
|
|
|
|
|
|
|
.error-block {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
padding-bottom: 16px;
|
|
|
|
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;
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
border: 1px solid $color-gainsboro;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-15 20:59:15 +08:00
|
|
|
.view-mode {
|
|
|
|
border: 1px solid transparent;
|
|
|
|
cursor: pointer;
|
2019-05-20 17:20:08 +08:00
|
|
|
flex-wrap: nowrap;
|
2019-05-15 20:59:15 +08:00
|
|
|
line-height: 26px;
|
2019-05-20 17:20:08 +08:00
|
|
|
overflow: hidden;
|
2019-05-15 20:59:15 +08:00
|
|
|
padding: 8px 5px;
|
|
|
|
padding-right: 36px;
|
2019-05-20 17:20:08 +08:00
|
|
|
white-space: nowrap;
|
2019-05-15 20:59:15 +08:00
|
|
|
width: calc(100% - 36px);
|
|
|
|
}
|
|
|
|
|
2019-03-06 16:17:34 +08:00
|
|
|
input {
|
|
|
|
border: 1px solid $color-silver;
|
|
|
|
border-radius: $border-radius-small;
|
|
|
|
cursor: pointer;
|
|
|
|
line-height: 20px;
|
|
|
|
padding: 8px 5px;
|
|
|
|
padding-right: 36px;
|
|
|
|
width: calc(100% - 36px);
|
|
|
|
|
|
|
|
&: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;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-name.editable {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
.inline-editing-container {
|
|
|
|
|
|
|
|
input {
|
|
|
|
line-height: 26px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|