scinote-web/app/assets/stylesheets/shared/inline_edit.scss
ivanscinote 5519cfe75f
Fix label templates, inline edit, checklist and step [SCI-8792] (#5766)
* Fix label templates, inline edit, checklist and step [SCI-8792]

* Add mouse selection to protocol name on task and protocol desc.

* Fix css hound suggestions
2023-07-14 12:31:15 +02:00

95 lines
1.8 KiB
SCSS

// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
.sci-inline-edit {
align-items: flex-start;
display: flex;
transition: .4s $timing-function-sharp border;
&.editing .sci-inline-edit__content {
.sci-inline-edit__content {
padding-top: 0;
}
}
.sci-inline-edit__content {
display: flex;
flex-direction: column;
margin-left: -.25em;
margin-right: .5rem;
min-height: 30px;
padding-left: .25em;
position: relative;
width: 100%;
textarea,
.sci-inline-edit__view {
line-height: 26px;
min-height: 30px;
padding: .1em .2em;
}
.sci-inline-edit__view {
border: 1px solid transparent;
cursor: pointer;
white-space: pre-wrap;
width: 100%;
&.blank {
color: $color-silver-chalice;
}
&.hover-border:hover {
border: 1px solid $color-silver;
border-radius: 3px;
}
}
textarea {
background-color: $color-white;
border: 1px solid $brand-focus;
border-radius: 4px;
outline: none;
overflow: hidden;
width: 100%;
&:focus {
outline: none;
}
}
.sci-inline-edit__error {
bottom: -16px;
color: $brand-danger;
font-size: 12px;
font-weight: normal;
line-height: 12px;
position: absolute;
}
}
&.editing {
margin-top: 0;
.sci-inline-edit__content {
&.error {
border-color: $brand-danger;
margin-bottom: 16px;
textarea {
border-color: $brand-danger;
}
}
}
.sci-inline-edit__control {
margin: 0 .25em;
max-height: 30px;
max-width: 30px;
&.btn-disabled {
background: $color-silver-chalice;
color: $color-concrete;
}
}
}
}