123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860 |
- @import '@uppy/core/src/_utils.scss';
- @import '@uppy/core/src/_variables.scss';
- @import '@uppy/informer/src/style.scss';
- @import '@uppy/status-bar/src/style.scss';
- @import '@uppy/provider-views/src/style.scss';
- // Component-specific css imports
- @import './components/FileItem/index.scss';
- // transitions //
- .uppy-transition-slideDownUp-enter {
- opacity: 0.01;
- transform: translate3d(0, -105%, 0);
- transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
- }
- .uppy-transition-slideDownUp-enter.uppy-transition-slideDownUp-enter-active {
- opacity: 1;
- transform: translate3d(0, 0, 0);
- }
- .uppy-transition-slideDownUp-leave {
- opacity: 1;
- transform: translate3d(0, 0, 0);
- transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
- }
- .uppy-transition-slideDownUp-leave.uppy-transition-slideDownUp-leave-active {
- opacity: 0.01;
- transform: translate3d(0, -105%, 0);
- }
- // end transitions //
- .uppy-Dashboard--modal {
- z-index: $zIndex-2;
- }
- .uppy-Dashboard--modal[aria-hidden=true] {
- display: none;
- }
- // Modal open/close animations
- @keyframes uppy-Dashboard-fadeIn {
- from { opacity: 0; }
- to { opacity: 1; }
- }
- @keyframes uppy-Dashboard-fadeOut {
- from { opacity: 1; }
- to { opacity: 0; }
- }
- @keyframes uppy-Dashboard-slideDownAndFadeIn {
- from { transform: translate3d(-50%, -70%, 0); opacity: 0; }
- to { transform: translate3d(-50%, -50%, 0); opacity: 1; }
- }
- @keyframes uppy-Dashboard-slideDownAndFadeIn--small {
- from { transform: translate3d(0, -20%, 0); opacity: 0; }
- to { transform: translate3d(0, 0, 0); opacity: 1; }
- }
- @keyframes uppy-Dashboard-slideUpFadeOut {
- from { transform: translate3d(-50%, -50%, 0); opacity: 1; }
- to { transform: translate3d(-50%, -70%, 0); opacity: 0; }
- }
- @keyframes uppy-Dashboard-slideUpFadeOut--small {
- from { transform: translate3d(0, 0, 0); opacity: 1; }
- to { transform: translate3d(0, -20%, 0); opacity: 0; }
- }
- .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose > .uppy-Dashboard-inner {
- animation: uppy-Dashboard-slideDownAndFadeIn--small 0.3s cubic-bezier(0, 0, .2, 1);
- @media #{$screen-medium} {
- animation: uppy-Dashboard-slideDownAndFadeIn 0.3s cubic-bezier(0, 0, .2, 1);
- }
- }
- .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose > .uppy-Dashboard-overlay {
- animation: uppy-Dashboard-fadeIn 0.3s cubic-bezier(0, 0, .2, 1);
- }
- .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing > .uppy-Dashboard-inner {
- animation: uppy-Dashboard-slideUpFadeOut--small 0.3s cubic-bezier(0, 0, .2, 1);
- @media #{$screen-medium} {
- animation: uppy-Dashboard-slideUpFadeOut 0.3s cubic-bezier(0, 0, .2, 1);
- }
- }
- .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing > .uppy-Dashboard-overlay {
- animation: uppy-Dashboard-fadeOut 0.3s cubic-bezier(0, 0, .2, 1);
- }
- // Added to body to prevent the page from scrolling when Modal is open
- .uppy-Dashboard-isFixed {
- overflow: hidden;
- height: 100vh;
- }
- .uppy-Dashboard--modal .uppy-Dashboard-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba($black, 0.5);
- z-index: $zIndex-2;
- }
- .uppy-Dashboard-inner {
- position: relative;
- background-color: $gray-50;
- max-width: 100%; /* no !important */
- max-height: 100%; /* no !important */
- // min-width: 290px;
- // min-height: 450px is required for everything to fit on mobile
- min-height: 450px;
- outline: none;
- border: 1px solid $gray-200;
- border-radius: 5px;
- .uppy-size--md & {
- min-height: auto;
- }
- @media #{$screen-medium} {
- width: 750px; /* no !important */
- height: 550px; /* no !important */
- }
- .uppy-Dashboard--modal & {
- z-index: $zIndex-3;
- }
- }
- .uppy-Dashboard-innerWrap {
- display: flex;
- flex-direction: column;
- height: 100%;
- overflow: hidden;
- position: relative;
- border-radius: 5px;
- opacity: 0;
- }
- .uppy-Dashboard--isInnerWrapVisible .uppy-Dashboard-innerWrap {
- opacity: 1;
- }
- .uppy-Dashboard--modal .uppy-Dashboard-inner {
- position: fixed;
- top: 35px;
- left: 15px;
- right: 15px;
- bottom: 15px;
- border: none;
- @media #{$screen-medium} {
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- box-shadow: 0 5px 15px 4px rgba($black, 0.15);
- }
- }
- .uppy-Dashboard-close {
- @include clear-focus;
- display: block;
- position: absolute;
- top: -33px;
- right: -2px;
- cursor: pointer;
- color: rgba($white, 0.9);
- font-size: 27px;
- z-index: $zIndex-5;
- &:focus{
- color: lighten($blue, 25%);
- }
- @media #{$screen-medium} {
- font-size: 35px;
- top: -10px;
- right: -35px;
- }
- }
- .uppy-DashboardAddFiles {
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- height: 100%;
- position: relative;
- text-align: center;
- flex: 1;
- .uppy-size--md & {
- margin: 7px;
- border-radius: 3px;
- border: 1px dashed $gray-250; // Show dashed border on large screens only
- }
- .uppy-Dashboard-AddFilesPanel & {
- border: none;
- }
- .uppy-Dashboard--modal & {
- border-color: $gray-300;
- }
- }
- .uppy-DashboardTabs {
- display: flex;
- flex-direction: column;
- justify-content: center;
- width: 100%;
- .uppy-size--md & {
- align-items: center;
- }
- }
- .uppy-DashboardTabs-title {
- font-size: 14px;
- line-height: 30px;
- font-weight: 400;
- margin: 0;
- padding: 0;
- text-align: center;
- color: $gray-700;
- .uppy-size--md & {
- font-size: 16px;
- line-height: 40px;
- }
- }
- .uppy-DashboardAddFiles-info {
- padding-top: 15px;
- padding-bottom: 15px;
- .uppy-size--md & {
- position: absolute;
- bottom: 30px;
- left: 0;
- right: 0;
- padding-top: 30px;
- padding-bottom: 0;
- }
- }
- .uppy-Dashboard-browse {
- @include clear-focus;
- cursor: pointer;
- color: rgba($blue, 0.9);
- &:hover, &:focus {
- border-bottom: 2px solid $blue;
- }
- }
- .uppy-DashboardTabs-list {
- display: flex;
- flex-direction: column;
- max-height: 300px;
- overflow-x: auto;
- -webkit-overflow-scrolling: touch;
- margin-top: 10px;
- padding: 2px 0;
- .uppy-size--md & {
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: center;
- max-width: 600px;
- overflow-x: initial;
- margin-top: 15px;
- padding-top: 0;
- }
- }
- .uppy-DashboardTab {
- width: 100%;
- display: inline-block;
- text-align: center;
- border-bottom: 1px solid $gray-200;
- padding: 0px 2px;
- .uppy-size--md & {
- width: initial;
- margin-bottom: 20px;
- border-bottom: none;
- padding: 0;
- }
- }
- .uppy-DashboardTab-btn {
- width: 100%;
- height: 100%;
- cursor: pointer;
- border: 0;
- background-color: transparent;
- -webkit-appearance: none;
- appearance: none;
- color: $gray-700;
- display: flex;
- flex-direction: row;
- align-items: center;
- padding: 12px 15px;
- line-height: 1;
- text-align: center;
- .uppy-size--md & {
- width: 86px;
- margin-right: 1px;
- flex-direction: column;
- padding: 10px 3px;
- border-radius: 5px;
- }
- }
- .uppy-DashboardTab-btn::-moz-focus-inner {
- border: 0;
- }
- .uppy-DashboardTab-btn:hover {
- background-color: $gray-100--highlighted;
- }
- .uppy-DashboardTab-btn:active,
- .uppy-DashboardTab-btn:focus {
- background-color: $highlight;
- outline: none;
- }
- .uppy-DashboardTab-btn svg {
- margin-right: 10px;
- .uppy-size--md & {
- margin-right: 0;
- }
- }
- .uppy-DashboardTab-btn svg {
- max-width: 100%;
- max-height: 100%;
- display: inline-block;
- vertical-align: text-top;
- overflow: hidden;
- transition: transform ease-in-out .15s;
- }
- .uppy-DashboardTab-name {
- font-size: 14px;
- font-weight: 500;
- .uppy-size--md & {
- font-size: 11px;
- line-height: 14px;
- margin-top: 8px;
- margin-bottom: 0;
- }
- }
- // On SVG sizing: https://sarasoueidan.com/blog/svg-style-inheritance-and-FOUSVG/
- .uppy-DashboardTab svg {
- width: 18px;
- height: 18px;
- vertical-align: middle;
- .uppy-size--md & {
- width: 27px;
- height: 27px;
- }
- }
- .uppy-Dashboard-input {
- width: 0.1px;
- height: 0.1px;
- opacity: 0;
- overflow: hidden;
- position: absolute;
- z-index: -1;
- }
- .uppy-DashboardContent-bar {
- flex-shrink: 0;
- height: 40px;
- width: 100%;
- padding: 0 10px;
- z-index: $zIndex-4;
- // For when both 'Cancel' and '+ Add more' buttons are present
- display: flex;
- align-items: center;
- justify-content: space-between;
- // For .uppy-DashboardContent-title's position: absolute
- position: relative;
- border-bottom: 1px solid $gray-200;
- background-color: $gray-50;
- .uppy-size--md & {
- height: 50px;
- padding: 0 15px;
- }
- }
- .uppy-DashboardContent-title {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- text-align: center;
- font-size: 12px;
- line-height: 40px;
- font-weight: 500;
- // MUST be present for title to be visible in IE11
- width: 100%;
- max-width: 170px;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow-x: hidden;
- margin: auto;
- .uppy-size--md & {
- font-size: 14px;
- line-height: 50px;
- max-width: 300px;
- }
- }
- .uppy-DashboardContent-back {
- @include reset-button;
- @include highlight-focus;
- border-radius: 3px;
- font-size: 12px;
- font-weight: 400;
- cursor: pointer;
- color: $blue;
- padding: 7px 6px;
- margin-left: -6px;
- .uppy-size--md & {
- font-size: 14px;
- }
- }
- .uppy-DashboardContent-addMore {
- @include reset-button;
- @include highlight-focus;
- border-radius: 3px;
- font-weight: 500;
- cursor: pointer;
- color: $blue;
- width: 29px;
- height: 29px;
- padding: 7px 8px;
- margin-right: -5px;
- .uppy-size--md & {
- font-size: 14px;
- width: auto;
- height: auto;
- margin-right: -8px;
- }
- }
- .uppy-DashboardContent-addMore svg {
- vertical-align: baseline;
- margin-right: 4px;
- .uppy-size--md & {
- width: 11px;
- height: 11px;
- }
- }
- .uppy-DashboardContent-addMoreCaption {
- display: none;
- .uppy-size--md & {
- display: inline;
- }
- }
- // ...uppy-DashboardContent-addMore|
- // ...uppy-DashboardContent-bar|
- .uppy-DashboardContent-panel {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- background-color: darken($white, 4%);
- overflow: hidden;
- z-index: $zIndex-5;
- border-radius: 5px;
- display: flex;
- flex-direction: column;
- flex: 1;
- }
- .uppy-Dashboard-AddFilesPanel {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- background: $gray-50;
- background: linear-gradient(0deg, $gray-50 35%, rgba($gray-50, 0.85) 100%);
- box-shadow: 0 0 10px 5px rgba($black, 0.15);
- overflow: hidden;
- z-index: $zIndex-5;
- border-radius: 5px;
- display: flex;
- flex-direction: column;
- }
- .uppy-Dashboard--isAddFilesPanelVisible .uppy-Dashboard-files {
- filter: blur(2px);
- }
- // Progress bar placeholder
- .uppy-Dashboard-progress {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 12%;
- }
- .uppy-Dashboard-progressBarContainer.is-active {
- z-index: $zIndex-4;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- }
- // .uppy-Dashboard-next {
- // position: absolute;
- // top: 0;
- // left: 0;
- // width: 100%;
- // height: 100%;
- // background: none;
- // background-color: rgba($gray-500, 0.7);
- // -webkit-appearance: none;
- // appearance: none;
- // border: 0;
- // z-index: $zIndex-3;
- // transition: background-color 0.5s;
- // color: $white;
- // font-family: inherit;
- // font-size: 14px;
- // line-height: 1;
- // padding: 0;
- // margin: 0;
- // outline: none;
- // cursor: not-allowed;
- // }
- // .uppy-Dashboard-next.is-active {
- // cursor: pointer;
- // background-color: $blue;
- // &:hover {
- // background-color: darken($blue, 20%);
- // }
- // }
- .uppy-Dashboard-filesContainer {
- @include clearfix;
- position: relative;
- overflow-y: hidden;
- margin: 0;
- flex: 1;
- }
- .uppy-Dashboard-files {
- margin: 0;
- padding: 0 0 10px 0;
- overflow-y: auto;
- -webkit-overflow-scrolling: touch;
- flex: 1;
- }
- .uppy-size--md .uppy-Dashboard-files {
- padding-top: 10px;
- }
- .uppy-Dashboard-dropFilesHereHint {
- display: flex;
- align-items: center;
- justify-content: center;
- visibility: hidden;
- position: absolute;
- top: 7px;
- right: 7px;
- bottom: 7px;
- left: 7px;
- padding-top: 90px;
- border: 1px dashed $blue;
- border-radius: 3px;
- z-index: 2000;
- text-align: center;
- background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a.999.999 0 0 1 1.414 0l7 7z' fill='%232275D7' fill-rule='nonzero'/%3E%3C/svg%3E");
- background-position: 50% 50%;
- background-repeat: no-repeat;
- color: #707070;
- font-size: 16px;
- }
- .uppy-Dashboard.uppy-Dashboard--isDraggingOver {
- .uppy-Dashboard-dropFilesHereHint {
- visibility: visible;
- }
- .uppy-DashboardContent-bar,
- .uppy-Dashboard-files,
- .uppy-Dashboard-progressindicators {
- opacity: 0.15;
- }
- .uppy-DashboardAddFiles {
- opacity: 0.03;
- }
- }
- .uppy-Dashboard-dropFilesTitle {
- max-width: 300px;
- text-align: center;
- font-size: 16px;
- line-height: 1.35;
- font-weight: 400;
- color: $gray-700;
- margin: auto;
- padding: 0 15px;
- padding-top: 20px;
- .uppy-size--md & {
- // wider, to accomodate for different translations
- max-width: 470px;
- font-size: 27px;
- }
- }
- .uppy-Dashboard-note {
- font-size: 14px;
- line-height: 1.25;
- text-align: center;
- color: $gray-600;
- max-width: 350px;
- margin: auto;
- padding: 0 15px;
- .uppy-size--md & {
- font-size: 16px;
- line-height: 1.35;
- max-width: 600px;
- }
- }
- a.uppy-Dashboard-poweredBy {
- display: inline-block;
- text-align: center;
- font-size: 11px;
- color: $gray-500;
- text-decoration: none;
- margin-top: 8px;
- }
- .uppy-Dashboard-poweredByIcon {
- stroke: $gray-500;
- fill: none;
- margin-left: 1px;
- margin-right: 1px;
- position: relative;
- top: 1px;
- opacity: 0.9;
- vertical-align: text-top;
- }
- .uppy-DashboardItem-previewIcon {
- width: 25px;
- height: 25px;
- z-index: $zIndex-1;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- .uppy-size--md & {
- width: 38px;
- height: 38px;
- }
- svg {
- width: 100%;
- height: 100%;
- }
- }
- .uppy-DashboardItem-previewIconWrap {
- height: 76px;
- max-height: 75%;
- position: relative;
- }
- .uppy-DashboardItem-previewIconBg {
- width: 100%;
- height: 100%;
- filter: drop-shadow(rgba($black, 0.1) 0px 1px 1px);
- }
- .uppy-Dashboard-actions {
- height: 55px;
- border-top: 1px solid $gray-200;
- display: flex;
- align-items: center;
- padding: 0 15px;
- background-color: $gray-50;
- .uppy-size--md & {
- height: 65px;
- }
- }
- .uppy-Dashboard-actionsBtn {
- margin-right: 10px;
- }
- .uppy-Dashboard-upload {
- position: relative;
- width: 50px;
- height: 50px;
- .uppy-size--md & {
- width: 60px;
- height: 60px;
- }
- }
- .uppy-Dashboard-upload .UppyIcon {
- position: relative;
- top: 1px;
- width: 50%;
- }
- .uppy-Dashboard-uploadCount {
- position: absolute;
- top: -12px;
- right: -12px;
- background-color: $green;
- color: $white;
- border-radius: 50%;
- width: 16px;
- height: 16px;
- line-height: 16px;
- font-size: 8px;
- .uppy-size--md & {
- width: 18px;
- height: 18px;
- line-height: 18px;
- font-size: 9px;
- }
- }
- //
- // File Card
- //
- .uppy-DashboardFileCard {
- // transform: translate3d(0, 0, 0);
- // transition: transform 0.2s ease-in-out;
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: $zIndex-5;
- box-shadow: 0px 0px 10px 4px rgba($black, 0.1);
- background-color: $white;
- display: flex;
- flex-direction: column;
- }
- // .uppy-DashboardFileCard[aria-hidden=true] {
- // transform: translate3d(0, -105%, 0);
- // }
- .uppy-DashboardFileCard-inner {
- display: flex;
- flex-direction: column;
- height: 100%;
- flex: 1;
- }
- .uppy-DashboardFileCard-preview {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-grow: 1;
- border-bottom: 1px solid $gray-200;
- background-color: $gray-50; /* no !important */
- position: relative;
- }
- .uppy-DashboardFileCard-preview img.uppy-DashboardItem-previewImg {
- box-shadow: 0px 3px 20px rgba($black, 0.15);
- max-width: 90%;
- max-height: 90%;
- object-fit: cover;
- border-radius: 3px;
- position: absolute;
- }
- .uppy-DashboardFileCard-info {
- padding: 30px 20px 20px 20px;
- max-height: 40%;
- flex-grow: 1;
- overflow-y: auto;
- -webkit-overflow-scrolling: touch;
- }
- .uppy-DashboardFileCard-fieldset {
- font-size: 0;
- border: 0;
- padding: 0;
- max-width: 640px;
- margin: auto;
- margin-bottom: 12px;
- }
- .uppy-DashboardFileCard-label {
- display: inline-block;
- vertical-align: middle;
- width: 22%;
- font-size: 12px;
- color: $gray-700;
- .uppy-size--md & {
- font-size: 14px;
- }
- }
- .uppy-DashboardFileCard-input {
- display: inline-block;
- vertical-align: middle;
- width: 78%;
- }
|