2024-11-05 19:02:31 +01:00
|
|
|
@import 'colors';
|
2021-01-28 15:27:29 +01:00
|
|
|
|
2018-02-12 22:52:41 +01:00
|
|
|
.direct-upload {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2021-01-28 15:27:29 +01:00
|
|
|
padding: 4px 15px;
|
2018-02-12 22:52:41 +01:00
|
|
|
margin: 0 3px 3px 0;
|
2021-01-28 15:27:29 +01:00
|
|
|
border: 1px solid $border-grey;
|
2018-02-12 22:52:41 +01:00
|
|
|
border-radius: 3px;
|
2021-01-28 15:27:29 +01:00
|
|
|
font-size: 14px;
|
2018-02-12 22:52:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.direct-upload--pending {
|
2023-03-22 11:04:36 +01:00
|
|
|
opacity: 0.7;
|
2018-02-12 22:52:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.direct-upload__progress {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
2023-03-22 11:04:36 +01:00
|
|
|
background-color: var(--background-contrast-grey);
|
2024-11-05 19:02:31 +01:00
|
|
|
transition:
|
|
|
|
width 120ms ease-out,
|
|
|
|
opacity 60ms 60ms ease-in;
|
2018-02-12 22:52:41 +01:00
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
}
|
|
|
|
|
2023-03-22 11:04:36 +01:00
|
|
|
.direct-upload__filename {
|
|
|
|
position: relative; // set a position so it appears above the progress bar
|
|
|
|
}
|
|
|
|
|
2018-02-12 22:52:41 +01:00
|
|
|
.direct-upload--complete .direct-upload__progress {
|
2023-03-22 11:04:36 +01:00
|
|
|
background-color: var(--background-overlap-grey);
|
2018-02-12 22:52:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.direct-upload--error {
|
2023-03-22 11:04:36 +01:00
|
|
|
border-color: var(--border-plain-error);
|
2018-02-12 22:52:41 +01:00
|
|
|
}
|
|
|
|
|
2024-11-05 19:02:31 +01:00
|
|
|
input[type='file'][data-direct-upload-url][disabled],
|
|
|
|
input[type='file'][data-auto-attach-url][disabled] {
|
2018-02-12 22:52:41 +01:00
|
|
|
display: none;
|
|
|
|
}
|