memos/web/src/less/memo-resources.less
2022-11-24 20:22:54 +08:00

56 lines
1.2 KiB
Plaintext

.resource-wrapper {
@apply w-full flex flex-col justify-start items-start;
> .images-wrapper {
@apply w-full flex mt-2 pb-1;
> .memo-resource {
@apply w-auto h-auto shrink-0 grow-0 cursor-pointer rounded;
> img {
@apply rounded hover:shadow;
}
}
&.row {
@apply flex-row justify-start items-start overflow-x-auto overflow-y-hidden;
> .memo-resource {
@apply max-w-xs h-auto max-h-40 mr-2 last:mr-0;
> img {
@apply w-auto max-h-40;
}
}
}
&.col {
@apply flex-col justify-start items-start;
> .memo-resource {
@apply w-full h-auto mb-2 last:mb-0;
> img {
@apply w-full h-auto shadow;
}
}
}
}
> .other-resource-wrapper {
@apply w-full flex flex-row justify-start flex-wrap;
> .other-resource-container {
@apply mt-1 mr-1 max-w-full flex flex-row justify-start items-center flex-nowrap bg-gray-100 px-2 py-1 rounded cursor-pointer hover:bg-gray-200;
> .icon-img {
@apply w-4 h-auto mr-1 text-gray-500;
}
> .name-text {
@apply text-gray-500 text-sm max-w-xs truncate font-mono;
}
}
}
}