2022-06-09 20:40:45 +08:00
|
|
|
// scss-lint:disable SelectorDepth
|
|
|
|
// scss-lint:disable NestingDepth
|
2022-04-26 20:13:17 +08:00
|
|
|
.sci-inline-edit {
|
2022-06-09 20:40:45 +08:00
|
|
|
column-gap: .25em;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: auto repeat(2, max-content);
|
|
|
|
transition: .4s $timing-function-sharp;
|
2022-05-11 21:51:26 +08:00
|
|
|
|
2022-06-09 20:40:45 +08:00
|
|
|
.sci-inline-edit__content {
|
|
|
|
border: $border-transparent;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
line-height: 1em;
|
|
|
|
margin-left: -.25em;
|
|
|
|
min-height: 36px;
|
|
|
|
padding-left: .25em;
|
|
|
|
width: 100%;
|
2022-04-26 20:13:17 +08:00
|
|
|
|
2022-06-09 20:40:45 +08:00
|
|
|
.sci-inline-edit__view {
|
|
|
|
cursor: pointer;
|
|
|
|
width: 100%;
|
2022-04-26 20:13:17 +08:00
|
|
|
|
2022-06-09 20:40:45 +08:00
|
|
|
&.blank {
|
|
|
|
color: $color-silver-chalice;
|
|
|
|
}
|
2022-04-26 20:13:17 +08:00
|
|
|
}
|
|
|
|
|
2022-06-09 20:40:45 +08:00
|
|
|
textarea {
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
line-height: 1em;
|
|
|
|
min-height: 1em;
|
2022-04-26 20:13:17 +08:00
|
|
|
outline: none;
|
2022-06-09 20:40:45 +08:00
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
padding-top: 2px;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.error {
|
|
|
|
border-color: $brand-danger;
|
|
|
|
}
|
2022-04-26 20:13:17 +08:00
|
|
|
}
|
|
|
|
|
2022-06-09 20:40:45 +08:00
|
|
|
.sci-inline-edit__error {
|
|
|
|
color: $brand-danger;
|
|
|
|
font-size: .8em;
|
2022-04-26 20:13:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-09 20:40:45 +08:00
|
|
|
&.editing {
|
2022-04-26 20:13:17 +08:00
|
|
|
|
2022-06-09 20:40:45 +08:00
|
|
|
.sci-inline-edit__content {
|
|
|
|
border-color: $brand-focus;
|
|
|
|
}
|
|
|
|
}
|
2022-04-26 20:13:17 +08:00
|
|
|
}
|