Files
cbsnexora/src/app/shared/tabs/entity-documents-tab/entity-documents-tab.component.scss
T

163 lines
2.6 KiB
SCSS

/**
* Copyright since 2025 Mifos Initiative
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
@use '../../../../assets/styles/colours' as *;
.tab-container {
padding: 1rem;
margin: 1rem 0;
}
.document-grid {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-top: 0.75rem;
}
.document-card {
width: 240px;
background: $white;
border: 1px solid $silver;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 1px 4px rgba($dark-grey, 0.12);
display: flex;
flex-direction: column;
transition:
transform 0.2s ease,
box-shadow 0.2s ease;
&:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba($dark-grey, 0.14);
}
}
.thumb {
position: relative;
background: $clouds;
min-height: 9.5rem;
display: flex;
align-items: center;
justify-content: center;
cursor: default;
&.clickable {
cursor: pointer;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.preview-overlay {
position: absolute;
bottom: 0.5rem;
right: 0.5rem;
background: rgba($white, 0.9);
border-radius: 50%;
padding: 0.4rem;
color: $peter-river;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.2s ease;
.thumb:hover &,
.thumb:focus & {
opacity: 1;
}
}
.placeholder {
color: $light-grey;
text-align: center;
padding: 0.875rem;
display: flex;
flex-direction: column;
gap: 8px;
align-items: center;
justify-content: center;
fa-icon {
font-size: 22px;
}
span {
font-size: 12px;
line-height: 1.2;
}
}
.preview-btn {
position: absolute;
right: 0.5rem;
bottom: 0.5rem;
background: rgba($black, 0.65);
color: $white;
}
.card-body {
padding: 0.75rem 0.875rem 0.875rem;
display: flex;
flex-direction: column;
gap: 0.375rem;
}
.title {
font-weight: 700;
color: $dark-grey;
}
.meta {
font-size: 12px;
color: $asbestos;
}
.description {
font-size: 13px;
color: $dark-grey;
min-height: 32px;
}
.actions {
display: flex;
justify-content: flex-end;
gap: 0.375rem;
margin-top: 0.25rem;
}
.empty-state {
margin-top: 0.75rem;
padding: 1.25rem;
text-align: center;
background: $light-grey;
border: 1px dashed $silver;
border-radius: 4px;
color: $dark-grey;
display: flex;
flex-direction: column;
gap: 0.5rem;
align-items: center;
.muted {
color: $concrete;
margin: 0.25rem 0 0;
font-size: 0.8125rem;
}
}
.document-lightbox-host {
display: none;
}