primevue-mirror/components/lib/themes/primeone/base/fileupload/index.js

80 lines
1.5 KiB
JavaScript
Raw Normal View History

export default {
css: ({ dt }) => `
2024-03-25 06:34:29 +00:00
.p-fileupload input[type="file"] {
2024-02-23 06:51:41 +00:00
display: none;
}
2024-04-20 12:45:44 +00:00
.p-fileupload-advanced {
border: 1px solid ${dt('fileupload.border.color')};
border-radius: ${dt('rounded.base')};
background: ${dt('fileupload.background')};
color: ${dt('fileupload.color')};
2024-02-23 06:51:41 +00:00
}
2024-04-20 12:45:44 +00:00
.p-fileupload-header {
2024-02-23 06:51:41 +00:00
display: flex;
2024-04-20 12:45:44 +00:00
align-items: center;
2024-02-23 06:51:41 +00:00
flex-wrap: wrap;
padding: 1.125rem;
gap: 0.5rem;
}
.p-fileupload-content {
2024-04-20 12:45:44 +00:00
border: 1px solid transparent;
2024-02-23 06:51:41 +00:00
position: relative;
padding: 0 1.125rem 1.125rem 1.125rem;
}
.p-fileupload-content .p-progressbar {
width: 100%;
position: absolute;
top: 0;
left: 0;
height: 0.25rem;
}
2024-04-20 12:45:44 +00:00
.p-fileupload-file-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-top: 1.125rem;
}
2024-02-23 06:51:41 +00:00
.p-fileupload-file {
display: flex;
flex-wrap: wrap;
align-items: center;
padding: 1rem;
2024-04-20 12:45:44 +00:00
border-bottom: 1px solid ${dt('fileupload.file.border.color')};
2024-02-23 06:51:41 +00:00
gap: 0.5rem;
}
.p-fileupload-file:last-child {
2024-04-20 12:45:44 +00:00
border-bottom: 0;
2024-02-23 06:51:41 +00:00
}
2024-04-20 12:45:44 +00:00
.p-fileupload-file-info {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
2024-02-23 06:51:41 +00:00
.p-fileupload-file-thumbnail {
flex-shrink: 0;
}
.p-fileupload-file-actions {
margin-left: auto;
}
.p-fileupload-highlight {
2024-03-12 11:31:18 +00:00
border: 1px dashed ${dt('fileupload.content.highlight.border.color')};
background: ${dt('fileupload.content.highlight.background')};
2024-02-23 06:51:41 +00:00
}
.p-fileupload-advanced .p-message {
margin-top: 0;
}
`
};