86 lines
2.0 KiB
SCSS
86 lines
2.0 KiB
SCSS
.duty-custom-fields {
|
|
margin-bottom: 2rem;
|
|
.custom-fields-header {
|
|
@extend %bold;
|
|
align-content: space-between;
|
|
align-items: center;
|
|
background: $whitish;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: .5rem 1rem;
|
|
.icon-arrow-bottom {
|
|
@extend %large;
|
|
cursor: pointer;
|
|
transform: rotate(-90deg);
|
|
transition: transform .2s linear;
|
|
&.open {
|
|
transform: rotate(0);
|
|
transition: transform .2s linear;
|
|
}
|
|
}
|
|
}
|
|
.custom-fields-body {
|
|
@include slide(1000px, hidden, $min: 0);
|
|
}
|
|
.custom-field-single {
|
|
border-bottom: 1px solid $whitish;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
padding: 1rem;
|
|
&:hover {
|
|
.custom-field-options {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
&.editable {
|
|
.custom-field-options {
|
|
margin-top: .5rem;
|
|
}
|
|
}
|
|
.custom-field-options {
|
|
opacity: 0;
|
|
transition: opacity .2s linear;
|
|
a {
|
|
color: $gray-light;
|
|
}
|
|
a:hover {
|
|
color: $primary;
|
|
}
|
|
}
|
|
}
|
|
.custom-field-data {
|
|
flex: 0;
|
|
flex-basis: 200px;
|
|
.custom-field-name {
|
|
display: block;
|
|
}
|
|
.custom-field-description {
|
|
@extend %small;
|
|
@extend %light;
|
|
color: lighten($gray, 20%);
|
|
display: block;
|
|
line-height: .9rem;
|
|
}
|
|
}
|
|
.custom-field-options {
|
|
margin: 0;
|
|
}
|
|
.custom-field-value {
|
|
@extend %light;
|
|
align-items: flex-start;
|
|
flex: 1;
|
|
padding: 0 1rem 0 2rem;
|
|
&.js-value-view-mode {
|
|
white-space: pre-line;
|
|
}
|
|
}
|
|
form {
|
|
label {
|
|
cursor: pointer;
|
|
}
|
|
input {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|