2022-04-26 20:20:50 +08:00
|
|
|
// scss-lint:disable SelectorDepth
|
|
|
|
// scss-lint:disable NestingDepth
|
|
|
|
|
2022-05-06 17:59:22 +08:00
|
|
|
@import "components/*";
|
|
|
|
|
2022-04-28 17:13:38 +08:00
|
|
|
.step-container {
|
2022-07-11 18:31:54 +08:00
|
|
|
--left-component-padding: 24px;
|
2022-05-25 21:04:14 +08:00
|
|
|
border: $border-transparent;
|
2022-07-05 18:49:12 +08:00
|
|
|
margin: 6px 0 6px -1.5em;
|
2022-06-21 17:32:27 +08:00
|
|
|
padding: 8px 24px 8px 0;
|
2022-04-28 17:13:38 +08:00
|
|
|
|
|
|
|
.step-header {
|
2022-07-11 16:45:25 +08:00
|
|
|
align-items: flex-start;
|
2022-04-28 17:13:38 +08:00
|
|
|
display: flex;
|
2022-07-11 16:44:27 +08:00
|
|
|
margin-bottom: 1.2em;
|
2022-04-28 17:13:38 +08:00
|
|
|
|
2022-07-11 16:45:25 +08:00
|
|
|
.step-element-header {
|
2023-06-15 21:12:51 +08:00
|
|
|
align-items: center;
|
2022-07-11 16:45:25 +08:00
|
|
|
border-radius: 4px;
|
2023-06-15 21:12:51 +08:00
|
|
|
display: flex;
|
2022-07-11 16:45:25 +08:00
|
|
|
flex-basis: 80%;
|
2022-07-14 00:02:35 +08:00
|
|
|
position: relative;
|
2022-04-28 17:13:38 +08:00
|
|
|
|
2022-07-11 16:45:25 +08:00
|
|
|
.step-name-edit-icon {
|
2022-08-10 16:27:15 +08:00
|
|
|
background: linear-gradient(90deg,
|
|
|
|
transparent,
|
|
|
|
$color-concrete 15%,
|
|
|
|
$color-concrete 100%);
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: 0;
|
2022-07-14 00:02:35 +08:00
|
|
|
position: absolute;
|
2022-08-10 16:27:15 +08:00
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: $color-concrete;
|
|
|
|
}
|
2022-07-11 16:45:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover .step-name-edit-icon {
|
2022-08-10 16:27:15 +08:00
|
|
|
opacity: 1;
|
2022-04-28 17:13:38 +08:00
|
|
|
}
|
|
|
|
|
2022-07-11 16:45:25 +08:00
|
|
|
.step-collapse-link {
|
|
|
|
display: inline-block;
|
|
|
|
flex-shrink: 0;
|
|
|
|
line-height: 24px;
|
|
|
|
text-align: center;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
&:not(.collapsed) {
|
|
|
|
@include rotate(90deg);
|
2022-04-28 17:13:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.step-position {
|
|
|
|
@include font-main;
|
2022-06-09 20:40:45 +08:00
|
|
|
flex-shrink: 0;
|
2022-07-05 18:49:12 +08:00
|
|
|
font-weight: bold;
|
2022-04-28 17:13:38 +08:00
|
|
|
line-height: 24px;
|
|
|
|
margin: 0 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.step-name-container {
|
|
|
|
flex-grow: 1;
|
2022-07-11 18:31:54 +08:00
|
|
|
font-size: 16px;
|
2022-07-05 18:49:12 +08:00
|
|
|
font-weight: bold;
|
2022-07-07 20:33:38 +08:00
|
|
|
|
|
|
|
textarea {
|
|
|
|
text-decoration: initial;
|
|
|
|
}
|
2022-07-11 18:31:54 +08:00
|
|
|
}
|
2022-07-11 16:45:25 +08:00
|
|
|
|
2022-07-11 18:31:54 +08:00
|
|
|
.step-state {
|
2023-06-15 21:12:51 +08:00
|
|
|
border: 1px solid $color-alto;
|
2022-07-11 18:31:54 +08:00
|
|
|
border-radius: 50%;
|
|
|
|
cursor: pointer;
|
|
|
|
height: 24px;
|
|
|
|
text-align: center;
|
|
|
|
width: 24px;
|
|
|
|
|
2022-07-20 18:24:43 +08:00
|
|
|
&:hover {
|
|
|
|
border-color: $brand-success;
|
|
|
|
}
|
|
|
|
|
2022-07-11 18:31:54 +08:00
|
|
|
&.completed {
|
|
|
|
background: $brand-success;
|
|
|
|
border: 2px solid $brand-success;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
@include font-awesome;
|
|
|
|
color: $color-white;
|
|
|
|
content: $font-fas-check;
|
2022-07-11 16:45:25 +08:00
|
|
|
}
|
|
|
|
}
|
2022-04-28 17:13:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.step-actions-container {
|
2023-06-15 21:12:51 +08:00
|
|
|
align-items: center;
|
2022-04-28 17:13:38 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
2023-06-15 21:12:51 +08:00
|
|
|
gap: .25rem;
|
2022-07-11 16:45:25 +08:00
|
|
|
flex-basis: 20%;
|
2022-04-29 18:29:42 +08:00
|
|
|
|
2022-07-13 21:15:01 +08:00
|
|
|
.disabled {
|
|
|
|
color: $color-silver-chalice;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2022-05-30 19:45:51 +08:00
|
|
|
.dropdown-menu {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2022-04-29 18:29:42 +08:00
|
|
|
.insert-button {
|
|
|
|
.caret {
|
|
|
|
margin-left: .5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.insert-element-dropdown {
|
|
|
|
@include font-button;
|
2022-07-06 20:11:48 +08:00
|
|
|
|
|
|
|
min-width: 230px;
|
2022-04-29 18:29:42 +08:00
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
li {
|
|
|
|
padding: .5em 1em;
|
|
|
|
|
|
|
|
&.action {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: $color-concrete;
|
|
|
|
}
|
2022-07-06 20:11:48 +08:00
|
|
|
|
|
|
|
.fas {
|
|
|
|
margin-right: .5em;
|
|
|
|
}
|
2022-04-29 18:29:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.title {
|
|
|
|
@include font-small;
|
|
|
|
color: $color-alto;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-28 17:13:38 +08:00
|
|
|
}
|
|
|
|
}
|
2022-05-25 21:04:14 +08:00
|
|
|
|
2022-06-21 17:32:27 +08:00
|
|
|
.step-elements {
|
2022-07-11 18:31:54 +08:00
|
|
|
padding-left: calc(var(--left-component-padding) * 2);
|
2022-07-20 16:14:23 +08:00
|
|
|
|
2023-02-03 15:12:33 +08:00
|
|
|
.step-timestamp {
|
|
|
|
position: relative;
|
2023-02-07 19:53:58 +08:00
|
|
|
margin-left: 30px;
|
2023-02-03 17:38:03 +08:00
|
|
|
bottom: 17px;
|
2023-02-03 15:12:33 +08:00
|
|
|
width: 356px;
|
|
|
|
height: 15px;
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 10px;
|
|
|
|
line-height: 14px;
|
|
|
|
flex: none;
|
|
|
|
order: 0;
|
|
|
|
flex-grow: 0;
|
|
|
|
}
|
|
|
|
|
2022-07-20 16:14:23 +08:00
|
|
|
.step-element-name {
|
2022-08-10 20:43:23 +08:00
|
|
|
.sci-inline-edit__view,
|
|
|
|
textarea {
|
|
|
|
padding-bottom: .1em;
|
|
|
|
padding-top: .5em;
|
2022-07-20 16:14:23 +08:00
|
|
|
}
|
|
|
|
}
|
2022-07-13 21:15:01 +08:00
|
|
|
}
|
2022-07-11 18:31:54 +08:00
|
|
|
|
2022-07-13 21:15:01 +08:00
|
|
|
.step-element-grip-placeholder {
|
|
|
|
height: 24px;
|
|
|
|
width: 28px;
|
2022-06-21 17:32:27 +08:00
|
|
|
}
|
|
|
|
|
2022-05-25 21:04:14 +08:00
|
|
|
.comments-counter {
|
|
|
|
@include font-small;
|
|
|
|
align-items: center;
|
|
|
|
background-color: $color-concrete;
|
|
|
|
border: 2px solid $color-white;
|
|
|
|
border-radius: 8px;
|
|
|
|
display: flex;
|
|
|
|
height: 16px;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 2px;
|
|
|
|
min-width: 16px;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
|
|
|
|
&.unseen {
|
|
|
|
background-color: $brand-complementary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.showing-comments {
|
|
|
|
border: 1px dotted $brand-primary;
|
|
|
|
}
|
2022-05-24 21:54:22 +08:00
|
|
|
|
|
|
|
.drop-message {
|
|
|
|
@include font-h3;
|
|
|
|
align-items: center;
|
|
|
|
color: $brand-primary;
|
|
|
|
display: none;
|
|
|
|
height: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.draging-file {
|
|
|
|
background-color: $brand-focus-light;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.drop-message {
|
|
|
|
display: flex;
|
2022-05-26 20:48:57 +08:00
|
|
|
flex-direction: column;
|
2022-07-15 16:13:55 +08:00
|
|
|
|
|
|
|
.storage-usage {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2022-05-24 21:54:22 +08:00
|
|
|
}
|
|
|
|
|
2022-05-26 20:48:57 +08:00
|
|
|
> *:not(.drop-message) {
|
2022-05-24 21:54:22 +08:00
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
2022-05-26 20:48:57 +08:00
|
|
|
|
|
|
|
.storage-usage {
|
|
|
|
@include font-small;
|
2022-07-28 15:56:09 +08:00
|
|
|
align-self: center;
|
2022-05-26 20:48:57 +08:00
|
|
|
color: $color-black;
|
2022-07-28 15:56:09 +08:00
|
|
|
display: flex;
|
|
|
|
margin-top: 1em;
|
|
|
|
width: 400px;
|
2022-05-26 20:48:57 +08:00
|
|
|
|
|
|
|
.progress-container {
|
|
|
|
background-color: $color-white;
|
|
|
|
border-radius: 2px;
|
2022-07-28 15:56:09 +08:00
|
|
|
flex-grow: 1;
|
2022-05-26 20:48:57 +08:00
|
|
|
height: 4px;
|
2022-07-28 15:56:09 +08:00
|
|
|
margin: 1em 1em 1em 0;
|
2022-05-26 20:48:57 +08:00
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.progress-bar {
|
|
|
|
background-color: $brand-primary;
|
|
|
|
height: 100%;
|
|
|
|
position: relative;
|
|
|
|
transition: 1s $timing-function-sharp;
|
|
|
|
}
|
|
|
|
}
|
2022-07-28 15:56:09 +08:00
|
|
|
|
|
|
|
.progress-message {
|
|
|
|
line-height: 2em;
|
|
|
|
}
|
2022-05-26 20:48:57 +08:00
|
|
|
}
|
2022-04-26 20:20:50 +08:00
|
|
|
}
|
2022-05-05 18:56:31 +08:00
|
|
|
|
|
|
|
.step-element-header {
|
2022-07-14 00:02:35 +08:00
|
|
|
align-items: flex-start;
|
2022-07-20 16:14:23 +08:00
|
|
|
border-radius: 4px;
|
2022-05-05 18:56:31 +08:00
|
|
|
display: flex;
|
2022-05-11 21:51:26 +08:00
|
|
|
min-height: 40px;
|
2022-07-21 22:36:14 +08:00
|
|
|
overflow: hidden;
|
2022-05-11 21:51:26 +08:00
|
|
|
position: relative;
|
2022-05-05 18:56:31 +08:00
|
|
|
|
|
|
|
&.editing-name {
|
|
|
|
.step-element-controls {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-11 16:45:25 +08:00
|
|
|
.step-controls {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-07-18 22:56:06 +08:00
|
|
|
min-height: 35px;
|
2022-07-11 16:45:25 +08:00
|
|
|
}
|
|
|
|
|
2022-05-05 18:56:31 +08:00
|
|
|
.sci-inline-edit {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.step-element-name {
|
|
|
|
font-weight: bold;
|
|
|
|
width: 100%;
|
2022-05-30 19:45:51 +08:00
|
|
|
|
2022-07-13 21:15:01 +08:00
|
|
|
|
2022-05-30 19:45:51 +08:00
|
|
|
.step-element-number {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
2022-05-05 18:56:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.step-element-controls {
|
2022-05-24 21:54:22 +08:00
|
|
|
background: linear-gradient(
|
|
|
|
90deg,
|
|
|
|
transparent,
|
|
|
|
$color-concrete 15%,
|
|
|
|
$color-concrete 100%
|
|
|
|
);
|
2022-05-05 18:56:31 +08:00
|
|
|
display: flex;
|
|
|
|
margin-left: auto;
|
2022-05-11 21:51:26 +08:00
|
|
|
position: absolute;
|
2022-06-09 20:40:45 +08:00
|
|
|
right: 0;
|
2022-07-14 03:02:21 +08:00
|
|
|
top: 0;
|
2022-05-05 18:56:31 +08:00
|
|
|
|
|
|
|
.fas {
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.step-element-controls,
|
|
|
|
.step-element-grip {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2022-08-02 17:00:13 +08:00
|
|
|
&:hover:not(.locked):not(.no-hover) {
|
2022-05-05 18:56:31 +08:00
|
|
|
background: $color-concrete;
|
|
|
|
|
|
|
|
.step-element-grip,
|
|
|
|
.step-element-controls {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-05-30 19:45:51 +08:00
|
|
|
|
2022-07-20 16:14:23 +08:00
|
|
|
.step-element-grip {
|
|
|
|
color: $color-silver-chalice;
|
|
|
|
cursor: pointer;
|
|
|
|
margin: auto;
|
|
|
|
padding: .5em;
|
|
|
|
|
|
|
|
&.step-element-grip--draggable {
|
|
|
|
cursor: grab;
|
|
|
|
}
|
2022-07-21 15:57:14 +08:00
|
|
|
|
|
|
|
&.step-element-grip--disabled {
|
|
|
|
pointer-events: none;
|
|
|
|
.fas { opacity: 0; }
|
|
|
|
}
|
2022-07-20 16:14:23 +08:00
|
|
|
}
|
|
|
|
|
2022-05-30 19:45:51 +08:00
|
|
|
.sci-reorderable-items {
|
|
|
|
.modal-body {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.step-element-header {
|
2022-07-19 16:10:07 +08:00
|
|
|
align-items: center;
|
2022-05-30 19:45:51 +08:00
|
|
|
border-bottom: 1px solid $color-concrete;
|
|
|
|
|
|
|
|
&:hover:not(.locked) {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.step-element-name {
|
|
|
|
font-weight: normal;
|
2022-07-13 21:15:01 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.step-element-name-placeholder {
|
|
|
|
color: $color-silver-chalice;
|
2022-05-30 19:45:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.fas {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-07-21 21:49:03 +08:00
|
|
|
|
|
|
|
.step-element--locked {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|