2022-08-04 16:51:30 +08:00
|
|
|
// scss-lint:disable SelectorDepth NestingDepth ImportantRule
|
|
|
|
|
|
|
|
.label-templates-show {
|
2022-08-24 23:51:23 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: calc(100vh - var(--navbar-height));
|
2022-09-20 18:59:58 +08:00
|
|
|
padding-left: 1.5em;
|
2022-08-24 23:51:23 +08:00
|
|
|
|
2022-08-04 16:51:30 +08:00
|
|
|
.title-row {
|
2022-09-20 18:59:58 +08:00
|
|
|
@include font-h1;
|
|
|
|
align-items: end;
|
2022-08-24 23:51:23 +08:00
|
|
|
background: $color-white;
|
|
|
|
border-bottom: $border-tertiary;
|
|
|
|
display: flex;
|
|
|
|
margin-left: -2em;
|
2022-09-29 20:03:45 +08:00
|
|
|
padding: .25em 2em;
|
2022-08-24 23:51:23 +08:00
|
|
|
width: calc(100% + 4em);
|
2022-08-04 16:51:30 +08:00
|
|
|
|
|
|
|
.label-template-icon {
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-bottom: auto;
|
|
|
|
margin-right: 5px;
|
|
|
|
margin-top: 13px;
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sci-inline-edit {
|
|
|
|
flex-grow: 1;
|
|
|
|
max-width: calc(100% - 50px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.template-descripiton {
|
|
|
|
@include font-button;
|
2022-09-29 20:03:45 +08:00
|
|
|
margin: .5em 0;
|
2022-08-04 16:51:30 +08:00
|
|
|
|
|
|
|
.title {
|
|
|
|
font-weight: bold;
|
2022-08-24 23:51:23 +08:00
|
|
|
line-height: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.description {
|
2022-08-25 19:25:34 +08:00
|
|
|
margin: .5em 0 1em;
|
2022-08-24 23:51:23 +08:00
|
|
|
padding-left: 16px;
|
2022-08-04 16:51:30 +08:00
|
|
|
}
|
|
|
|
}
|
2022-08-04 19:36:14 +08:00
|
|
|
|
|
|
|
.label-template-container {
|
|
|
|
display: flex;
|
2022-08-24 23:51:23 +08:00
|
|
|
flex-grow: 1;
|
2022-09-20 18:59:58 +08:00
|
|
|
margin-top: 1em;
|
2022-08-04 19:36:14 +08:00
|
|
|
|
|
|
|
.title {
|
|
|
|
font-weight: bold;
|
2022-08-24 23:51:23 +08:00
|
|
|
line-height: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.label-textarea-container {
|
|
|
|
height: calc(100% - 6em);
|
2022-09-19 17:56:43 +08:00
|
|
|
|
|
|
|
.label-textarea {
|
|
|
|
height: 100%;
|
|
|
|
margin-top: .5em;
|
|
|
|
padding: .5em;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.error {
|
|
|
|
.label-textarea {
|
|
|
|
border: 1px solid $brand-danger;
|
|
|
|
height: calc(100% - 2em);
|
|
|
|
}
|
|
|
|
|
|
|
|
.error-message {
|
|
|
|
color: $brand-danger;
|
|
|
|
}
|
|
|
|
}
|
2022-08-04 19:36:14 +08:00
|
|
|
}
|
|
|
|
|
2022-08-16 16:16:40 +08:00
|
|
|
.label-edit-header {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.title {
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-04 19:36:14 +08:00
|
|
|
.label-edit-container {
|
|
|
|
flex-basis: 60%;
|
|
|
|
padding-right: 1em;
|
|
|
|
|
|
|
|
.button-container {
|
|
|
|
display: flex;
|
2022-08-24 23:51:23 +08:00
|
|
|
margin-top: 1em;
|
2022-08-04 19:36:14 +08:00
|
|
|
|
|
|
|
.refresh-preview {
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.save-template {
|
2022-08-24 23:51:23 +08:00
|
|
|
margin-left: .5em;
|
2022-08-04 19:36:14 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.label-preview-container {
|
|
|
|
flex-basis: 40%;
|
|
|
|
padding-left: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.label-view-container {
|
|
|
|
cursor: pointer;
|
2022-08-24 23:51:23 +08:00
|
|
|
height: calc(100% - 3.5em);
|
2022-08-25 19:25:34 +08:00
|
|
|
margin-top: .5em;
|
2022-08-04 19:36:14 +08:00
|
|
|
padding: .5em;
|
|
|
|
position: relative;
|
|
|
|
white-space: pre;
|
|
|
|
|
|
|
|
.fa-pen {
|
|
|
|
display: none;
|
|
|
|
padding: 1em;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
2022-09-29 20:03:45 +08:00
|
|
|
&.read-only {
|
|
|
|
cursor: initial;
|
|
|
|
}
|
|
|
|
|
2022-09-20 18:59:58 +08:00
|
|
|
&:hover:not(.read-only) {
|
2022-08-04 19:36:14 +08:00
|
|
|
background-color: $color-concrete;
|
|
|
|
|
|
|
|
.fa-pen {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-16 16:16:40 +08:00
|
|
|
.inser-field-dropdown {
|
|
|
|
.open-dropdown-button:not(.collapsed) {
|
|
|
|
.fas {
|
|
|
|
@include rotate(-180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
@include font-button;
|
|
|
|
padding: 16px;
|
|
|
|
width: 300px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-container {
|
|
|
|
margin-bottom: .25em;
|
|
|
|
|
|
|
|
.close-dropdown {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fields-container {
|
|
|
|
max-height: 40vh;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.field-element {
|
|
|
|
align-items: center;
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
padding: 10px 10px 10px 24px;
|
|
|
|
|
|
|
|
.fas {
|
|
|
|
@include font-main;
|
|
|
|
display: none;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $color-concrete;
|
|
|
|
|
|
|
|
.fas {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.block-title {
|
|
|
|
@include font-small;
|
|
|
|
align-items: center;
|
|
|
|
color: $color-silver-chalice;
|
|
|
|
display: flex;
|
|
|
|
padding: 7px 8px;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
background-color: $color-silver-chalice;
|
|
|
|
content: "";
|
|
|
|
flex-grow: 1;
|
|
|
|
height: 1px;
|
|
|
|
margin-left: .25em;
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $color-silver-chalice;
|
|
|
|
content: "";
|
|
|
|
flex-basis: 5px;
|
|
|
|
height: 1px;
|
|
|
|
margin-right: .25em;
|
|
|
|
margin-top: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.no-results {
|
|
|
|
color: $color-silver-chalice;
|
|
|
|
}
|
2022-08-17 18:58:27 +08:00
|
|
|
|
|
|
|
.tooltip-body {
|
|
|
|
display: flex;
|
|
|
|
width: 350px;
|
|
|
|
|
|
|
|
.tooltip-inner {
|
|
|
|
max-width: 350px;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
2022-08-16 16:16:40 +08:00
|
|
|
}
|
2022-08-04 16:51:30 +08:00
|
|
|
}
|