Add documentation

This commit is contained in:
Ramon Wenger 2024-04-29 17:24:38 +02:00
parent 823b69cf19
commit 29456126f3
2 changed files with 2 additions and 56 deletions

View File

@ -24,59 +24,3 @@ const updateUrl = (url: string) => {
emit('change-url', url, props.index); emit('change-url', url, props.index);
}; };
</script> </script>
<style scoped lang="scss">
@import 'styles/helpers';
.document-form {
&__uploaded {
display: flex;
align-items: center;
}
&__link {
text-decoration: underline;
}
&__spinner {
width: 100%;
height: 150px;
display: flex;
align-items: center;
justify-content: center;
}
&__loading-icon {
@include spin;
fill: $color-silver-dark;
}
&__icon {
width: 30px;
height: 30px;
margin-right: $small-spacing;
}
&__file-input {
width: 0.1px;
height: 0.1px;
overflow: hidden;
opacity: 0;
position: absolute;
z-index: -1;
& + label {
cursor: pointer;
background-color: $color-silver-light;
height: 150px;
display: flex;
width: 100%;
justify-content: center;
align-items: center;
font-family: $sans-serif-font-family;
font-weight: $font-weight-regular;
text-decoration: underline;
}
}
}
</style>

View File

@ -115,6 +115,8 @@ onMounted(() => {
} }
&__file-input { &__file-input {
/* this element should not be visible for the user, but the width can't be 0, otherwise it does not exist in the
* DOM. With this hack, the element still works */
width: 0.1px; width: 0.1px;
height: 0.1px; height: 0.1px;
overflow: hidden; overflow: hidden;