// Updated SCSS for captions modal and managee captions #captions-manager-modal { z-index: 11 !important; .captions-manager-modal { &__container { width: 350px; max-width: 90%; height: auto !important; background-color: $white; padding: 40px; margin: auto; opacity: 0; position: fixed; top: 20%; left: 0; right: 0; border: 1px solid $grey; /* Hide scrollbar for IE, Edge and Firefox */ -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ @media (max-width: 768px) { width: 350px; max-width: 500px; padding: 20px; top: 20%; max-height: 90vh; left: 0; right: 0; margin: auto; } @media (max-width: 480px) { width: 80%; } &::-webkit-scrollbar { display: none; } @media (max-height: 768px){ height: 0; min-height: auto; } > div{ height: min-content; } h3 { margin-top: 0; margin-bottom: 24px; color: $black; font-size: $font-size-xl; font-weight: 400; margin-bottom: 24px; text-align: center; } .selection { .custom-select { font-size: $font-size-m; padding: 12px; border-color: #E2E4DD; &.option-active { border-color: $grey; } &.disabled { opacity: 0.2; pointer-events: none; } } .custom-select-item { font-size: $font-size-m; color: $black; } } .caption-file-name { color: #424242; } .caption-file-size { color: #AEAEAE !important; } } &__content-inner { padding: 0; margin: 20px 0; border: 1px solid $grey200; &__inner { padding: 1em; } } &__content { padding: 0; margin-top: 24px; form { margin-bottom: 0; } .captions-option { margin-bottom: 20px; .radio-option { display: flex; align-items: center; margin-bottom: 8px; cursor: pointer; input[type="radio"] { margin-right: 10px; } .option-title { font-weight: 600; font-size: $font-size-m; } } .option-description { margin-left: 25px; color: $grey; font-size: $font-size-s; margin-bottom: 15px; } .file-upload-container { margin-left: 25px; margin-top: 15px; } } .caption-divider { border: none; border-top: 1px solid $grey100; margin: 20px 0; } .sc-buttons-container { display: flex; gap: 24px; margin-top: 16px; padding-left: 8.5px; padding-right: 8.5px; .btn-tertiary { margin-left: 0; } .btn { padding: 12px 20px; font-size: $font-size-m; border-radius: 25px; text-align: center; transition: all 0.2s ease; font-weight: 500; width: 100%; } .btn-secondary { background-color: $white; color: $grey800; border: 1px solid $grey300; &:hover:not(:disabled) { background-color: $grey100; } } .btn-primary { background-color: $blue; color: $white; border: 1px solid $blue; height: 100%; &:hover:not(:disabled) { background-color: $blue; } &:disabled { opacity: 0.4; background-color: $characoal; border: 1px solid $characoal; cursor: not-allowed; } } } } &__select { width: 100% !important; padding: 8px 10px; border: 1px solid $grey200; font-size: $font-size-m; } } .loader-captions-container { position: fixed; top: 200px; right: 0; left: 0; margin: 0 auto; display: flex; align-items: center; justify-content: center; z-index: 11; .loading-container { justify-content: center; div { background: $white; height: 15px; width: 15px; } } } } .captions-manager { &__info { margin-bottom: 0; } &__content { padding: 0; form { margin-bottom: 0; display: flex; flex-direction: column; } .selection { margin-top: 16px; } .caption-select { width: 100%; &:disabled { background-color: $grey100; cursor: not-allowed; } } .language-info { margin-top: 8px; p { display: flex; align-items: center; font-size: $font-size-s; color: $grey; .info-icon { width: 16px; height: 16px; margin-right: 8px; } } } } } // Custom caption upload area .caption-custom-options { margin-top: 12px; .closed-captions-option { margin-bottom: 16px; .checkbox-option { display: flex; align-items: center; input[type="checkbox"] { margin-right: 10px; &:checked { background: $blue; &::before { filter: brightness(100); } } } span { font-size: $font-size-s; margin-bottom: 3px; } } } .caption-droparea-container { margin-top: 10px; } } .tab-content { .caption-droparea { height: 171px; .icon-column { margin-bottom: 27px; img { width: 76px; height: 76px; } } .not-dragging-text { font-size: $font-size-m; } } } // Caption droparea styling .caption-droparea { display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 20px; border: 1px dashed $lightBlue; height: 119px; text-align: center; .icon-column { margin-bottom: 8px; img { width: 40px; height: 40px; } } .droparea-content { text-align: center; } &.is-dragging { background-color: $blue-op; .dragging-text { display: block; color: $blue !important; font-weight: 500; margin: 0; padding: 0; } } .not-dragging-text { font-size: $font-size-s; line-height: 1.5; margin: 0; color: $characoal !important; } .dragging-text { display: none; font-size: $font-size-s; line-height: 1.5; } .browse-link { color: #0032DB; text-decoration: underline; cursor: pointer; text-underline-offset: 5px; &:hover { color: $blue-hovered; } } } // Caption file list styling .caption-file-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border: 0.5px solid $grey200; background-color: $white; } .caption-file-info { display: flex; align-items: center; gap: 12px; } .caption-file-details { display: flex; flex-direction: column; gap: 4px; } .caption-file-name { font-weight: 600; font-size: 13px; color: $characoal; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .caption-file-size { font-size: 13px; color: $grey; } .caption-file-delete { cursor: pointer; img { width: 20px; height: 20px; } &:hover img { opacity: 0.7; } } .caption-file-actions { cursor: pointer; img { width: 20px; height: 20px; } &:hover img { opacity: 0.7; } } // Error notice styling .modal-error-notice { margin: 15px 0; padding: 10px 15px; background-color: rgba($red, 0.1); border-left: 4px solid $red; border-radius: 4px; &__msg { display: flex; justify-content: space-between; align-items: center; color: $red; font-size: $font-size-s; i.delete-modal-alert { cursor: pointer; opacity: 0.7; &:hover { opacity: 1; } } } } // Add styles for the toggle container .toggle-container__row { display: flex; align-items: center; margin-bottom: 10px; input[type="checkbox"] { margin-right: 10px; } span { font-weight: 600; font-size: $font-size-m; } } // Add styles for the tabs navigation .captions-tabs { display: flex; border-bottom: 1px solid $grey200; overflow: hidden; .tab-item { flex: 1; text-align: center; padding: 10px 0; cursor: pointer; font-size: 13px; color: $black; position: relative; &.active { font-weight: 400; background-color: $greyAPI; color: $characoal; &:after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: $blue; } } &:hover:not(.active) { background-color: $grey100; } } } .tab-content { display: none; &.active { display: block; } } // Loading indicator styles .loading-indicator { display: none; text-align: center; margin: 20px 0; .spinner { display: inline-block; width: 40px; height: 40px; border: 3px solid rgba($blue, 0.3); border-radius: 50%; border-top-color: $blue; animation: spin 1s ease-in-out infinite; } .loading-text { margin-top: 10px; color: $grey800; font-size: $font-size-m; } } @keyframes spin { to { transform: rotate(360deg); } } // Button loading state .btn-loading { position: relative; color: transparent !important; pointer-events: none; &:after { content: ''; position: absolute; top: calc(50% - 10px); left: calc(50% - 10px); width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 50%; border-top-color: white; animation: spin 0.8s linear infinite; } } .disabled-language-message { color: $grey !important; margin-top: 8px !important; margin-bottom: 16px !important; display: flex !important; align-items: center !important; gap: 8px !important; line-height: 16px !important; } .copy-action-buttons { position: absolute; left: 0; z-index: 999; display: none; background: $white; box-shadow: 2px 4px 9px rgba(0, 0, 0, 0.06); border: 0.5px solid $grey; margin-top: 10px; &.active { display: block; } button { position: relative; z-index: 10; width: 150px; color: $characoal; font-size: $font-size-xs; cursor: inherit; padding: 0.5rem; display: inline-flex; align-items: center; gap: 0.5rem; &.delete-asset { color: $red; } &:hover { background: $grey100; cursor: pointer; } } } .copy-transcript.disabled { pointer-events: none; background: #8080802e; color: #7f8081; &:hover { cursor: none; } }