Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/pages/operator/css/Alert.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,18 @@
border-color: #d3d6d8;
}

.movement-recorder {
color: #41464b;
background-color: #e2e3e5;
border-color: #d3d6d8;
}

.secondary {
color: #055160;
background-color: #cff4fc;
border-color: #b6effb;
}

/* The close button */
.closebtn {
margin-left: 15px;
Expand All @@ -66,6 +73,7 @@
.closebtn:hover {
color: black;
}

.hide {
display: none;
}
}
2 changes: 1 addition & 1 deletion src/pages/operator/css/DropZone.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
}

.drop-zone[hidden] {
display: none;
flex: 0;
width: 0;
opacity: 0;
margin: 0;
padding: 0;
border: none;
visibility: hidden;
}

.drop-zone:hover {
Expand Down
3 changes: 0 additions & 3 deletions src/pages/operator/css/LayoutArea.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#layout-area {
/* padding: var(--screen-padding);
flex: 1 1 0; */
padding: var(--screen-padding);
flex-direction: column;
height: auto;
}
Expand Down
327 changes: 320 additions & 7 deletions src/pages/operator/css/MovementRecorder.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#movement-recorder-container {
display: flex;
gap: 15px;
align-items: center;
justify-content: center;
}

/* The below buttons' CSS likely gets overridden by the TextToSpeech CSS
* for the same class names. It is not an issue now because they use the
* same styles, but may be an issue in the future if we change styles for
Expand Down Expand Up @@ -57,3 +50,323 @@
display: flex;
justify-content: center;
}



/**********
* New UX *
**********/

#movement-recorder-container {
position: relative;
align-self: flex-start;
height: 100%;
--footer-height: 60px;
}

#movement-recorder-container button {
display: flex;
align-items: center;
}

.pulse {
animation: pulse-red-bg 2s infinite;
}

@keyframes pulse-red-bg {
0% {
background-color: #fa7878;
}

50% {
background-color: #ff0000;
}

100% {
background-color: #fa7878;
}
}

.recordings-list {
position: relative;
overflow-y: scroll;
overflow-x: hidden;
padding: 8px 0;
height: calc(100% - var(--footer-height));
}

.recordings-list .recording-item {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 18px 10px;
}

.recordings-list .helper-text-empty-state {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 10px;
margin: 0 auto;
max-width: 200px;
height: 100%;
font-size: 16px;
font-weight: 600;
text-align: center;
line-height: 130%;
opacity: 0.5;
}

#movement-recorder-container .footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px;
width: 100%;
height: var(--footer-height);
background: #ffffff;
border-top: 1px solid #000000;
}

#movement-recorder-container .footer button.button-record {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 8px 8px 16px;
font-weight: 600;
}

#movement-recorder-container .footer button.button-record.button-record-record svg {
color: #ff0000;
}

#movement-recorder-container .footer button.button-record.button-record-start:disabled svg {
color: rgba(16, 16, 16, 0.3);
}

#movement-recorder-container .footer button.button-record.button-record-start svg {
color: #ff0000;
}

#movement-recorder-container .footer button.button-record.button-record-stop svg {
color: #ff0000;
}

.naming-modal input,
.footer input {
display: flex;
width: calc(100% - 20px);
padding: 12px 9px;
margin: 0 10px 0 0;
border-radius: 0.4em;
box-shadow: none;
border: none;
background: #f1f1f1;
}

.footer .button-scroll-wrapper {}

.joints-list {
position: absolute;
top: 0;
left: 0;
padding: 20px;
width: 100%;
height: calc(100% - var(--footer-height));
overflow-y: scroll;
overflow-x: hidden;
background-color: #ffffff;
}

.joints-list ul.checkbox {
margin: 10px 0 0 0;
}

.joints-list ul.checkbox.nested {
padding: 0 0 0 29px;
margin: 0px;
}

.joints-list ul.checkbox label {
top: -6px;
position: relative;
padding: 10px 0;
}

