pkg-components
Version:
107 lines (93 loc) • 1.96 kB
CSS
.container {
display: flex;
flex-direction: column;
font-family: sans-serif;
color: #333;
background-color: var(--color-base-white);
margin: 10px;
padding: 10px;
}
.labelWrapper {
display: flex;
align-items: center;
gap: 8px;
}
.label {
font-weight: bold;
font-size: 1rem;
}
.tip {
background-color: var(--color-background-primary-light);
color: var(--color-text-primary);
padding: 2px 8px;
border-radius: 6px;
font-size: 0.75rem;
}
.description {
font-size: 0.85rem;
margin: 4px 0 12px;
}
.dropArea {
border: 2px dashed var(--color-neutral-gray-dark);
border-radius: 8px;
padding: 30px;
min-height: 200px;
cursor: pointer;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
position: relative;
background-color: var(--color-base-white);
transition: border-color 0.2s ease;
}
.dropArea:hover {
border-color: #999;
}
.placeholder {
display: flex;
flex-direction: column;
align-items: center;
width: 300px;
height: 206.25px;
}
.placeholderImage {
border-radius: 8px;
height: 100%;
max-height: 300px;
max-width: 275px;
object-fit: contain;
width: 100%;
}
.overlay {
position: absolute;
inset: 0;
background-color: var(--color-background-overline);
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
border-radius: 12px;
backdrop-filter: blur(2px);
}
.button_overlay {
position: absolute;
bottom: 10px;
}
.preview {
border-radius: 8px;
height: 100%;
max-height: 300px;
max-width: 275px;
object-fit: contain;
width: 100%;
}
.info {
margin-top: 12px;
font-size: 0.8rem;
}
.error {
margin-top: 8px;
color: red;
font-weight: bold;
}