mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-11 10:06:23 +08:00
66 lines
980 B
SCSS
66 lines
980 B
SCSS
.sci-inline-edit {
|
|
display: flex;
|
|
|
|
&.editing {
|
|
margin-top: -0.5em;
|
|
}
|
|
}
|
|
|
|
.sci-inline-edit__content {
|
|
width: 100%;
|
|
|
|
span {
|
|
cursor: pointer;
|
|
|
|
&.blank {
|
|
color: $color-silver-chalice;
|
|
}
|
|
}
|
|
|
|
textarea {
|
|
border: 1px solid;
|
|
border-color: $brand-focus;
|
|
border-radius: 4px;
|
|
height: 36px;
|
|
min-height: 36px;
|
|
outline: none;
|
|
overflow: hidden;
|
|
padding: 0.5em 1em;
|
|
width: 100%;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&.error {
|
|
border-color: $brand-danger;
|
|
}
|
|
}
|
|
|
|
.sci-inline-edit__error {
|
|
color: $brand-danger;
|
|
font-size: .8em;
|
|
}
|
|
}
|
|
|
|
.sci-inline-edit__controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-left: 8px;
|
|
width: 76px;
|
|
}
|
|
|
|
.sci-inline-edit__control {
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
height: 36px;
|
|
line-height: 36px;
|
|
text-align: center;
|
|
width: 36px;
|
|
}
|
|
|
|
.sci-inline-edit__save {
|
|
background: $brand-primary;
|
|
color: $color-white;
|
|
}
|