2021-12-23 03:42:22 +01:00
|
|
|
@use 'sass:color';
|
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.replace-file-input {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
padding-bottom: 2px;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
[type='file'] {
|
2015-09-25 15:21:30 +02:00
|
|
|
padding: 0;
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 0;
|
2015-09-25 15:21:30 +02:00
|
|
|
direction: ltr;
|
|
|
|
width: auto;
|
|
|
|
display: block;
|
|
|
|
font-size: 5em;
|
2014-07-04 18:07:35 +02:00
|
|
|
|
2015-09-25 18:14:46 +02:00
|
|
|
&:hover {
|
2015-09-25 15:21:30 +02:00
|
|
|
cursor: pointer;
|
2014-07-04 18:07:35 +02:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
2015-11-03 13:15:33 +01:00
|
|
|
|
|
|
|
button {
|
2015-09-25 15:21:30 +02:00
|
|
|
background-color: $color-teal-darker;
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.upload-list {
|
2022-02-04 12:57:55 +01:00
|
|
|
> li {
|
2015-09-25 15:21:30 +02:00
|
|
|
padding: 1em;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.left {
|
2015-09-25 15:21:30 +02:00
|
|
|
text-align: center;
|
2019-07-11 14:42:15 +02:00
|
|
|
word-break: break-all;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.preview {
|
|
|
|
width: 150px;
|
|
|
|
min-height: 150px;
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
|
|
|
max-width: 100%;
|
|
|
|
margin: auto;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2016-02-08 21:53:09 +01:00
|
|
|
.progress,
|
2022-02-04 12:57:55 +01:00
|
|
|
.thumb,
|
2016-02-08 21:53:09 +01:00
|
|
|
.thumb:before,
|
2022-02-04 12:57:55 +01:00
|
|
|
canvas,
|
|
|
|
img {
|
2015-09-25 15:21:30 +02:00
|
|
|
position: absolute;
|
|
|
|
max-width: 100%;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.progress {
|
2015-11-03 18:12:12 +01:00
|
|
|
box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.4);
|
2015-09-25 15:21:30 +02:00
|
|
|
z-index: 4;
|
|
|
|
top: 60%;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: 20%;
|
|
|
|
inset-inline-end: 20%;
|
2015-09-25 15:21:30 +02:00
|
|
|
width: 60%;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.thumb {
|
|
|
|
top: 0;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 0;
|
2015-09-25 18:14:46 +02:00
|
|
|
bottom: 0;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: 0;
|
2015-09-25 15:21:30 +02:00
|
|
|
z-index: 1;
|
|
|
|
width: 100%;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2016-02-08 21:53:09 +01:00
|
|
|
.thumb:before,
|
2022-02-04 12:57:55 +01:00
|
|
|
canvas,
|
|
|
|
img {
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: 0;
|
|
|
|
inset-inline-end: 0;
|
2022-02-04 12:57:55 +01:00
|
|
|
top: 0;
|
2015-09-25 15:21:30 +02:00
|
|
|
bottom: 0;
|
|
|
|
margin: auto;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2015-09-25 18:14:46 +02:00
|
|
|
.thumb:before {
|
2015-09-25 15:21:30 +02:00
|
|
|
z-index: 2;
|
2022-02-04 12:57:55 +01:00
|
|
|
top: 0;
|
2015-09-25 15:21:30 +02:00
|
|
|
width: 1em;
|
|
|
|
font-size: 10em;
|
|
|
|
line-height: 1.4em;
|
2021-12-23 03:42:22 +01:00
|
|
|
color: color.adjust($color-grey-4, $lightness: 4%);
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
canvas,
|
|
|
|
img {
|
2015-09-25 15:21:30 +02:00
|
|
|
z-index: 3;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.hasthumb {
|
2015-09-25 18:14:46 +02:00
|
|
|
&:before {
|
2016-02-08 21:53:09 +01:00
|
|
|
display: none;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.status-msg {
|
|
|
|
display: none;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.upload-complete {
|
|
|
|
.progress {
|
|
|
|
opacity: 0;
|
2014-06-30 10:27:44 +02:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.upload-success {
|
|
|
|
.status-msg.success {
|
2015-09-25 18:14:46 +02:00
|
|
|
display: block;
|
2014-06-30 10:27:44 +02:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2014-06-30 10:27:44 +02:00
|
|
|
|
2022-04-05 20:05:38 +02:00
|
|
|
.upload-duplicate {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.status-msg.warning {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-25 18:14:46 +02:00
|
|
|
.upload-failure {
|
2021-12-23 03:42:22 +01:00
|
|
|
border-color: $color-red;
|
2014-06-30 10:27:44 +02:00
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.preview {
|
|
|
|
display: none;
|
2014-07-07 11:14:23 +02:00
|
|
|
}
|
2014-06-30 10:27:44 +02:00
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.status-msg.failure {
|
|
|
|
display: block;
|
2014-06-30 10:27:44 +02:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.upload-server-error {
|
|
|
|
border-color: $color-red;
|
2016-02-08 21:53:09 +01:00
|
|
|
|
2015-09-25 15:21:30 +02:00
|
|
|
.preview {
|
|
|
|
display: none;
|
2014-06-18 17:54:31 +02:00
|
|
|
}
|
2016-02-08 21:53:09 +01:00
|
|
|
|
|
|
|
.status-msg.server-error {
|
|
|
|
display: block;
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2015-04-24 02:16:58 +02:00
|
|
|
}
|
2022-04-05 20:05:38 +02:00
|
|
|
|
|
|
|
.confirm-duplicate-upload {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
figure {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
margin: 1rem auto;
|
|
|
|
|
|
|
|
img {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
form {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|