demarches-normaliennes/app/assets/stylesheets/attachment.scss

57 lines
1,022 B
SCSS
Raw Normal View History

2024-11-05 19:02:31 +01:00
@import 'colors';
@import 'constants';
.attachment-error,
.attachment-upload-error {
position: relative;
&::before {
box-shadow: inset 2px 0 0 0 var(--border-plain-error);
height: 100%;
2024-11-05 19:02:31 +01:00
content: '';
left: -0.75rem;
position: absolute;
width: 2px;
}
.attachment-filename {
color: var(--text-default-error);
}
}
.attachment-error {
.fr-error-text {
margin-top: 0.5rem;
}
}
.attachment-multiple:not(.fr-downloads-group),
2024-11-05 19:02:31 +01:00
.attachment-multiple.fr-downloads-group[data-controller='replace-attachment'] {
ul {
list-style-type: none;
padding-inline-start: 0;
}
li {
padding-bottom: 0;
}
}
.attachment {
// Anti-virus badge for just uploaded attachment when seen as downloadable
.fr-download + .fr-badge {
position: relative;
top: -1rem;
}
.fr-btn {
align-self: flex-start;
}
}
.attachment-multiple.fr-downloads-group.destroyable ul,
ul[data-file-input-reset-target='fileList'] {
list-style-type: none;
padding-inline-start: 0;
}