wekan/client/components/cards/attachments.css

339 lines
6 KiB
CSS
Raw Normal View History

2023-07-08 19:22:40 +02:00
.hidden {
display: none;
}
2022-07-16 09:32:49 +02:00
.attachment-upload {
text-align: center;
font-weight: bold;
}
2023-07-06 20:29:36 +02:00
.attachment-gallery {
display: flex;
2023-07-06 20:29:36 +02:00
flex-direction: column;
}
2023-07-06 20:29:36 +02:00
.attachment-item {
display: flex;
2023-07-06 20:29:36 +02:00
flex-direction: row;
align-items: center;
2023-07-06 20:29:36 +02:00
margin-top: 16px;
}
2023-07-06 20:29:36 +02:00
.attachment-item:hover {
background: #e0e0e0;
}
.attachment-thumbnail-container {
display: block;
2023-07-06 20:29:36 +02:00
width: 150px;
min-width: 150px;
max-height: 150px;
padding-right: 16px;
}
.attachment-thumbnail {
max-width: 150px;
max-height: 150px;
min-height: 2em;
cursor: pointer;
}
2023-07-06 20:29:36 +02:00
.attachment-thumbnail-text {
min-height: 2em;
display: flex;
align-items: center;
justify-content: center;
2023-07-06 20:29:36 +02:00
font-size: 2em;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 5px;
}
2023-07-06 20:29:36 +02:00
.attachment-details-container {
display: block;
flex-grow: 1;
}
2023-07-06 20:29:36 +02:00
.attachment-details {
display: flex;
justify-content: space-between;
margin-right: 25px; /* Make sure the icons are not to far to the right */
}
2023-07-06 20:29:36 +02:00
.attachment-actions {
display: flex;
flex-direction: row;
align-items: center;
}
2023-07-06 20:29:36 +02:00
.add-attachment {
display: flex;
align-items: center;
justify-content: center;
border: 1px dashed #555;
border-radius: 5px;
padding: 10px;
cursor: pointer;
margin-top: 16px;
}
2023-07-06 20:29:36 +02:00
.icon {
font-size: 1.5em;
cursor: pointer;
margin-left: 10px;
}
2023-07-06 20:29:36 +02:00
.icon:hover {
color: #666;
}
2023-07-06 20:29:36 +02:00
#viewer-overlay {
2023-06-30 12:35:45 +02:00
width: 100%;
height: 100vh;
position: fixed;
top: 0;
2023-06-30 12:35:45 +02:00
left: 0;
z-index: 9999 !important;
2023-08-21 18:22:14 +02:00
background: rgba(13, 13, 13, 0.95);
2023-06-30 12:35:45 +02:00
}
#viewer-container {
2023-07-06 20:35:49 +02:00
display: flex;
flex-direction: row;
justify-content: space-between;
2023-06-30 12:35:45 +02:00
height: 100%;
}
2023-07-06 20:35:49 +02:00
#viewer-top-bar {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
padding: 16px;
}
#attachment-name {
color: white;
font-size: 1.5em;
2023-08-21 18:22:14 +02:00
max-width: calc(
100% - 50px
); /* Make sure the name does not overlap the close button */
2023-07-06 20:35:49 +02:00
}
2023-06-30 12:35:45 +02:00
#viewer-close {
2023-08-21 18:22:14 +02:00
color: white;
2023-06-30 12:35:45 +02:00
cursor: pointer;
font-size: 4em;
}
/* Upload progress indicators for drag-and-drop uploads */
.minicard-upload-progress,
.card-details-upload-progress {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 4px;
padding: 12px;
margin: 8px 0;
font-size: 14px;
}
.upload-progress-header {
display: flex;
align-items: center;
margin-bottom: 8px;
font-weight: bold;
color: #495057;
}
.upload-progress-header i {
margin-right: 8px;
color: #007bff;
}
.upload-progress-item {
display: flex;
flex-direction: column;
margin-bottom: 8px;
padding: 8px;
background: white;
border-radius: 3px;
border: 1px solid #dee2e6;
}
.upload-progress-item.upload-error {
border-color: #dc3545;
background: #f8d7da;
}
.upload-progress-filename {
font-weight: 500;
margin-bottom: 4px;
color: #495057;
word-break: break-all;
}
.upload-progress-bar {
width: 100%;
height: 6px;
background: #e9ecef;
border-radius: 3px;
overflow: hidden;
margin-bottom: 4px;
}
.upload-progress-fill {
height: 100%;
background: linear-gradient(90deg, #007bff, #0056b3);
transition: width 0.3s ease;
border-radius: 3px;
}
.upload-progress-item.upload-error .upload-progress-fill {
background: #dc3545;
}
.upload-progress-error,
.upload-progress-success {
display: flex;
align-items: center;
font-size: 12px;
font-weight: 500;
}
.upload-progress-error {
color: #dc3545;
}
.upload-progress-success {
color: #28a745;
}
.upload-progress-error i,
.upload-progress-success i {
margin-right: 4px;
}
/* Minicard specific styles */
.minicard-upload-progress {
margin: 4px 0;
padding: 8px;
font-size: 12px;
}
.minicard-upload-progress .upload-progress-item {
padding: 6px;
margin-bottom: 6px;
}
.minicard-upload-progress .upload-progress-filename {
font-size: 11px;
}
/* Card details specific styles */
.card-details-upload-progress {
margin: 12px 0;
padding: 16px;
}
.card-details-upload-progress .upload-progress-header {
font-size: 16px;
margin-bottom: 12px;
}
.card-details-upload-progress .upload-progress-item {
padding: 12px;
margin-bottom: 10px;
}
.card-details-upload-progress .upload-progress-filename {
font-size: 14px;
}
/* Drag over state for minicards */
.minicard.is-dragging-over {
border: 2px dashed #007bff !important;
background: rgba(0, 123, 255, 0.1) !important;
}
/* Drag over state for card details */
.js-card-details.is-dragging-over {
border: 2px dashed #007bff !important;
background: rgba(0, 123, 255, 0.05) !important;
}
2023-06-30 12:35:45 +02:00
top: 0;
2023-07-06 20:35:49 +02:00
right: 8px;
2023-06-30 12:35:45 +02:00
position: absolute;
}
2023-07-06 20:35:49 +02:00
.attachment-arrow {
font-size: 4em;
2023-08-21 18:22:14 +02:00
color: white;
2023-07-06 20:35:49 +02:00
cursor: pointer;
align-self: center;
margin: 0 20px;
}
#viewer-content {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: calc(100% - 50px);
}
2023-07-06 20:35:49 +02:00
#image-viewer {
2023-08-21 18:22:14 +02:00
background: repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%) 50% /
20px 20px; /* Checkerboard background for transparent images */
max-width: 100%;
max-height: 100%;
2023-06-30 12:35:45 +02:00
}
#pdf-viewer {
2023-07-06 20:29:36 +02:00
width: 40vw;
height: 100%;
2023-06-30 12:35:45 +02:00
}
2023-08-21 18:22:14 +02:00
#txt-viewer {
2023-07-06 20:35:49 +02:00
background-color: white;
width: 40vw;
height: 100%;
2023-07-06 20:35:49 +02:00
}
2023-07-06 20:29:36 +02:00
.pdf-preview-error {
2023-06-30 12:35:45 +02:00
margin-top: 20vh;
display: block;
font-size: 2em;
color: white;
}
2023-07-06 20:29:36 +02:00
@media screen and (max-width: 1600px) {
#pdf-viewer {
width: 60vw;
}
}
2023-07-06 20:29:36 +02:00
@media screen and (max-width: 800px) {
2023-07-06 20:35:49 +02:00
#viewer-container {
display: block;
}
2023-08-21 18:22:14 +02:00
.attachment-arrow {
2023-07-06 20:35:49 +02:00
position: absolute;
bottom: 2.2em;
font-size: 1.6em;
padding: 16px;
}
2023-08-21 18:22:14 +02:00
#prev-attachment {
2023-07-06 20:35:49 +02:00
left: 0;
}
2023-08-21 18:22:14 +02:00
#next-attachment {
2023-07-06 20:35:49 +02:00
right: 0;
}
#pdf-viewer {
2023-07-06 20:35:49 +02:00
width: 100%;
2023-08-21 18:22:14 +02:00
height: calc(
100vh - 155px
); /* Full height - height of top and bottom bars */
2023-07-06 20:35:49 +02:00
}
#txt-viewer {
width: 100%;
2023-08-21 18:22:14 +02:00
height: calc(
100vh - 155px
); /* Full height - height of top and bottom bars */
2023-07-06 20:35:49 +02:00
}
#audio-viewer {
margin-top: 20%;
width: 100%;
2023-07-06 20:29:36 +02:00
}
.attachment-thumbnail-container {
width: 100px;
min-width: 100px;
}
.attachment-thumbnail {
max-width: 100px;
}
2023-07-06 20:29:36 +02:00
.attachment-details {
flex-direction: column;
margin-right: 0px;
}
2023-07-06 20:29:36 +02:00
.attachment-actions {
flex-direction: row;
margin-top: 10px;
}
}