.naming-modal {
position: absolute;
top: 0;
left: 0;
padding: 20px;
width: 100%;
height: 100%;
background-color: #ffffff;
}

.joints-list .heading,
.naming-modal .heading {
font-weight: 600;
font-size: 18px;
}

.joints-list .subheading {
margin: 7px 0 0;
max-width: 227px;
font-size: 14px;
font-weight: 400;
line-height: 133%;
}

.joints-list button.button-select-all {
margin: 15px 0 5px;
width: 100%;
font-weight: 600;
}

.naming-modal button {
display: flex;
align-items: center;
gap: 6px;
padding: 8px;
height: 100%;
font-weight: 600;
}

.recording-name-text-area {
margin: 0 5px 0 0;
padding: 0px 5px;
width: fit-content;
height: 31px;
line-height: 150%;
overflow-wrap: break-word;
word-wrap: break-word;
resize: none;
overflow: hidden;
border: 1px solid transparent;
border-radius: 4px;
background-color: #fafafa;
/* Allow highlighting */
user-select: unset !important;
-webkit-user-select: unset !important;
-moz-user-select: unset !important;
-ms-user-select: unset !important;

}

.recording-name-text-area:disabled {
color: #000000;
user-select: none !important;
-webkit-user-select: none !important;
-moz-user-select: none !important;
-ms-user-select: none !important;
pointer-events: none !important;
-webkit-touch-callout: none !important;
}

.recording-name-text-area:focus {
background-color: var(--btn-turquoise-ultra-light);
border: 1px solid var(--btn-turquoise);
outline: none;
}

.recording-name-text-area::selection {
background-color: var(--btn-turquoise-light);
}


.recording-item-buttons {
--button-width: 41px;
--transition: all 300ms ease-out;
}

.recording-item-buttons button {
display: flex;
justify-content: center;
align-items: center;
padding: 0px;
aspect-ratio: 1 / 1;
width: var(--button-width) !important;
min-width: var(--button-width) !important;
max-width: var(--button-width) !important;
transition: var(--transition);
color: var(--btn-blue);
border-radius: 4px;
}

.recording-item-buttons .button-delete-recording-wrapper {
z-index: 0;
position: relative;
}

.recording-item-buttons button.button-playback,
.recording-item-buttons button.button-edit {
transition: var(--transition);
}

.recording-item-buttons button.button-playback.visible,
.recording-item-buttons button.button-edit.visible {
opacity: 1;
}

.recording-item-buttons button.button-playback.hidden,
.recording-item-buttons button.button-edit.hidden {
opacity: 0;
}

.recording-item-buttons button.button-edit.editing {
color: #ffffff;
background-color: var(--btn-turquoise);
border: 4px solid var(--btn-turquoise);
}

.button-delete-recording-wrapper button.button-cancel-deletion {
z-index: 1;
position: absolute;
top: 0;
left: 0;
box-shadow: none;
}

.recording-item-buttons button.button-cancel-deletion.hidden {
transform: translateX(0%);
opacity: 0;
pointer-events: none;
}

.recording-item-buttons button.button-cancel-deletion.visible {
transform: translateX(calc(-100% - 5px));
opacity: 1;
}

.button-delete-recording-wrapper .helper-text {
z-index: 0;
position: absolute;
top: 0px;
left: 0px;
transition: var(--transition);
color: var(--btn-blue);
font-weight: 600;
transform: translate(-65px, calc(var(--button-width)));
white-space: nowrap;
pointer-events: none;
}

.button-delete-recording-wrapper .helper-text.hidden {
opacity: 0;
}

.button-delete-recording-wrapper .helper-text.visible {
transform: translate(-65px, calc(var(--button-width) + 2px));
opacity: 1;
}

.button-delete-recording-wrapper button.button-delete {
z-index: 2;
position: relative;
}

.recording-item-buttons button.button-delete.pulse .button-delete-icon {
color: #ffffff;
}
Loading
Loading